[postgis-devel] [PostGIS] #457: ST_CollectionExtract returns non-requested type
PostGIS
trac at osgeo.org
Thu Sep 16 11:56:05 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):
I add a patch that should give the results expected in testcase.patch
So it should return the asked for type even if it is not in a collection.
But I have done nothing about the documentation.
If we go this way the function name is a little misleading. It maybe
should have been something like ST_TypeExtract instead. But that is
nothing for a minor release and I guess that is no big deal.
Or should we give an error message instead if function is feed with else
than collection.
Or maybe, always return an empty collection when inputed geometry is not
collection with a notice?
But it might be quite useful to just get everything of the asked for type
even if it is no collection.
/Nicklas
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/457#comment:4>
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