# -*- 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程序。