等值线列表 (3D Analyst)

许可等级:BasicStandardAdvanced

摘要

根据栅格表面创建所选等值线值的要素类。

了解有关等值线工作原理的详细信息

用法

语法

ContourList_3d (in_raster, out_polyline_features, contour_values)
参数说明数据类型
in_raster

输入表面栅格。

Raster Layer
out_polyline_features

输出等值线折线 (polyline) 要素。

Feature Class
contour_values
[contour_value,...]

要创建等值线的 z 值的列表。

Double

代码实例

ContourList 示例 1(Python 窗口)

此例根据 Esri Grid 栅格创建了三个高度值的等值线,并将其输出为 shapefile。

import arcpy
from arcpy import env  
env.workspace = "C:/data"
arcpy.ContourList_3d("elevation", "C:/sapyexamples/output/outcontourlist.shp", 
            "600; 935; 1237.4")
ContourList 示例 2(独立脚本)

此例根据 Esri Grid 栅格创建了三个高度值的等值线,并将其输出为 shapefile。

# Name: ContourList_3d_Ex_02.py
# Description: Creates contours or isolines based on a list of contour values.
# Requirements: 3D Analyst Extension

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inRaster = "elevation"
contourIntervalList = "600; 935; 1237.4"
outContours = "C:/output/outcontlist.shp"

# Check out the ArcGIS 3D Analyst extension license
arcpy.CheckOutExtension("3D")

# Execute ContourList
arcpy.ContourList_3d(inRaster, outContours, contourIntervalList)

环境

相关主题

许可信息

ArcGIS for Desktop Basic:需要 3D Analyst 或者Spatial Analyst
ArcGIS for Desktop Standard:需要 3D Analyst 或者Spatial Analyst
ArcGIS for Desktop Advanced:需要 3D Analyst 或者Spatial Analyst
9/15/2013