>From user point this relation is correct but from geos point - not. The problem is that this polygon(and many others) was skipped without any warnings. You cannot fix it if you dont know where error is.<br><br><div class="gmail_quote">
On 7 May 2012 01:17, Sven Geggus <span dir="ltr"><<a href="mailto:lists@fuchsschwanzdomain.de" target="_blank">lists@fuchsschwanzdomain.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Ramas <<a href="mailto:ieskok@ramuno.lt">ieskok@ramuno.lt</a>> wrote:<br>
<br>
> how do you solve problem with skipped invalid polygons?<br>
<br>
</div>Fix it in the osm database?<br>
<div class="im"><br>
> with error:<br>
> Self-intersection at or near point 2889220.2400000002 7470212.1299999999<br>
<br>
</div>This does not look as a valid polygon to me at leadt in OGC Simple<br>
Features terms. This could arguably get fixed in osm2pgsql code<br>
because it is know how it is meant to be in this case, but it is not<br>
a valid OGC Simple Features polygon.<br>
<br>
Just add an additional way around 160596899 and 160596916 and declare<br>
this one of type inner.<br>
<div class="im"><br>
> I patched osm2pgsql and it allows to import such polygons. Mapnik renders<br>
> it correctly.<br>
<br>
</div>Not a good Idea IMO because there is more than Mapnik and quite a lot<br>
of the spatial operations in postgis will not work with invalid<br>
geometries.<br>
<div class="im"><br>
>Does we need such validations?<br>
<br>
</div>I definitely think we do. If osm2pgsql does import and render invalid<br>
polygons they will never get fixes in the database.<br>
<span class="HOEnZb"><font color="#888888"><br>
Sven<br>
<br>
--<br>
Trotz der zunehmenden Verbreitung von Linux erfreut sich der Bär,<br>
und - dank Knut - insbesondere der Eisbär, deutlich größerer<br>
Beliebtheit als der Pinguin. (Gefunden bei <a href="http://telepolis.de/" target="_blank">http://telepolis.de/</a>)<br>
/me is giggls@ircnet, <a href="http://sven.gegg.us/" target="_blank">http://sven.gegg.us/</a> on the Web<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</font></span></blockquote></div><br>