<div dir="ltr"><div><br></div><div><br></div>Part of a lineal topogeom because all lineal in the topogeometry may not be concerned nor returned.<div><br></div><div>the function returns an id  as the 3d part of a topogeom type (we don't need others, they can be found using <span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px"> </span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px">a_puntal_topogeom_name and </span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.666666984558105px">a_puntal_topogeom_layer_id</span> (I think) ).<br>
<br>The topogeom name would be the tablename of the topogeom as in the table "layer"."table_name".<br><br>I agree it may be more general to do (as you suggest)</div><div>topogeometry <---> list of primitives <---> topogeometry.<br>
<br>Than </div><div>topogeometry <---> topogeometry<br><br><br>Still,  in what you suggest they may be multiple different topogeoms as answer (maybe puntal point1 and puntal point2, etc etc), so we would need a way to indicate which topogeom we are interested in, thus being effectively like :</div>
<div>topogeometry <---> topogeometry<br><br>And this kind of function seems mandatory if you want to work with numerous topogeom without casting back and forth to geometry.<br><br>Cheers,<br>Rémi-C<br><br></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 03:28:00PM +0200, Rémi Cura wrote:<br>
> (switching to devel list)<br>
> What would you think of 2 functions :<br>
><br>
> GetRelatedPuntal(Lineal)<br>
> GetRelatedLineal (Puntal)<br>
><br>
> This function would allow, when having a lineal, to get puntal sharing a<br>
> node;<br>
> and when having a puntal, to get part of a lineal sharing node with it.<br>
><br>
> precise signature being :<br>
><br>
> SET OF id_topogeom GetRelatedLineal( a_puntal_topogeom_name,<br>
> a_puntal_topogeom_layer_id )<br>
<br>
</div>Why do you mention "part of a lineal", if the signature returns<br>
a full TopoGeometry (by id) ? What's a "topogeom name" ?<br>
<br>
The functions you suggest seem very specific to your need, not sure it<br>
would make sense to have them in core. I think we do have a function<br>
to get a list of primitives from a TopoGeometry. Maybe a generic missing<br>
function is one to get a list of TopoGeometry from primitives.<br>
<div class="HOEnZb"><div class="h5"><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/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>