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 Spot Heights

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

摘要

Esri Defense Mapping cartographic production tool that creates elevation point features based on contour tops and depressions. Elevation points are created in each top and depression. Point height values populate based on a digital elevation model.

用法

  • This tool creates multiple points in areas within tops or depressions that have elevations of the same value. For example, if the tool finds two identical elevation values in different locations within the same top, it generates a point at each location.

  • Tops refer to an elevation completely surrounded by lower elevation contour lines.

    Depressions refer to an elevation completely surrounded by higher elevation contour lines.

  • Tops and depressions must be polylines that start and end at the same vertex. The tool will not create spot heights over contour lines that do not start and end at the same vertex.

语法

CreateSpotHeights_defense (in_contour_features, contour_height_field, in_point_features, subtype, spot_height_field, in_raster, {in_aoi})
参数说明数据类型
in_contour_features

Contours from which spot heights are computed.

Feature Layer
contour_height_field

Field in input contours that contains elevation values. Field type must be numeric.

Field
in_point_features

Existing points feature layer in which spot heights are created.

Feature Layer
subtype

Subtype from Spot Heights Layer in which spot height features are created.

String
spot_height_field

Field in the Spot Heights layer to which elevation values are written.

Field
in_raster
[in_raster,...]

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

Raster Layer
in_aoi
(可选)

The extent where spot heights will be created. The AOI is the outer extent of all selected polygons in the feature layer. If none are selected, it is the extent of the raster. This parameter does not accept point layers as valid input.

Feature Layer

代码示例

CreateSpotHeights example (Python window)

The following code sample demonstrates how to execute the CreateSpotHeights tool.

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

# variables for the CreateSpotHeights tool
# Contour.gdb is located in c:/data
contourFeatures="Contour.gdb/MGCP/ContourL50K"
contourHeightField="ZVH"
# defense.gdb is located in c:/data
points="defense.gdb/Features/ElevP"
subtype="SpotElevationPoint"
spotHeightField="zv2"
# raster N35.DT2 is located in c:/data/W121
raster="W121/N35.DT2"

# execute the CreateSpotHeights tool
arcpy.CreateSpotHeights_defense(contourFeatures, contourHeightField, points, subtype, spotHeightField, raster)

环境

  • 当前工作空间

许可信息

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

相关主题

  • An overview of the Spot Heights toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

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