Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openstreetmap-tiles-update-expire and osm2pgsql 1.6.0 : --expire-tiles #292

Open
esgn opened this issue Aug 10, 2022 · 4 comments
Open

openstreetmap-tiles-update-expire and osm2pgsql 1.6.0 : --expire-tiles #292

esgn opened this issue Aug 10, 2022 · 4 comments

Comments

@esgn
Copy link

esgn commented Aug 10, 2022

Hi,

Stumbled upon this error in openstreetmap-tiles-update-expire with osm2pgsql

osm2pgsql version 1.6.0
ERROR: Minimum and maximum zoom level for tile expiry must be separated by '-'

-e$EXPIRY_METAZOOM:$EXPIRY_METAZOOM should be replaced by --expire-tiles "$EXPIRY_METAZOOM-$EXPIRY_METAZOOM" for the script to work with osm2pgsql 1.6.0

@esgn esgn changed the title openstreetmap-tiles-update-expire and osm2pgsql 1.6.0 openstreetmap-tiles-update-expire and osm2pgsql 1.6.0 : --expire-tiles Aug 10, 2022
@lonvia
Copy link

lonvia commented Aug 10, 2022

That's funny. A colon was never an acceptable separator for osm2pgsql as far as I know. The main thing that has changed is that recent versions of osm2pgsql complain about the bad syntax.

@SomeoneElseOSM
Copy link
Contributor

SomeoneElseOSM commented Aug 10, 2022

In addition to ^^ I suspect that relatively few people will actually use https://github.com/openstreetmap/mod_tile/blob/master/utils/openstreetmap-tiles-update-expire with osm2pgsql 1.6.0 , since osm2pgsql 1.4.2 or above fully supports osm2pgsql-replication and PyOsmium for replication, which doesn't require osmosis / Java.

Edit: Actually Debian 11 people wedded to the binaries in their distribution will be affected by this.

@joto
Copy link

joto commented Aug 10, 2022

In commits before 24488bfdaec2c432e33144ecb2688387253db37c the code was buggy and ignored everything after the colon if I see this correctly. Typical atoi() problem which ignores everything after the number. So this never worked correctly, because only the minzoom was set, not the maxzoom.

@ldeffenb
Copy link

In addition to ^^ I suspect that relatively few people will actually use https://github.com/openstreetmap/mod_tile/blob/master/utils/openstreetmap-tiles-update-expire with osm2pgsql 1.6.0 ,

Count me as one of the "few".

SomeoneElseOSM pushed a commit to SomeoneElseOSM/switch2osm.github.io that referenced this issue Mar 7, 2023
SomeoneElseOSM added a commit to switch2osm/switch2osm that referenced this issue Mar 7, 2023
#203
and
openstreetmap/mod_tile#292

Co-authored-by: Andy Townsend <ajtown@dell5000.atownsend.org.uk>
Andygol pushed a commit to Andygol/switch2osm.github.io that referenced this issue Nov 6, 2023
switch2osm#203
and
openstreetmap/mod_tile#292

Co-authored-by: Andy Townsend <ajtown@dell5000.atownsend.org.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants