[postgis-devel] [PostGIS] #2015: ST_IsEmpty('POLYGON(EMPTY)') returns False

PostGIS trac at osgeo.org
Fri Nov 2 13:59:34 PDT 2012


#2015: ST_IsEmpty('POLYGON(EMPTY)') returns False
------------------------+---------------------------------------------------
 Reporter:  cdestigter  |       Owner:  pramsey     
     Type:  defect      |      Status:  new         
 Priority:  medium      |   Milestone:  PostGIS GEOS
Component:  postgis     |     Version:  trunk       
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by pramsey):

 This isn't a GEOS issue (or, maybe GEOS has a similar WKB interpretation
 issue), but anyway, I've decided to treat "polygon with a zero vertex
 ring" as "empty", in the same way "polygon with no rings" is empty. So the
 example query above will return true. As a side effect, you won't be able
 to round-trip WKB of the form 01030000000100000000000000. Instead if you
 put in 01030000000100000000000000 (polygon with one empty ring) you'll get
 out 010300000000000000 (polygon with no rings).

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2015#comment:3>
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