arcpy调用Raster_To_Polygon函数
作者:互联网
# -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # Raster2Poly.py # Created on: 2022-09-13 15:55:03.00000 # (generated by ArcGIS/ModelBuilder) # Description: # --------------------------------------------------------------------------- # Import arcpy module import arcpy # Load required toolboxes arcpy.ImportToolbox("Model Functions") # Local variables: v23个变电站降雨水深图层-mm-拼接-总-reclass = "C:\\Users\\2008nmj\\Downloads\\23个变电站降雨水深图层-mm-拼接-总-reclass" v10_tif = "C:\\Users\\2008nmj\\Downloads\\23个变电站降雨水深图层-mm-拼接-总-reclass\\10.tif" v_Name__shp = "C:\\Users\\2008nmj\\Downloads\\23个变电站降雨水深图层-mm-拼接-总-raster2poly\\%Name%.shp" # Process: Iterate Rasters arcpy.IterateRasters_mb(v23个变电站降雨水深图层-mm-拼接-总-reclass, "", "", "NOT_RECURSIVE") # Process: Raster to Polygon arcpy.RasterToPolygon_conversion(v10_tif, v_Name__shp, "SIMPLIFY", "Value")
使用ArcGIS/ModelBuilder生成的arcpy程序。
标签:Raster,Polygon,reclass,mm,变电站,拼接,图层,arcpy 来源: https://www.cnblogs.com/2008nmj/p/16691439.html