MCPcopy
hub / github.com/django/django / _get_srs

Method _get_srs

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

Return the Spatial Reference for this Geometry.

(self)

Source from the content-addressed store, hash-verified

317
318 # The SRS property
319 def _get_srs(self):
320 "Return the Spatial Reference for this Geometry."
321 try:
322 srs_ptr = capi.get_geom_srs(self.ptr)
323 return SpatialReference(srs_api.clone_srs(srs_ptr))
324 except SRSException:
325 return None
326
327 def _set_srs(self, srs):
328 "Set the SpatialReference for this geometry."

Callers

nothing calls this directly

Calls 1

SpatialReferenceClass · 0.90

Tested by

no test coverage detected