arcpy调用Raster_To_Polygon函数

2022/9/14 6:17:51

本文主要是介绍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程序。



这篇关于arcpy调用Raster_To_Polygon函数的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程