Opened 22 months ago

Last modified 21 months ago

#5336 closed defect

topoelementarray_agg that takes topogeom — at Version 2

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS 3.4.0
Component: topology Version: master
Keywords: Cc:

Description (last modified by robe)

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 topogeometry or have topogeometry be able to autocast to a topoelement.

Then the above would reduce to

TopoElementArray_Agg( topo )

Change History (2)

comment:1 by robe, 22 months ago

Component: postgistopology
Owner: changed from pramsey to robe

comment:2 by robe, 22 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.