I am importing multiple shapefiles into a filegdb in ArcGIS 10, and using the following code to define the projection of the feature once imported, to the .prj of the original .shp file.
Here is my code:
for spatial in SpatialRefList: del gp import arcpy as gp print 'DEFINING PROJECTION' print 'FEATURECLASS = ' + str(featureclass) print 'PROJECTION = ' + str(prjfile) time.sleep(1) try: gp.DefineProjection_management(featureclass, prjfile) except: traceback.print_exc() time.sleep(2)However the code is throwing up error 000289 - failed to alter spatial reference.
أكثر...
Here is my code:
for spatial in SpatialRefList: del gp import arcpy as gp print 'DEFINING PROJECTION' print 'FEATURECLASS = ' + str(featureclass) print 'PROJECTION = ' + str(prjfile) time.sleep(1) try: gp.DefineProjection_management(featureclass, prjfile) except: traceback.print_exc() time.sleep(2)However the code is throwing up error 000289 - failed to alter spatial reference.
أكثر...