[Tile-serving] [openstreetmap/osm2pgsql] Don't let invalid geometries into the database (#655)

Sarah Hoffmann notifications at github.com
Fri Dec 2 07:50:40 UTC 2016


lonvia commented on this pull request.



>                      wkbs.emplace_back(multipoly.get(), true, projection);
                 }
             }
             else
             {
                 for(unsigned i=0; i<toplevelpolygons; i++) {
                     geom_ptr poly(polygons->at(i));
-                    if (!poly->isValid() && !excludepoly) {
+                    if ((poly->isEmpty() || !poly->isValid()) && !excludepoly) {

This has the same empty issue. Any chance to add tests for the empty cases?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/655#pullrequestreview-11117825
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20161201/4bdfb54d/attachment.html>


More information about the Tile-serving mailing list