Arcpy 对tif文件批量定义投影坐标
import sys
reload(sys)
sys.setdefaultencoding(“utf-8”)
import arcpy
arcpy.env.workspace=“E:\prec”
rasters=arcpy.ListRasters("*",“tif”)
Coordinate_System=“E:\SHP\JX_WATA_newjoin1PRO.shp”
for ras in rasters:
print str(ras)
arcpy.DefineProjection_management(ras,Coordinate_System)
print(“Ok”)