<div dir="ltr"><div><div><div><div>Yes the table was "temp_trails", sorry for the typo.<br><br></div>I see what you are saying with the how geometries are updated with the set topogeom etc. It makes sense to me. <br><br>I think because this is my first time using topology in Postgis that I misunderstand what the results should look like. But I see now.<br><br></div>My end goal was to get topologically correct data, and split the lines at intersections (the latter can not be provided by topogeom column in the original data)...with this in mind I would need to use the geometries created in one of the edge tables and associate it back to the original attributes. Correct? In which case, Im assuming I could use the same statement as the one I had mentioned earlier for joining. <br><br></div><div>What I dont understand is why in some cases the relations table has been assigned the correct IDs from the original table and when it seems to provide its own. The only thing I have been able to do to make sure I can join each line back to its original attributes is to create a temporary table in public, give it a brand new primary key, and then the ID seem to carry over fine.<br></div><div><br></div></div><div>garret<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 29, 2016 at 4:40 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@kbt.io" target="_blank">strk@kbt.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, May 27, 2016 at 05:26:49PM -0500, Garret W wrote:<br>
<br>
> create public.temptrails as select * from production.trails;<br>
> alter table public.temptrails add primary key (trails_id);<br>
<br>
</span>Wasn't it called "temp_trails" ?<br>
<span class=""><br>
> I dont see anything that relates directly back to the original data.<br>
<br>
</span>If you confirm the table was "temp_trails", here's how the geometries<br>
get to relate to the original data (from your initial mail):<br>
<br>
 UPDATE public.temp_trails SET topogeom = toTopoGeom(geom, 'trails_topo', ...<br>
<br>
So you would have all the data associated within that table,<br>
with each "topogeom" value being composed by a set of primitive<br>
edges.<br>
<br>
While associating data directly to edge records would be possible,<br>
it is not a recommended design.<br>
<br>
--strk;<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/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div><br></div>