Hi,
I want to modify a spatial reference object to change the central meridian of a Mollweide projection. The documentation for the Spatial Reference Object lists the centralMeridian property as read-write but when I try and modify it the value doesn't change. Am I missing something obvious?
Code below. Running ArcGIS 10, SP2.
The code below runs with no errors:
import arcpy
outputPrj = r'C:\Program Files (x86)\ArcGIS\Desktop10.0\Coordinate Systems\Projected Coordinate Systems\World\Mollweide (world).prj'
spatialRef = arcpy.SpatialReference(outputPrj)
print 'central meridian', spatialRef.centralMeridian
spatialRef.centralMeridian = -70.1
print 'modified ref central meridian', spatialRef.centralMeridian
and it prints the text below, showing that the property hasn't changed:
central meridian 0.0
modified ref central meridian 0.0