[geos-devel] [GEOS] #594: geos turns 'POLYGON EMPTY' into 'POLYGON(EMPTY)'

GEOS geos-trac at osgeo.org
Tue Sep 25 18:49:31 PDT 2012


#594: geos turns 'POLYGON EMPTY' into 'POLYGON(EMPTY)'
------------------------+---------------------------------------------------
 Reporter:  cdestigter  |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:  3.3.6                     
Component:  Default     |     Version:  3.3.3                     
 Severity:  Unassigned  |    Keywords:                            
------------------------+---------------------------------------------------
 I wouldn't mind except that in postgis, ST_IsEmpty('POLYGON(EMPTY)') ==>
 False.

 Using the geodjango bindings:

 {{{
     >>> from django.contrib.gis import geos
     >>> g = geos.GEOSGeometry('POLYGON EMPTY')
     >>> print g.wkt, g.hex
     '01030000000100000000000000'

     >>> g = geos.GEOSGeometry('POLYGON(EMPTY)')
     >>> print g.wkt, g.hex
     '01030000000100000000000000'
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/594>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list