Opened 14 years ago
Closed 13 years ago
#671 closed defect (fixed)
ST_IsEmpty('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)')
Reported by: | strk | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | 1.5.X |
Keywords: | Cc: |
Description
A collection of empty collections is empty to me, what do you think ? We return false currently
Change History (5)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Summary: | ST_isempty( GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(EMPTY)) ) returns false → ST_IsEmpty('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)') |
---|
comment:3 by , 13 years ago
Milestone: | PostGIS 1.5.3 → PostGIS 2.0.0 |
---|
comment:4 by , 13 years ago
for example: should ST_Dump return all empty elements or not ? The current situation is it returns some (not all)
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
r8725 fixes this (and ST_Dump dumps nothing).
Note:
See TracTickets
for help on using tickets.
A collection of empty geometries has ngeoms > 0, but from a spatial coverage point of view is just as empty as a non empty thing. We mainly want to be careful not to short circuit functions that work against numelements when numelements is > 0, even when the contents are empty.