<div dir="ltr">For generality sack,<div><br></div><div>topogeometry output may be better.<br><br><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">SET OFtopogeometry GetRelatedLineal( a_source_lineal_topogeom TOPOGEOMETRY, a_target_puntal_topogeom_name TEXT (or REGCLASS), a_target_puntal_topogeom_</span><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">layer_id INT )</span></div>
<div><font face="arial, sans-serif"><span style="font-size:12.666666984558105px"><br></span></font>Cheers,<br>Rémi C</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/22 Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@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">Oups, missing an input :<div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">SET OF id_topogeom GetRelatedLineal( a_source_lineal_topogeom TOPOGEOMETRY, a_target_puntal_topogeom_name TEXT (or REGCLASS), a_target_puntal_topogeom_layer_id INT )</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">Cheers,</span></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br>
Rémi-C</span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/22 Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@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"><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><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>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><div><br>
--strk;<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>