[Tile-serving] [openstreetmap/osm2pgsql] Refactor expire by geometry code (PR #1809)
Jochen Topf
notifications at github.com
Thu Nov 3 09:22:11 UTC 2022
@joto commented on this pull request.
> - }
+void expire_tiles::from_geometry(geom::polygon_t const &geom)
+{
+ geom::box_t const box = geom::envelope(geom);
+ if (from_bbox(box)) {
+ /* Bounding box too big - just expire tiles on the boundary */
+ from_polygon_boundary(geom);
+ }
+}
+
+void expire_tiles::from_geometry(geom::multipolygon_t const &geom)
+{
+ geom::box_t box;
+ for (auto const &sgeom : geom) {
+ box.extend(sgeom.outer());
+ }
Yes, I missed that one. Changed.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1809#discussion_r1012658843
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1809/review/1166533708 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221103/433c6bb3/attachment.htm>
More information about the Tile-serving
mailing list