arcpy.Project_management ERROR

1036
1
08-23-2013 01:49 AM
SimoneWeikl
New Contributor
Hello,

we are trying to run the following Python script. It is almost the same as "Beispiel 1" in this help: http://help.arcgis.com/de/arcgisdesktop/10.0/help/index.html#//00170000007m000000

The only differences are our input and output folders and the different coordinate system of our input file (WGS 1984). Also the output coordinate system is different.

Here is our script:

import arcpy
import os
input_features = "C:/Users/weikl/Documents/ArcGIS/base_data.gdb/startsMUC"
output_features_class = "C:/Users/weikl/Documents/ArcGIS/Car2go/wells_UTM11N.shp"
install_dir = arcpy.GetInstallInfo()['InstallDir']
out_coordinate_system = os.path.join(install_dir, r"Coordinate Systems/Projected Coordinate Systems/World/WGS 1984 Web Mercator.prj")
arcpy.Project_management(input_features, output_features_class, out_coordinate_system)

We get the following error message:

Runtime error  Traceback (most recent call last):   File "<string>", line 5, in <module>   File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.py", line 7786, in Project     raise e ExecuteError: ERROR 000622: Failed to execute (Project). Parameters are not valid. ERROR 000628: Cannot set input into parameter out_coor_system.

Does anyone have an idea what is going wrong??
Tags (2)
0 Kudos
1 Reply
BruceBacia
Occasional Contributor
You might try removing the "r" from in front of the coordinate system file path in the output_coordinate_system variable.  You can also use arcpy.AddMessage(output_coordinate_system) to verify the file path is correct.
0 Kudos