Oups, missing an input : 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 )
Cheers, Rémi-C 2013/10/22 Rémi Cura <[email protected]> > > > Part of a lineal topogeom because all lineal in the topogeometry may not > be concerned nor returned. > > the function returns an id as the 3d part of a topogeom type (we don't > need others, they can be found using a_puntal_topogeom_name and > a_puntal_topogeom_layer_id (I think) ). > > The topogeom name would be the tablename of the topogeom as in the table > "layer"."table_name". > > I agree it may be more general to do (as you suggest) > topogeometry <---> list of primitives <---> topogeometry. > > Than > topogeometry <---> topogeometry > > > 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 : > topogeometry <---> topogeometry > > And this kind of function seems mandatory if you want to work with > numerous topogeom without casting back and forth to geometry. > > Cheers, > Rémi-C > > > > 2013/10/22 Sandro Santilli <[email protected]> > >> On Tue, Oct 22, 2013 at 03:28:00PM +0200, Rémi Cura wrote: >> > (switching to devel list) >> > What would you think of 2 functions : >> > >> > GetRelatedPuntal(Lineal) >> > GetRelatedLineal (Puntal) >> > >> > This function would allow, when having a lineal, to get puntal sharing a >> > node; >> > and when having a puntal, to get part of a lineal sharing node with it. >> > >> > precise signature being : >> > >> > SET OF id_topogeom GetRelatedLineal( a_puntal_topogeom_name, >> > a_puntal_topogeom_layer_id ) >> >> Why do you mention "part of a lineal", if the signature returns >> a full TopoGeometry (by id) ? What's a "topogeom name" ? >> >> The functions you suggest seem very specific to your need, not sure it >> would make sense to have them in core. I think we do have a function >> to get a list of primitives from a TopoGeometry. Maybe a generic missing >> function is one to get a list of TopoGeometry from primitives. >> >> --strk; >> _______________________________________________ >> postgis-users mailing list >> [email protected] >> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users >> > >
_______________________________________________ postgis-users mailing list [email protected] http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
