Opened 18 years ago
Closed 18 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)
Change History (2)
by , 18 years ago
| Attachment: | gis_geos_empty.diff added |
|---|
comment:1 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [6465]) gis: geos: Fixed #5630 with patch from rcoup; added the
ograndsrsproperties.