SetSpatialReference Method

Sets the spatial reference of this dataset.

Class:MODISL3SSTTimeSeries
Intended use:Recommended for external callers
COM:Not exposed by a COM class
ArcGIS:Not exposed as an ArcGIS geoprocessing tool
Method type:Instance Method

Usage

grid.SetSpatialReference(srType, sr)

Arguments

srType
Python type:unicode
Allowed values:u'WKT', u'ArcGIS', u'Proj4', u'Obj'

Type of spatial reference you are providing for the sr parameter.

The allowed values are:

sr
Python type:object

Spatial reference for the dataset.

Remarks

This function is similar in operation to the ArcGIS Define Projection geoprocessing tool; it changes the spatial reference of the dataset without changing any of the data itself. It does not geographically project the existing data to the new spatial reference. It is used mainly to fix datasets that do not have a spatial reference or that are using the wrong one.

Not all datasets support setting the spatial reference. To determine if the spatial reference can be set, test the 'SetSpatialReference' capability.