gis.gdal.SpatialReference.__getitem__()

__getitem__(target) Returns the value of the given string attribute node, None if the node doesn’t exist. Can also take a tuple as a parameter, (target, child), where child is the index of the attribute in the WKT. For example: >>> wkt = 'GEOGCS["WGS 84", DATUM["WGS_1984, ... AUTHORITY["EPSG","4326"]]') >>> srs = SpatialReference(wkt) # could also use 'WGS84', or 4326 >>> print(srs['GEOGCS']) WGS 84 >>> print(srs['DATUM']) WGS_1984 >>> print(srs['

gis.gdal.SpatialReference.wkt

wkt Returns the WKT representation of this spatial reference.

gis.gdal.SpatialReference.units

units Returns a 2-tuple of the units value and the units name and will automatically determines whether to return the linear or angular units.

gis.gdal.SpatialReference.srid

srid Returns the SRID of top-level authority, or None if undefined.

gis.gdal.SpatialReference.to_esri()

to_esri() Morphs this SpatialReference to ESRI’s format.

gis.gdal.SpatialReference.validate()

validate() Checks to see if the given spatial reference is valid, if not an exception will be raised.

gis.gdal.SpatialReference.semi_major

semi_major Returns the semi major axis of the ellipsoid for this spatial reference.

gis.gdal.SpatialReference.semi_minor

semi_minor Returns the semi minor axis of the ellipsoid for this spatial reference.

gis.gdal.SpatialReference.proj4

proj4 Alias for SpatialReference.proj.

gis.gdal.SpatialReference.projected

projected Returns True if this spatial reference is a projected coordinate system (root node is PROJCS).