[postgis-devel] [PostGIS] #457: ST_CollectionExtract returns non-requested type

PostGIS trac at osgeo.org
Thu Sep 16 10:39:45 PDT 2010


#457: ST_CollectionExtract returns non-requested type
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.5.2
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by nicklas):

 It looks like this behavior is intended from the comment in the end of
 lwgeom_functions_basic.c:
         /* Mirror non-collections right back */

 But I agree that this is no good.

 As the documentation is written now, it should definitly give an error
 message if the inputed geometry is not a collection, but it would also
 make sense as in the testcase.patch, the inputed geometry is mirrored if
 and only if it is of the type that is asked for. But then that should be
 reflected in the documentation to.

 I can do the changes if someone decides which way to go

 /Nicklas

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/457#comment:3>
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