[PostGIS] #5677: ST_Union(geom[]) doesn't union single member arrays

PostGIS trac at osgeo.org
Mon Feb 26 11:22:49 PST 2024


#5677: ST_Union(geom[]) doesn't union single member arrays
---------------------+---------------------------
 Reporter:  pramsey  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.5.0
Component:  postgis  |    Version:  3.4.x
 Keywords:           |
---------------------+---------------------------
 Compare
 {{{
 select
  st_asewkt(
    st_union(
      array[
        st_geomfromtext(
          'GEOMETRYCOLLECTION(
            POLYGON((0 0,10 0,25 25,0 10,0 0)),
            POLYGON((20 20,30 20,30 30,20 30,20 20))
          )'
        )
      ]
    )
  )
 }}}
 and
 {{{
 select
  st_asewkt(
    st_union(
      array[
        st_geomfromtext(
          'GEOMETRYCOLLECTION(
            POLYGON((0 0,10 0,25 25,0 10,0 0)),
            POLYGON((20 20,30 20,30 30,20 30,20 20))
          )'
        ),
        st_geomfromtext(
          'GEOMETRYCOLLECTION(
            POLYGON((100 100, 110 100, 110 110, 100 100))
          )'
        )
      ]
    )
  )
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5677>
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