<div dir="ltr"><div><div>If you _know_ that your data is topological ready (no intersection).<br><br></div>You can  fill the topology table way faster using set query (rather than the actual line by line algorithm).<br></div>
<div><br>the first step would be to compute the pair of all connected segments, then extract from it node, node-segment relation and segment-segment relation. Then fil the face table with bbox from enveloppe of lines<br><br>
Yet it would require to write some dedicated sql.<br><br></div><div>Another solution (experimental) would be to load your geometry as a GRASS GIS vector layer, then use the Grass method (grass 7 only) to convert it to postgis_topology.<br>
</div><div>It should be way way faster.<br></div><div><br>Cheers,<br>Rémi-C<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-17 12:45 GMT+01:00 Luca Morandini <span dir="ltr"><<a href="mailto:lmorandini@ieee.org" target="_blank">lmorandini@ieee.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 17/03/14 19:51, Sandro Santilli wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Topology building speed is a known problem with PostGIS.<br>
<br>
A few resons I can think of:<br>
</blockquote></div>
...<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That said, see #2610 and #2616 for recent speed improvements<br>
with larger topologies.<br>
</blockquote>
<br></div>
D'oh ! Two orders of magnitude slower than a JavaScript program... I hoped I had done something very stupid instead.<br>
<br>
Anyway, thanks for the explanations.<div class="im HOEnZb"><br>
<br>
Regards,<br>
<br>
Luca Morandini<br>
Data Architect - AURIN project<br>
Melbourne eResearch Group<br>
Department of Computing and Information Systems<br>
University of Melbourne<br>
Tel. <a href="tel:%2B61%2003%20903%2058%20380" value="+61390358380" target="_blank">+61 03 903 58 380</a><br>
Skype: lmorandini<br>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">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-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a><br>
</div></div></blockquote></div><br></div>