Opened 9 years ago

Closed 9 years ago

#5630 closed (fixed)

Can't initialise empty geometries

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

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 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by Robert Coup

Attachment: gis_geos_empty.diff added

comment:1 Changed 9 years ago by jbronn

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