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 pramsey, 14 years ago

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.

comment:2 by Mike Taves, 13 years ago

Summary: ST_isempty( GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(EMPTY)) ) returns falseST_IsEmpty('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)')

comment:3 by robe, 13 years ago

Milestone: PostGIS 1.5.3PostGIS 2.0.0

comment:4 by strk, 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 strk, 13 years ago

Resolution: fixed
Status: newclosed

r8725 fixes this (and ST_Dump dumps nothing).

Note: See TracTickets for help on using tickets.