mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +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
|
@ -1204,6 +1204,21 @@ blue.
|
|||
>>> rst.srs.srid
|
||||
3086
|
||||
|
||||
.. attribute:: srid
|
||||
|
||||
The Spatial Reference System Identifier (SRID) of the raster. This
|
||||
property is a shortcut to getting or setting the SRID through the
|
||||
:attr:`srs` attribute.
|
||||
|
||||
>>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326})
|
||||
>>> rst.srid
|
||||
4326
|
||||
>>> rst.srid = 3086
|
||||
>>> rst.srid
|
||||
3086
|
||||
>>> rst.srs.srid # This is equivalent
|
||||
3086
|
||||
|
||||
.. attribute:: geotransform
|
||||
|
||||
The affine transformation matrix used to georeference the source, as a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue