<div dir="ltr"><div><div><div>Hey,<br></div>the mapping is not direct.<br>Schematically,<br>it would be :<br></div>your topogeom -> (topogeom_id) relation table (element_id)-> (face_id) face.<br></div><div>Maybe this schema can help you :<br>
<a href="http://trac.osgeo.org/postgis/attachment/ticket/2578/postgis_topology_data_model_explained%20%286%29.png">http://trac.osgeo.org/postgis/attachment/ticket/2578/postgis_topology_data_model_explained%20%286%29.png</a><br>
<br></div><div>Your querry could look like this:<br><br>SELECT my_topogeom, f.face_id<br>FROM my_table AS mt<br></div><div>INNER JOIN relation AS r ON (((mt.mytopogeom).id , (mt.mytopogeom).layer_id)) = (r.topogeo_id, r.layer_id  )<br>
</div><div>INNER JOIN face AS f ON (r.element_id = f.face_id)<br><br></div>Cheers,<br>Rémi-C<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-23 3:17 GMT+02:00 Richard Greenwood <span dir="ltr"><<a href="mailto:richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a table of simple polygons named work.aliquot with a primary key named ogc_fid and several columns of attribute data. I created a topology and added a topogeometry column and then:<br>
<br>UPDATE aliquot SET topogeom = toTopoGeom(wkb_geometry, 'aliquot_topology', 1);<br clear="all">
<div><br></div><div>The various fields and tables all appear to have been populated correctly.<br></div><div><br></div><div>Now I need to join the attributes from the work.aliquot table to aliquot_topology.face but I'm stuck. I was guessing that aliquot_topology.relation would be the route but after some experimenting that seems not to be the case, or else I'm not getting it. Do I have to do a spatial join to get my attributes from the source table into my new topology?<br>

<br></div><div>Thanks,<br>Rich<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div>

</div></font></span></div>
<br>_______________________________________________<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></blockquote></div><br></div>