[postgis-devel] ST_CollectionExtract with empy collection

strk strk at keybit.net
Wed Feb 16 09:36:38 PST 2011


On Wed, Feb 16, 2011 at 05:55:58PM +0100, Andrea Peri wrote:
> Hi,
> 
> I notice this
> query
> SELECT ST_AsText(ST_CollectionExtract(ST_GeomFromText('GEOMETRYCOLLECTION
> EMPTY'),2));
> 
> return
> GEOMETRYCOLLECTION EMPTY
> 
> I don't know if it is a bug or a wanted feature

Looking at http://trac.osgeo.org/postgis/ticket/457
I'd think consistency would call for a NULL return instead.

Would that satisfy you ?

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list