<div dir="ltr"><div><div>Sandro,<br><br></div>Thanks for the suggestion. The speed of my queries are fine even with the relation table. Populating the topology however is quite slow, >2 hours for 64k polygons. Which leads to another question which should probably be asked in another thread - but what tools are available for interactive topology editing? If I could maintain my data in the topology then I would not need to repeatedly reload it.<br>
<br></div>Thanks,<br>Rich<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:10 AM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, Jul 23, 2014 at 10:49:47AM +0200, Rémi Cura wrote:<br>
<br>
> Your querry could look like this:<br>
><br>
> SELECT my_topogeom, f.face_id<br>
> FROM my_table AS mt<br>
> INNER JOIN relation AS r ON (((mt.mytopogeom).id ,<br>
> (mt.mytopogeom).layer_id)) = (r.topogeo_id, r.layer_id  )<br>
> INNER JOIN face AS f ON (r.element_id = f.face_id)<br>
<br>
</div>See also <a href="http://postgis.net/docs/GetTopoGeomElements.html" target="_blank">http://postgis.net/docs/GetTopoGeomElements.html</a><br>
.. if you want to have more isolation from the "relation" table<br>
(not necessarely a good idea, in terms of speed)<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><br clear="all"><br>-- <br><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div>
</div>