ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Create Bands From Raster

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

摘要

Creates an elevation bands feature class from a Digital Terrain Elevation Data (DTED) raster dataset. The resulting feature class is used by the Elevation Guide Bar surround element to display the high and low elevation areas on a Topographic Map (TM) using a series of hypsometric gray bands.

用法

  • Only a single area of interest (AOI) may be selected.

  • The Input Hydro Exclusion Features parameter is used for large water bodies and coastal areas that would significantly alter the area of the elevation bands.

语法

CreateBandsFromRaster(in_aoi, in_raster, out_features, in_min_area, in_tolerance, {in_hydro_exclusion}, {in_number_of_bands}, {in_contour_interval})
参数说明数据类型
in_aoi

A feature layer that describes the processing extent. The feature layer must have one selected feature and that feature is typically stored in an index feature class.

Feature Layer
in_raster
[in_raster,...]

Indicates the rasters to use to create elevation bands.

Raster Layer
out_features

The feature class that will contain the banding features.

Feature Class
in_min_area

Sets a minimum area for output polygons. Features smaller than this value will be removed. The default value is 0.00016 square decimal degrees.

注:

If you are creating an output dataset with a projected coordinate system, this value should reflect the square units of that coordinate system—for example, square meters for a UTM dataset. Otherwise, the default value might result in an empty output dataset.

Double
in_tolerance

Sets a tolerance used by the Smooth Polygon tool. The larger the value, the more generalized the output band features.

Linear Unit
in_hydro_exclusion
(可选)

Used to define large water body areas that need to be excluded from the elevation band area calculations.

Feature Layer
in_number_of_bands
(可选)

Indicates the number of guide bands generated by the tool.

  • 1 —1 guide band will be generated. This is the default.
  • 3 —3 guide bands will be generated.
  • 4 —4 guide bands will be generated.
Long
in_contour_interval
(可选)

Indicates the contour interval used to determine the closest contour available when calculating the band area. Bands are created with their limits aligned to the set contour interval, except for low and high values which will represent their actual calculated values.

  • 10 —A contour interval of 10.
  • 20 —A contour interval of 20. This is the default.
  • 40 —A contour interval of 40.
  • 80 —A contour interval of 80.
String

代码示例

CreateBandsFromRaster example (Python window)

This Python code sample creates a raster layer from production mapping sample data. The script runs the CreateBandsFromRaster function against the raster layer and writes the output to a file geodatabase at c:\Sample. You need to have the ArcGIS Spatial Analyst 扩展模块 and Production Mapping extensions enabled.

# Importing necessary modules
from arcpy import defense, management

# Setting parameters for tool
aoi = r'C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.4\ReferenceData\MapIndex.gdb\MapIndex\TLM50_Index'
raster = r'C:\Sample\Monterey.dt2'
outputfeatures = r'C:\Sample\Default.gdb\BandsFromRaster'
minarea = '0.00016'
tolerance = '0.02 DecimalDegrees'
hydroexclusion = r'C:\Sample\MGCP_TRD_4_2.gdb\MGCP\CoastA'
numberofbands = 3
contourInterval = 20

# Creating feature layer and selecting NRN for AOI
selstring = 'NRN = "V795X16573"'
management.MakeFeatureLayer(aoi, 'AOI')
management.SelectLayerByAttribute('AOI', 'NEW_SELECTION', selstring)

# Calling Create Bands From Raster
defense.CreateBandsFromRaster('AOI', raster, outputfeatures, minarea, tolerance, hydroexclusion, numberofbands, contourInterval)

环境

  • 当前工作空间

许可信息

  • 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 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2019 Esri. | 隐私政策 | 法律声明