DavidHaberkorn

Change coordinate system in multiple MXDs ArcGIS 9.3 - accessing data frames

Discussion created by DavidHaberkorn on Mar 6, 2013
Latest reply on Mar 8, 2013 by jbarrette-esristaff
Hi,

I have to loop through some folders which may contain *.mxd files and change their coordinate system. I already found this piece of Python which should do the trick for ArcGIS 10.x (from http://forums.arcgis.com/threads/11684-arcpy-change-data-frame-coordinate-system):

prjFile = prjPath + "/" + "NAD 1983 UTM Zone 10N.prj"
sr = arcpy.SpatialReference(prjFile)
for DF in MAP.ListDataFrames(MXD):
    DF.spatialReference = sr


However, it looks like there is nothing similar to the arcpy.mapping module in 10 available in 9.3. I need to access the MXD file and then the dataframe(s) it contains, in order to change the coordinate system.

I could not find anything useful so far, although I assume that other people may have similar issues.

My question therefore, is there any (simple) workaround to this using Python (arcgisscripting) in ArcGIS 9.3?


Thanks

Outcomes