Conversation
from_polygon_area() computed its tile row range with inline Web Mercator arithmetic on the raw envelope, bypassing the projection's tile conversion that every other expiry path uses. For Web Mercator the conversion is the identity, so this is a no-op; for other projections it stops both bounds collapsing to the same row, which silently skipped polygon interiors. Refs: MAPCO-11657
The command-line expire options only picked up tables whose geometry column is Web Mercator, so a flex config storing EPSG:4326 produced an empty expire list. Expiry now takes the SRID from the geometry columns being expired, builds the tile conversion with osm2pgsql's own reprojection for it, and refuses to start if those columns disagree. The expire output stays in the Web Mercator tile scheme. The SRID is stored on the expire output, so the main output and its per-worker clones build their projection from the same value, at setup and never per row. Lua-defined expire outputs keep the Web Mercator default. Refs: MAPCO-11657
eyalr1100
force-pushed
the
feat/expire-4326
branch
from
September 17, 2026 14:24
eefe9af to
c59e78f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.