diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/gdal/raster/source.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/django/contrib/gis/gdal/raster/source.py b/django/contrib/gis/gdal/raster/source.py index 3b4eb183b1..0f3a3a2744 100644 --- a/django/contrib/gis/gdal/raster/source.py +++ b/django/contrib/gis/gdal/raster/source.py @@ -215,6 +215,20 @@ class GDALRaster(GDALBase): self._flush() @property + def srid(self): + """ + Shortcut to access the srid of this GDALRaster. + """ + return self.srs.srid + + @srid.setter + def srid(self, value): + """ + Shortcut to set this GDALRaster's srs from an srid. + """ + self.srs = value + + @property def geotransform(self): """ Returns the geotransform of the data source. |
