[postgis-devel] [PostGIS] #2015: ST_IsEmpty('POLYGON(EMPTY)') returns False
PostGIS
trac at osgeo.org
Tue Sep 25 19:32:04 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: |
------------------------+---------------------------------------------------
Comment(by robe):
Are you sure you typed POLYGON(EMPTY). That isn't valid. In fact I get a
parse error when I try to cast that to a geometry.
An empty polygon is this:
{{{
SELECT ST_IsEmpty('POLYGON EMPTY'::geometry);
Which gives:
t
}}}
What your bytea resolves to is this:
{{{
select st_AsEWKT('01030000000100000000000000'::geometry) As result;
result
------------
POLYGON(())
}}}
Which I'm not quite sure what to call that.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2015#comment:1>
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