<div dir="ltr">Hm even simpler <span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px">(topology_id, layer_id, topogeo_id, type)::topogeometry </span><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px">works</span></div>
<div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px"><br></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px">Cheers,</span></div>
<div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px">Rémi-C</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/22 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="im">On Tue, Oct 22, 2013 at 06:38:12PM +0200, Sandro Santilli wrote:<br>
> On Tue, Oct 22, 2013 at 06:32:11PM +0200, Rémi Cura wrote:<br>
> > Hey,<br>
> > is there a cleaner way to create a topogeometry in a sql query than<br>
> ><br>
> > ROW(topology_id, layer_id, topogeo_id, type)::topogeometry ?<br>
><br>
> <a href="http://postgis.net/docs/manual-2.0/CreateTopoGeom.html" target="_blank">http://postgis.net/docs/manual-2.0/CreateTopoGeom.html</a><br>
><br>
> Sounds like you'd be missing a topology name for using those, you<br>
> can get it with<br>
><br>
> <a href="http://postgis.net/docs/manual-2.0/GetTopologyID.html" target="_blank">http://postgis.net/docs/manual-2.0/GetTopologyID.html</a><br>
<br>
</div>Sorry, I meant <a href="http://postgis.net/docs/manual-2.0/GetTopologyName.html" target="_blank">http://postgis.net/docs/manual-2.0/GetTopologyName.html</a><br>
<br>
It wouldn't be a bad idea to add overloaded versions of CreateTopoGeom<br>
taking topology_id rather than topology_name.<br>
<br>
--strk;<br>
<br>
 <a href="http://www.cartodb.com" target="_blank">http://www.cartodb.com</a> - Map, analyze and build applications with your data<br>
<br>
                                       ~~ <a href="http://strk.keybit.net" target="_blank">http://strk.keybit.net</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</a><br>
</div></div></blockquote></div><br></div>