#5630: Can't initialise empty geometries
-----------------------+----------------------------------------------------
Reporter: rcoup | Owner: jbronn
Status: new | Component: GIS
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
-----------------------+----------------------------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/5630>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---