mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Refs #25588 -- Added the srid property to GDALRaster
Geometry objects have an srid property, so this addition makes the raster api more similar to the geometries api.
This commit is contained in:
parent
e5ab75d2fd
commit
48548d1a47
3 changed files with 39 additions and 0 deletions
|
@ -214,6 +214,20 @@ class GDALRaster(GDALBase):
|
|||
capi.set_ds_projection_ref(self._ptr, srs.wkt.encode())
|
||||
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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue