[postgis-tickets] [PostGIS] #5336: topoelementarray_agg that takes topogeom

PostGIS trac at osgeo.org
Mon Feb 13 09:30:31 PST 2023


#5336: topoelementarray_agg that takes topogeom
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.4.0
Component:  postgis  |    Version:  master
 Keywords:           |
---------------------+---------------------------
 When you want to pass in a topogeom as a topoelement for building, the
 syntax is pretty ugly and hard to explain.

 As discussed in this thread
 https://lists.osgeo.org/pipermail/postgis-users/2023-February/045845.html

 In order to build hierarchical topoelement using topogeom, you need to do
 this ugly thing of


 {{{
 TopoElementArray_Agg(
 ARRAY[(topo).id,(topo).layer_id]::topology.topoelement )
 }}}

 It would be cleaner if we have a topoelementArray_agg that takes a topo or
 have topogeometry be able to autocast to a topoelement.

 Then the above would reduce to

 TopoElementArray_Agg( topo )
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5336>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list