MCPcopy
hub / github.com/django/django / srs

Method srs

django/contrib/gis/gdal/raster/source.py:296–306  ·  view source on GitHub ↗

Return the SpatialReference used in this GDALRaster.

(self)

Source from the content-addressed store, hash-verified

294
295 @property
296 def srs(self):
297 """
298 Return the SpatialReference used in this GDALRaster.
299 """
300 try:
301 wkt = capi.get_ds_projection_ref(self._ptr)
302 if not wkt:
303 return None
304 return SpatialReference(wkt, srs_type="wkt")
305 except SRSException:
306 return None
307
308 @srs.setter
309 def srs(self, value):

Callers

nothing calls this directly

Calls 3

_flushMethod · 0.95
SpatialReferenceClass · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected