<div dir="ltr">Last chance :<div>this function is a a sloghtly modified topogeom constructor that won't stop when habving an error.</div><div>This way you can import everything that works, and then deal with the unworking ...</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/15 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Jan 14, 2014 at 04:10:45PM +0100, Ludovic Granjon wrote:<br>
<br>
> UPDATE ec SET topogeom2 = toTopoGeom(geom, 'ec_topo', 1, 1.0);<br>
</div>...<br>
<div class="im">> ERREUR: Spatial exception - geometry intersects edge 262<br>
</div>...<br>
<div class="im">> Have  you a solution for that ?<br>
<br>
</div>Do the update in chunks. That way you'll import what can be and isolate<br>
the offending record (if still offending) and then fight with that one<br>
individually.<br>
<br>
These kind of error sometime happen when the tolerance you specify<br>
is bigger than the smallest distance between any two vertices in<br>
your input dataset. An ST_SnapToGrid with given tolerance might also<br>
give you better results, but the chunked loading is always the best<br>
way to do topology building.<br>
<br>
--strk;<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>