[Tile-serving] [openstreetmap/osm2pgsql] Output warnings in Latitude/Longtitude, not WebMercator (#838)
Sarah Hoffmann
notifications at github.com
Sat Jan 5 21:18:14 UTC 2019
Let me reiterate: the self intersections are **not geometry errors in OSM data**. They are an artefact of converting geometries from WSG84 to Mercator. They happen when geometries are cut close to the poles. For details see discussions in #793 and #787.
Errors in OSM geometries are filtered much earlier in the processing chain when creating the polygons with libosmium. Objects with bad geometries are never written into the output tables. There is no way to use osm2pgsql to find those errors. Please simply use [OSM inspector](http://tools.geofabrik.de/osmi/) for that purpose.
If the warning still bothers you, create a pull request that changes the warning level around the SQL command that sorts and validates the geometries, just as @pnorman suggested. See [this code](https://github.com/openstreetmap/osm2pgsql/blob/master/table.cpp#L107) for an example how to do it.
--
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/issues/838#issuecomment-451691081
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190105/c110a457/attachment-0001.html>
More information about the Tile-serving
mailing list