<div dir="ltr"><div><div><div><div>Hey,<br></div>Sandro could you give more details about how postgis topology use PolygonizeGraph in GEOS?<br><br></div>In particular, is there a geos graph corresponding to a topology or is it rebuild every time we need to make a change to this graph? (is only a small part rebuild or the whole graph?)<br>
</div><div>If it is stored, is it in cache or serialized and put in db?<br></div><div><br></div>And how does it work when inserting/deleting/changing a line into the topology model regarding this geos topological graph?<br>
<br></div>Thanks,<br>Rémi-C<br><div><div><br><br><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-18 8:36 GMT+01:00 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="">On Tue, Mar 18, 2014 at 11:04:27AM +1100, Luca Morandini wrote:<br>
> On 18/03/14 10:28, Stephen V. Mather wrote:<br>
> >I don't know.  Javascript is pretty fast these days. Given this and 1) no<br>
> >database overhead, 2) Not the same level of completeness to the algorithm, I<br>
> >would not be surprised by the JS being faster, in fact I'd expect it.<br>
><br>
> Certainly transactions are an overhead, but closeness to the data<br>
> should be an advantage (though not that large for small datasets).<br>
<br>
</div>You fetch all the data into memory before turning into TopoJSON,<br>
so the data is immediately available also to javascript.<br>
<div class=""><br>
> Actually, I presume adding one geometry at a time may be the real<br>
> performance killer, compared with knowing in advance all the<br>
> geometries that make the topology.<br>
<br>
</div>That's the other aspect of it, but as I said the PostGIS equivalent<br>
of that (CreateTopogeo) is currently also not optimized to take<br>
advantage of that. I'd love to see some contribution in the direction<br>
of speeding that up :)<br>
<div class="im HOEnZb"><br>
--strk;<br>
<br>
 ()  ASCII ribbon campaign  --  Keep it simple !<br>
 /\  <a href="http://strk.keybit.net/rants/ascii_mails.txt" target="_blank">http://strk.keybit.net/rants/ascii_mails.txt</a><br>
</div><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>