Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@joto
Copy link
Collaborator

@joto joto commented Feb 6, 2026

Expire (multi)polygons based on their shape, not the complete bounding box. We use the existing implementation for the boundary expire, to get the boundary right including the configured buffer. For the rest of the area inside the polygon we use a "polygon drawing algorithm" to figure out all tiles which are inside the polygon.

This also contains some changes to the BDD test code to allow running the osm2pgsql-expire program and check its output against a file.

scripts/osm2pgsql-test-style Outdated Show resolved Hide resolved
scripts/osm2pgsql-test-style Outdated Show resolved Hide resolved
Expire (multi)polygons based on their shape, not the complete bounding
box. We use the existing implementation for the boundary expire, to get
the boundary right including the configured buffer. For the rest of the
area inside the polygon we use a "polygon drawing algorithm" to figure
out all tiles which are inside the polygon.

This also contains some changes to the BDD test code to allow running
the osm2pgsql-expire program and check its output against a file.
@lonvia lonvia merged commit 6ce2bc0 into osm2pgsql-dev:master Feb 7, 2026
43 of 44 checks passed
@joto joto deleted the expire-polygon branch February 8, 2026 09:13
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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.