csny490

Path to .prj files in ArcGIS v10.1?

Discussion created by csny490 on Aug 8, 2012
Latest reply on Feb 15, 2013 by Wayne_Whitley
In v10.0 and before there was always a folder that contained all the ESRI .prj definition files... Usually something like C:\Program Files\ArcGIS\Desktop10.0\Coordinate Systems.

Maybe I messed up my install somehow, but now in v10.1 it seems that 'Coordinate Systems' folder is no longer there, and to boot, there are no .prj files at all in the ArcGIS Program Files directory... at all!

I always used the .prj files to set the arcpy.env.outputCoordinateSystem variable (and all its various past incarnations).

What gives? How can we now access the official ESRI projection definitions in a script if there are no .prj definition file anymore?

The help says you can use .prj files, and the provided example in the arcpy.env.outputCoordinateSystem help topic yields:

arcpy.env.outputCoordinateSystem = "Coordinate Systems/Projected Coordinate Systems/UTM/WGS 1984/Northern Hemisphere/WGS 1984 UTM Zone 18N.prj"
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Desktop10.1\arcpy\arcpy\geoprocessing\_base.py", line 515, in set_
    self[env] = val
  File "C:\Program Files\ArcGIS\Desktop10.1\arcpy\arcpy\geoprocessing\_base.py", line 567, in __setitem__
    ret_ = setattr(self._gp, item, value)
RuntimeError: Object: Error in accessing environment <outputCoordinateSystem>
Am I totally missing something?

Outcomes