SetMapProjection()

Summary

Sets the projection and coordinate system used in a map.

Syntax

SetMapProjection(string map_name, string proj_name, array parameters)

Argument Contents
map_name The name of the map, or null for the current map
proj_name The name of the projection; see Notes
parameters An array of projection parameters (strings); see Notes

Notes

  • If the map has an image layer, SetMapProjection() cannot change the projection from that of the image layer. You must drop the image layer to change the projection of the map.

  • For more details on the name of the projection (using the abbreviation) and the projection parameters, see Custom Coordinate System.

Examples

// Change the map's projection to UTM, zone 19, meters
SetMapProjection(null, "utm", {"zone=19", "ellps=GRS80"})
// Change the map's projection to 1983 State Plane, Massachusetts Mainland, US Survey Feet
SetMapProjection(null, "nad83:2001", {"units=us-ft"})

See Also

Function Summary
SetMapOptions() Sets options for a map window
GetMapProjection() Returns the projection and coordinate system used in a map
GetProjectionScope() Returns a valid scope for a particular projection