helenak

code "batch projection" not work

Discussion created by helenak on May 8, 2012
Latest reply on May 14, 2012 by helenak
System ArcGIS 9.3

Problem
The code "batch projection" was used in the code below but did not work.
Please kindly advise modification and thanks.


#Set the input workspace
#GP.workspace = sys.argv[1]
#Set the workspace.
gp.Workspace= "G:/temp"

#Set the output workspace
#outWorkspace = sys.argv[2]
#Set the workspace. List all of the feature classes in the dataset
outWorkspace= "G:/temp/test"


# Make featureclasses as layers
outFeatureClass = outWorkspace + os.sep + gp.ValidateTableName(featureName, outWorkspace)
gp.Toolbox = "management"
gp.BatchProject("G:/temp", outFeatureClass , "Coordinate Systems/Geographic Coordinate Systems/World/WGS 1984.prj", "", "")

Outcomes