[postgis-devel] [PostGIS] #2015: ST_IsEmpty('POLYGON(EMPTY)') returns False
PostGIS
trac at osgeo.org
Tue Sep 25 18:56:43 PDT 2012
#2015: ST_IsEmpty('POLYGON(EMPTY)') returns False
------------------------+---------------------------------------------------
Reporter: cdestigter | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: postgis | Version: trunk
Keywords: |
------------------------+---------------------------------------------------
Firstly, I used the wkb for POLYGON(EMPTY), since postgis' wkt parser
appears to cast a lot of things to GEOMETRYCOLLECTION EMPTY, losing type
information.
But shouldn't this return True?
# select st_isempty('01030000000100000000000000'::geometry);
st_isempty
------------
f
(1 row)
Also see this geos bug which exacerbates the problem:
http://trac.osgeo.org/geos/ticket/594
POSTGIS="2.1.0SVN r10262" GEOS="3.3.3-CAPI-1.7.4" PROJ="Rel. 4.7.1, 23
September 2009" LIBXML="2.7.6"
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2015>
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