Browse files

[1.1.X] No longer use the deprecated GEOS C API function `GEOSGeomFro…

…mWKB_buf` when unpickling `GEOSGeometry` objects.

Backport of r12898 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7a7b9a0 commit fa114305cbf030818e1b056a7752d6bddb2e7c70 @jbronn jbronn committed Mar 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/geos/
@@ -142,7 +142,7 @@ def __getstate__(self):
def __setstate__(self, state):
# Instantiating from the tuple state that was pickled.
wkb, srid = state
- ptr = capi.from_wkb(wkb, len(wkb))
+ ptr =
if not ptr: raise GEOSException('Invalid Geometry loaded from pickled state.')
self.ptr = ptr

0 comments on commit fa11430

Please sign in to comment.