利用Arcgis批量将栅格提取至点

# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *
# Set environment settings
arcpy.env.workspace = r"E:\tuha_1990-2020\result\TuhaTem_1990-2020/" #栅格路径
# Set local variables
inPointFeatures = r"C:\TEM\tuha_station1\station.shp/" #shp文件路径及名称
inRasterList = arcpy.ListRasters("*", "tif")
# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("RASTERVALU")
# Execute ExtractValuesToPoints
ExtractMultiValuesToPoints(inPointFeatures, inRasterList, "NONE")
print("finish!")

你可能感兴趣的:(python)