I want to use arcpy.Project_management to project my data.
I have....
arcpy.env.workspace = scratchGDB
fcList = arcpy.ListFeatureClasses()
for fc in fcList:
print fc
>>>
lease90
lease180
When I add the projection I get 'ExecuteError: ERROR 000210: Cannot create output'....
arcpy.env.workspace = scratchGDB
fcList = arcpy.ListFeatureClasses()
for fc in fcList:
print fc
WGS84aux = arcpy.SpatialReference(3857)
arcpy.Project_management(fc, fc+ '_WGS84aux', WGS84aux)
Suggestions?
UPDATE:
I added a feature class to feature class and commented the projection out for test purposes -- the feature class to feature class worked. However, project still does not work.
arcpy.env.workspace = scratchGDB
fcList = arcpy.ListFeatureClasses()
for fc in fcList:
print fc
WGS84aux = arcpy.SpatialReference(3857)
arcpy.FeatureClassToFeatureClass_conversion(fc, scratchGDB, fc + '_test')
##arcpy.Project_management(fc, fc+ '_WGS84aux', WGS84aux)
I've also projected manually and it works - I am so lost.
import os
and change the output FC name to:os.path.join(scratchGDB, fc + '_WGS84aux')