MCPcopy
hub / github.com/django/django / geos

Method geos

django/contrib/gis/gdal/geometries.py:370–379  ·  view source on GitHub ↗

Return a GEOSGeometry object from this OGRGeometry.

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 3

_geos_ptrMethod · 0.95
GEOSGeometryClass · 0.90
GEOSExceptionClass · 0.90

Tested by

no test coverage detected