Opened 11 years ago

Closed 11 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: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Initialising an empty Geometry:

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

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Robert Coup

Attachment: gis_geos_empty.diff added

comment:1 Changed 11 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