Opened 17 years ago

Closed 17 years ago

#5630 closed (fixed)

Can't initialise empty geometries

Reported by: Robert Coup Owned by: jbronn
Component: GIS Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Initialising an empty Geometry:

g = GEOSGeometry("GEOMETRYCOLLECTION EMPTY")
g = GeometryCollection([])

fails with a KeyError in GEOSPointer.set_children() because it tries to look for a sequence in the first array item.

Attached patch fixes it, and provides some simple "empty" tests.

Attachments (1)

gis_geos_empty.diff (1.5 KB ) - added by Robert Coup 17 years ago.

Download all attachments as: .zip

Change History (2)

by Robert Coup, 17 years ago

Attachment: gis_geos_empty.diff added

comment:1 by jbronn, 17 years ago

Resolution: fixed
Status: newclosed

(In [6465]) gis: geos: Fixed #5630 with patch from rcoup; added the ogr and srs properties.

Note: See TracTickets for help on using tickets.
Back to Top