[OSM-dev] osm2pgsql invalid polygons

Frederik Ramm frederik at remote.org
Mon May 7 08:01:46 BST 2012


Hi,

On 05/07/12 00:17, Sven Geggus wrote:
>> I patched osm2pgsql and it allows to import such polygons. Mapnik renders
>> it correctly.
>
> Not a good Idea IMO because there is more than Mapnik and quite a lot
> of the spatial operations in postgis will not work with invalid
> geometries.

I agree.

One could have a flag like "--try-to-repair-broken-polygons" for users 
who want that, but the osm2pgsql instance that we run at OpenStreetMap 
should be dropping dodgy polygons instead of trying to get them to 
render somehow.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the dev mailing list