[postgis-devel] [PostGIS] #1778: ST_CollectionExtract: inconsistent EMPTY results
PostGIS
trac at osgeo.org
Fri Apr 20 00:12:24 PDT 2012
#1778: ST_CollectionExtract: inconsistent EMPTY results
----------------------+-----------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: reopened
Priority: medium | Milestone: PostGIS 2.0.1
Component: postgis | Version: 2.0.x
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Changes (by strk):
* status: closed => reopened
* resolution: invalid =>
Comment:
Replying to [comment:1 pramsey]:
> Actually the behaviour is consistent: when passed a non-collection, the
function just echoes it back.
Not true. Was changed some time ago to always return the requested type:
{{{
=# select ST_AsText(ST_CollectionExtract('POINT(0 0)', 2));
st_astext
------------------
LINESTRING EMPTY
(1 row)
}}}
See #457
It would be consistent to always return the MULTI* version of the
requested type...
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1778#comment:2>
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