Select to view content in your preferred language

Change Dataframe projection with arcpy

1949
1
02-29-2012 08:12 AM
JeremieMinge
Deactivated User
Hi, I am new to the forum and to using python scripting so please forgive me if this topic has been covered. Although I was not able to find a post on this specific topic.

Is there a way to change the projection of the only dataframe in an mxd file? We have migrated our data to a new datamodel, and I am tasked with fixing all of the broken layer files in the mxd's. To add to the complication, during the datamodel upgrade we have converted our projection from NAD 27 to NAD 83.

Any insight into how to achieve this would be greatly appreciated!
Tags (2)
0 Kudos
1 Reply
MatthewMurray1
Occasional Contributor
Jeremie,

If you look at the last post in this link it will tell you what you can do to change this.

http://forums.arcgis.com/threads/11684-arcpy-change-data-frame-coordinate-system

basically, you just need to point the dataframe Spatial Reference to the prj file.

Create this script and run the tool on each mxd.
0 Kudos