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

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


#5336: topoelementarray_agg that takes topogeom
-----------------------+---------------------------
  Reporter:  robe      |      Owner:  robe
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.4.0
 Component:  topology  |    Version:  master
Resolution:            |   Keywords:
-----------------------+---------------------------
Description changed by robe:

Old description:

> 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 )

New description:

 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 )

--
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5336#comment:2>
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