[postgis-devel] Recognizing "kind" of geometry

strk strk at keybit.net
Sat Mar 6 04:35:23 PST 2010


On Sat, Mar 06, 2010 at 12:08:42AM +0000, Mateusz Loskot wrote:
> strk wrote:
> > On Fri, Mar 05, 2010 at 10:39:21PM +0000, Mateusz Loskot wrote:
> > 
> >> Where is problem in determining if a GEOMERYCOLLECTION
> >> is mixed or homogeneous?
> > 
> > A collection of areas or points or lines can be rendered
> > as a single layer on a map using a consistent symbology.
> 
> Sure and I still can't see what's missing in current model.

A MIXED spec is missing:
 ST_Dimension returns *max* dimension of component geometries.

An EMPTY spec is missing:
 ST_isEmpty('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)') 
return false (could be a bug)

--strk;

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



More information about the postgis-devel mailing list