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.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2453

-- Commit Summary --

  * Do area expire based on the actual polygon instead of the bbox

-- File Changes --

    M scripts/osm2pgsql-test-style (40)
    M src/expire-tiles.cpp (132)
    M src/expire-tiles.hpp (9)
    A tests/bdd/expire/expire.feature (44)
    A tests/data/expire/test-data.osm (134)
    A tests/data/expire/test-raw.osm (134)
    A tests/data/expire/test-z18-b0.geojson (1767)
    A tests/data/expire/test-z18-b0.tiles (1764)
    A tests/data/expire/test-z18-b05.geojson (2122)
    A tests/data/expire/test-z18-b05.tiles (2119)
    M tests/test-expire-tiles.cpp (79)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2453.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2453.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2453
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to