Opened 10 years ago

Closed 6 years ago

#594 closed defect (duplicate)

geos turns 'POLYGON EMPTY' into 'POLYGON(EMPTY)'

Reported by: cdestigter Owned by: geos-devel@…
Priority: major Milestone: 3.6.1
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

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

Change History (9)

comment:1 by cdestigter, 10 years ago

I filed a postgis bug for that ST_IsEmpty issue:

comment:2 by cdestigter, 10 years ago

Even worse, I can't even use hex to create the geometry, which means I can't work around the bug:

    >>> geos.GEOSGeometry('010300000000000000').hex

comment:3 by strk, 10 years ago


I see the postgis side has been fixed (but only 2.1.x) Have a patch for the GEOS side of it ?

comment:4 by strk, 10 years ago


comment:5 by robe, 9 years ago


oh no the empty typed space again with no patch to support it. Push.

comment:6 by robe, 7 years ago


comment:7 by strk, 6 years ago


Ticket retargeted after milestone closed

comment:8 by sirsigurd, 6 years ago

looks like a duplicate of #680

comment:9 by strk, 6 years ago

Resolution: duplicate
Status: newclosed

Yep, confirmed, thanks for checking.

Note: See TracTickets for help on using tickets.