I'm trying to reproject and copy some shapefile featureclasses to a file geodatabases and I'm having problems with the names imported. The code Im using is
# -*- coding: iso-8859-1 -*- # -*- coding: latin-1 -*- fcItem = "gsd_ap.shp" outWorkspace = "database.gdb" outCS = "1330" fcList = arcpy.ListFeatureClasses() for fcItem in fcList: outFC = os.path.join(outWorkspace, fcItem.strip(".shp")) arcpy.Project_management(fcItem, outFC, outCS)
Unfortunately the outFC name in the file geodatabase becomes gsd_a, the last letter disappears. The same happens if the last letter is a "s". There are more letter combinations that don't work as well.
Why does this happens? CopyFeatures_management() does exactly the same.
Doing the above inside ArcGIS Desktop using toolbox, this does not happen, only when I try a standalone script.