[postgis-devel] [PostGIS] #549: ST_isCollection

PostGIS trac at osgeo.org
Thu Jul 1 03:23:36 PDT 2010


#549: ST_isCollection
-------------------------+--------------------------------------------------
 Reporter:  strk         |       Owner:  pramsey      
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.0.0
Component:  postgis      |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by strk):

 > Is an empty geometry a collection ?

 Well, a POINT EMPTY isn't, a GEOMETRYCOLLECTION EMPTY is, a
 MULTILINESTRING EMPTY is.
 But this is my POV, not necessarely what you're looking for.
 It was you proposing the function :)

 Anyway, my suggestion should pretty much match the NULL result from
 ST_GetNumGeometries,
 which was the whole reason to suggest this new function, right ?
 It used to return 0 for GEOMETRYCOLLECTION EMPTY and NULL for POINT EMPTY.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/549#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list