[postgis-devel] [PostGIS] #1695: ST_SnapToGrid returns non-typed empties
PostGIS
trac at osgeo.org
Mon Mar 19 04:57:31 PDT 2012
#1695: ST_SnapToGrid returns non-typed empties
---------------------+------------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
{{{
strk=# select ST_AsEWKT(ST_SnapToGrid('MULTIPOLYGON(((0 0, 10 0, 10 10, 0
10, 0 0)))'::geometry, 20));
st_asewkt
--------------------------
GEOMETRYCOLLECTION EMPTY
(1 row)
}}}
Compare with ST_Simplify, which supports empties:
{{{
strk=# select ST_AsEWKT(ST_Simplify('POLYGON((0 0, 10 0, 10 10, 0 10, 0
0))'::geometry, 20));
st_asewkt
---------------
POLYGON EMPTY
(1 row)
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1695>
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