Converts a spatial reference from one format to another, such as an OGC WKT string to a Proj4 string.
| Class: | TimeSeriesGridStack |
| Intended use: | Recommended for external callers |
| COM: | Not exposed by a COM class |
| ArcGIS: | Not exposed as an ArcGIS geoprocessing tool |
| Method type: | Classmethod |
| outputSR = TimeSeriesGridStack.ConvertSpatialReference( | srType, sr, outputSRType) |
| Python type: | unicode |
| Allowed values: | u'WKT', u'ArcGIS', u'Proj4', u'Obj' |
The kind of the spatial reference to convert, i.e. the type of object you are providing for the sr parameter:
| Python type: | object or None |
Spatial reference to convert. This may be None, representing an "undefined" spatial reference, but see the documentation for the outputSRType parameter.
| Python type: | unicode |
| Allowed values: | u'WKT', u'ArcGIS', u'Proj4', u'Obj' |
The kind of the spatial reference to return. The allowed values are the same as for the srType parameter.
If srType and outputSRType are the same, a copy of the input spatial reference will be returned. If they are 'Obj', a deep copy of the input OSR SpatialReference instance will be created by initializing a new instance from the OGC WKT exported from the input instance.
If sr is None, None will be returned, except if outputSRType is 'ArcGIS', in which case the string '{B286C06B-0879-11D2-AACA-00C04FA33C20}' will be returned. ArcGIS uses this string to represent the "Unknown" spatial reference.
| Python type: | object |
Spatial reference resulting from the conversion, either a Unicode string, an OGR SpatialReference instance, or None.