- 博客(6)
- 收藏
- 关注
原创 arcgis pro利用python批量获取栅格数据的平均值
env.extent = r"E:\ArcGIS\Projects\cailiao\ArcGISpro\学习\mian.shp" #设置范围。env.mask = r"E:\ArcGIS\Projects\cailiao\ArcGISpro\学习\mian.shp" #设置掩膜。inMaskData = r"E:\ArcGIS\Projects\cailiao\ArcGISpro\学习\mian.shp" #掩膜。arcpy.env.cellSize = "MAXOF"#设置像元大小。
2024-03-02 19:59:13 811
原创 arcgis pro利用python进行批量掩膜提取
import arcpyfrom arcpy import envfrom arcpy.sa import *import osenv.workspace = r"F:\ArcGIS\Projects\zhibodaoganhanfengxian\zhibodaoganhanfengxian.gdb"filepath = r"C:\Users\WH\Desktop\zhibodao\EPRE"filenames=[file for file in os.walk(filepath)]inR
2022-05-19 09:00:45 826
原创 arcgis pro利用python进行批量空间插值
import arcpyfrom arcpy import envfrom arcpy.sa import *env.workspace = "F:\ArcGIS\Projects\zhibodaoganhanfengxian\zhibodaoganhanfengxian.gdb" #设置环境env.extent = "F:\ArcGIS\cailiao\AICGIS\zhongyao\mian.shp" #设置范围env.mask = "F:\ArcGIS\cailiao\AICGIS\zho
2022-05-15 13:58:22 815
原创 arcgis pro利用python批量将地理空间数据库栅格文件另存为tiff
arcpy.env.workspace = r"F:\ArcGIS\Projects\zhibodaoganhanfengxian\zhibodaoganhanfengxian.gdb"rasters = arcpy.ListRasters("*")for j in range(50): i = 1965 + j arcpy.CopyRaster_management(rasters[j],r"C:\Users\Lenovo\Desktop\直播稻干旱风险\ETc"+"\etc"+s...
2022-05-13 15:12:26 955 1
原创 arcgis pro利用python批量添加或移除数据
import arcpyfrom arcpy import *import os# 设置工作环境为现在的工程aprx = arcpy.mp.ArcGISProject("CURRENT")# 读取当前工程中的地图m = aprx.listMaps("*")[0]# 批量加载数据path = r"C:\Users\Lenovo\Desktop\et0\ET"flies =[file for file in os.walk(path)]for each in flies[0][
2022-04-20 10:42:33 1110
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人