#5677 closed defect (fixed)
ST_Union(geom[]) doesn't union single member arrays
| Reported by: | pramsey | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 3.2.8 |
| Component: | postgis | Version: | 3.4.x |
| Keywords: | Cc: | robe |
Description
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))
)'
)
]
)
)
Change History (7)
comment:1 by , 6 months ago
comment:6 by , 6 months ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:7 by , 6 months ago
| Milestone: | PostGIS 3.5.0 → PostGIS 3.2.8 |
|---|
Note:
See TracTickets
for help on using tickets.

See also https://lists.osgeo.org/pipermail/postgis-devel/2024-February/030259.html