Opened 8 years ago

Closed 8 years ago

#5630 closed (fixed)

Can't initialise empty geometries

Reported by: rcoup 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 rcoup 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by rcoup

comment:1 Changed 8 years ago by jbronn

  • Resolution set to fixed
  • Status changed from new to closed

(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