ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

Help

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

Create TLM Elevation Guide Bands from Features

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Creates banding features that can be used to generate the Elevation Guide Box element for a Topographic Line Map (TLM).

用法

  • It is recommended that you use contour lines that have been collected using meters.

  • The feature layers specified for the Contour Features and Additional Elevation Features parameters must all contain the field listed in the Elevation Field Name parameter.

  • The Elevation Units parameter value applies to all the feature layers specified for the Contour Features and Additional Elevation Features parameters.

  • The inclusion of additional elevation features allows the tool to fine-tune the output bands beyond what it can accomplish using contour lines alone.

  • When using exclusion feature classes, ensure that the exclusion feature class includes the proper elevation field and an elevation value of zero for each exclusion feature.

  • The tool may generate holes around the corners of AOI Feature Class features. Set a high AOI Buffer value to correct this. Do not use a negative value for this parameter.

语法

CreateTLMElevationGuideBands_defense (AOI_Feature_Class, AOI_Field, AOI_Buffer, Contour_Features, Contour_Interval, Elevation_Field_Name, Elevation_Units, Choose_Number_of_Bands, {Number_of_Bands}, Output_Feature_Class, {Additional_Elevation_Features}, {Exclusion_Features})
参数说明数据类型
AOI_Feature_Class

The area of interest for the TLM. This feature is typically stored in an index feature class.

Feature Layer
AOI_Field

此字段包含每个感兴趣区域的唯一标识符。

Field
AOI_Buffer

此缓冲区用于输入感兴趣区域要素。 此缓冲区扩展 AOI 要素类几何,以包括超出 AOI 边界的“等值线”要素类中的要素。这样可以提高用于生成面的波段计算的精度。

Linear unit
Contour_Features

The feature layer that contains the contours. The information for the output bands will be derived from these features. This must be a polyline feature class.

Feature Layer
Contour_Interval

The range in elevation (distance) between contour features. This must be 10, 20, 40, or 80. The default value is 20.

Long
Elevation_Field_Name

The field within the contour feature layer from which the elevation values will be derived. The default value for this is ZV2.

Field
Elevation_Units

The unit of measurement that has been used to collect the contours and additional elevation features.

  • METERS —The contours and additional elevation features have been collected using meters. This is the default.
  • FEET —The contours and additional elevation features have been collected using feet.
String
Choose_Number_of_Bands

Allows you to choose the number of guide bands to generate.

  • CHOOSE_BANDS —Allows you to input a number of bands to generate in the Number_of_Bands parameter.
  • NO_CHOOSE_BANDS —Does not allow you to input a number of bands to generate in the Number_of_Bands parameter.
Boolean
Number_of_Bands
(可选)

Indicates the number of guide bands generated by the tool.

Double
Output_Feature_Class

The feature class that will contain the banding features.

Feature Class
Additional_Elevation_Features
[Additional_Elevation_Features,...]
(可选)

Feature layers that contain additional elevation information that can be used during band creation.

Feature Layer
Exclusion_Features
[Exclusion_Features,...]
(可选)

Feature layers that define areas for processing exclusion. Excluded areas will not be taken into account when calculating the percent area ratio for the output bands. When excluding open water areas for coastal sheets, it is necessary to include these features as additional elevation features as well.

Feature Layer

代码示例

CreateTLMElevationGuideBands example (stand-alone script)

The following stand-alone script demonstrates how to use the CreateTLMElevationGuideBands tool.

# Name: CreateTLMElevationGuideBands_Example.py
# Description: Create banding features from a single TLM feature
# Requirements: Esri Defense Mapping solution

# Import arcpy module
import arcpy

# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("foundation")
arcpy.CheckOutExtension("defense")

# set the gp environment
arcpy.env.workspace = "c:\\data\\MapIndex.gdb"
arcpy.env.overwriteOutput = "true"

# Variables for the tool
aoiField = "NRN"
aoiBuffer = "100 meters"
contourElevField = "zv2"
outputFeatureClass = "TLMElevationGuideBands"
aoiFeatureLyr="aoiFeatures"
contourFeatureLyr="contourFeatures"
chooseBands="CHOOSE_BANDS"

# create a feature layer for the AOI_Feature_Class parameter
aoiPath = "MapIndex\\JOG_Index"
arcpy.MakeFeatureLayer_management(aoiPath,aoiFeatureLyr)

# create a feature layer for the Contour_Feature_Class parameter
contoursPath = "ContourL"
arcpy.MakeFeatureLayer_management(contoursPath,contourFeatureLyr)

# create a where clause for select by layer
whereClause = "NRN='1501ANI1105'"

# select a single AOI feature from JOG
arcpy.SelectLayerByAttribute_management(aoiFeatureLyr,"NEW_SELECTION",whereClause)

# execute the tool - output will be written to the gp workspace
arcpy.CreateTLMElevationGuideBands_defense(aoiFeatureLyr, aoiField, aoiBuffer, contourFeatureLyr, 20, contourElevField, "METERS", chooseBands, 3, outputFeatureClass)

# Check in the extensions
arcpy.CheckInExtension("foundation")
arcpy.CheckInExtension("defense")

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 否
  • ArcGIS Desktop Advanced: 需要 Defense Mapping

相关主题

  • An overview of the Banding toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2017 Esri. | 隐私政策 | 法律声明