[Tutor] Project

Narguess Dadfar dadfar.narguess at gmail.com
Wed Oct 19 06:06:37 CEST 2011

I have to project all shapefiles to NAD_1983_UTM_Zone_10N

I use Python 2.6

what codes I have used is as follow:

import arcpy
inFolder = arcpy.GetParameterAsText(0)
outC = arcpy.GetParameterAsText(1)
arcpy.env.workspace = inFolder
fcList = arcpy.ListFeatureClasses()
desc = arcpy.Describe(outC)
spatialRef = desc.SpatialReference
for featureClass in fcList:
arcpy.Project_management (inFolder, outC)
rootName = " "
if  fc.endswith[".shp]:
rootName + fc[:4]
arcpy.AddMessage("\n" + "The files " + projectedFeatureClasses[:2] + "have
successfully been reprojected" + "\n")
arcpy.AddMessage ("This project is incomplete")

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111018/f18277d1/attachment.html>

More information about the Tutor mailing list