MCPcopy
hub / github.com/django/django / __setstate__

Method __setstate__

django/contrib/gis/gdal/geometries.py:145–151  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

143 return bytes(self.wkb), srs
144
145 def __setstate__(self, state):
146 wkb, srs = state
147 ptr = capi.from_wkb(wkb, None, byref(c_void_p()), len(wkb))
148 if not ptr:
149 raise GDALException("Invalid OGRGeometry loaded from pickled state.")
150 self.ptr = ptr
151 self.srs = srs
152
153 @classmethod
154 def _from_wkb(cls, geom_input):

Callers

nothing calls this directly

Calls 1

GDALExceptionClass · 0.90

Tested by

no test coverage detected