sweikl

arcpy.Project_management ERROR

Discussion created by sweikl on Aug 23, 2013
Latest reply on Aug 23, 2013 by brucejr312
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??

Outcomes