(self, state)
| 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): |
nothing calls this directly
no test coverage detected