[Tile-serving] [openstreetmap/osm2pgsql] --expire-tiles: Parameter parsing does not work (#830)
Matthias Köferlein
notifications at github.com
Wed Mar 7 09:13:25 UTC 2018
After upgrading from Debian Stretch (0.92) to Buster (0.94) our update script stopped working. I have tried many styles of passing the `--expire-tiles` parameter with no luck.
The code parsing this parameter was changed significantly in 24488bfdaec2c432e33144ecb2688387253db37c, breaking existing functionality. The command `osm2pgsql -d gis -H localhost -U gisuser -S ~/osm2pgsql/default.style -P 5432 -s -C 800 -a diffs.osc.gz -e15 -o expire.list`, suggested by the OSM Wiki, no longer works.
What I have tried so far:
- `-e19`
- `-e0-19`
- `-e 19`
- `-e "19"`
- `--expire-tiles 19`
- `--expire-tiles 0-19`
- `--expire-tiles "19"`
- `--expire-tiles "0-19"`
- `--expire-tiles "just work pls"`
When supplying only the max zoom level, I get "_ERROR: Minimum and maximum zoom level for tile expiry must be separated by '-'._" Supplying both min and max yields "_ERROR: Missing zoom level for tile expiry._" Negative zoom levels actually get caught and throw an error.
Is this a user error on my side or is this option actually broken?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/830
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180307/48ee874c/attachment.html>
More information about the Tile-serving
mailing list