Code Contours (Defense Mapping)

许可等级:BasicStandardAdvanced

摘要

Esri Defense Mapping cartographic production tool that applies hypsographic codes to input contour features. Applied codes are specific to defense schemas and include index contours, intermediate contours, depressions, tops, and other types listed in your defense data model.

用法

语法

CodeContours_defense (in_contour_features, contour_height_field, contour_index, in_raster)
参数说明数据类型
in_contour_features

Contour features to which subtype codes will be applied.

Feature Layer
contour_height_field

Field in the contour features that contains elevation values.

Field
contour_index

The interval, or distance, between contour lines. This can be any positive number.

Long
in_raster
[in_raster,...]

Rasters used to derive highest or lowest elevations within contour tops or depressions.

Raster Layer

代码实例

CodeContours example (Python window)

The following code sample demonstrates how to execute the CodeContours function.

# set gp environment
arcpy.env.workspace="c:/data"
arcpy.env.addOutputsToMap = True

# variables for the CodeContours tool
# Contour.gdb is located in c:/data
contourFeatures="Contour.gdb/MGCP/ContourL50K"
contourHeightField="ZVH"
contourIndex="100"

# raster N35.DT2 is located in c:/data/W121
raster="W121/N35.DT2"

# execute the CodeContours tool
arcpy.CodeContours_defense(contourFeatures, contourHeightField, contourIndex, raster)

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 需要 Defense Mapping
ArcGIS for Desktop Advanced: 需要 Defense Mapping
4/27/2014