[postgis-devel] ST_NumGeometries/ST_GeometryN

strk strk at keybit.net
Thu Mar 11 23:26:19 PST 2010


Current behaviour of NumGeometries/GeometryN
is to always return NULL if the input is a single
geometry.

JTS/GEOS moved to support single geoms from similar
functions already, returning 1 from NumGeometries
and the input on GeometryN(1).

As for collections, GeometryN(<out_of_range_index>)
should still retur null.

Is everyone fine in also changing postgis interface
to do that ?

--strk; 

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



More information about the postgis-devel mailing list