Ticket #671 (closed defect: fixed)

Opened 2 years ago

Last modified 17 months ago

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

Changed 2 years ago by pramsey

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.

Changed 2 years ago by mwtoews

  • summary changed from ST_isempty( GEOMETRYCOLLECTION(GEOMETRYCOLLECTION(EMPTY)) ) returns false to ST_IsEmpty('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)')

Changed 2 years ago by robe

  • milestone changed from PostGIS 1.5.3 to PostGIS 2.0.0

Changed 17 months ago by strk

for example: should ST_Dump return all empty elements or not ? The current situation is it returns some (not all)

Changed 17 months ago by strk

  • status changed from new to closed
  • resolution set to fixed

r8725 fixes this (and ST_Dump dumps nothing).

Note: See TracTickets for help on using tickets.