赞
踩
- # 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!")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。