Return a GEOSGeometry object from this OGRGeometry.
(self)
| 368 | |
| 369 | @property |
| 370 | def geos(self): |
| 371 | "Return a GEOSGeometry object from this OGRGeometry." |
| 372 | if self.geos_support: |
| 373 | from django.contrib.gis.geos import GEOSGeometry |
| 374 | |
| 375 | return GEOSGeometry(self._geos_ptr(), self.srid) |
| 376 | else: |
| 377 | from django.contrib.gis.geos import GEOSException |
| 378 | |
| 379 | raise GEOSException(f"GEOS does not support {self.__class__.__qualname__}.") |
| 380 | |
| 381 | @property |
| 382 | def gml(self): |
nothing calls this directly
no test coverage detected