[Tile-serving] [openstreetmap/osm2pgsql] Refactor expire by geometry code (PR #1809)

Jochen Topf notifications at github.com
Thu Nov 3 09:40:05 UTC 2022


I have changed the code some more based on the comment above regarding the use of `from_geometry()` vs. `from_geometry_if_3857()`. In that case the check should be done before we even reach that code, otherwise we are doing too much work (requesting the geometry from the database and then ignoring the result).

I added a check in the command line options parsing code to detect the case where expire is enabled but a projection other than Mercator used and disable the expire then. That makes checking for that condition easier later on and the user gets a nice warning.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1809#issuecomment-1301847459
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1809/c1301847459 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221103/b2b28878/attachment.htm>


More information about the Tile-serving mailing list