ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

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.

There can be two, three, or four bands per map sheet. The number of bands that display will depend on the difference between the high and low elevation and the contour interval in the map sheet, with the following designations:

  • Two bands—Low and High
  • Three bands—Low, Medium, and High
  • Four bands—Low, Medium, High, and Highest

Contour intervals can be 10, 20, or 40 meters by default. If no area of interest (AOI) features are selected, the bands will be calculated for the extent of the raster dataset.

使用方法

  • If the AOI is spread across multiple raster dataset cells, you must specify all the cells.

  • The optional AOI feature class parameter is used to define the map extents.

  • The raster extent must be equal to or greater than the AOI extent.

  • The AOI field parameter must be the map sheet name or a unique identifier for each map sheet.

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

语法

arcpy.production.BandsFromRaster(in_raster, contour_interval, out_feature_class, {in_aoi_features}, {in_aoi_field}, {in_hydro_exclusion_features})
参数说明数据类型
in_raster

The input raster dataset.

Raster Layer
contour_interval

Contour intervals with default value options of 10, 20, and 40.

Long
out_feature_class

The output elevation guide band feature class.

Feature Class
in_aoi_features
(可选)

The area of interest feature class to be used in lieu of the current data frame extent to define the map extents.

Feature Layer
in_aoi_field
(可选)

The field containing a unique identifier for each map sheet.

Field
in_hydro_exclusion_features
(可选)

A feature class used to define large water body areas that need to be excluded from the elevation band area calculations.

Feature Layer

代码示例

BandsFromRaster example (stand–alone script)

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

# Name: BandsFromRaster_Example.py
# Description: Creates a raster and executes the BandsFromRaster tool.
# Requirements: ArcGIS Production Mapping and Spatial Analyst

import arcpy
arcpy.CheckOutExtension("foundation")

# variables used by gp tools
cellSize='0.0005'
cellType="MAXIMUM_LENGTH"
contourField="elevation"
contourL = "TopographicMap/ContourL"
priorityFld='NONE'
raster = "contour_raster"
rasBnds = "raster_bands"
workspace="c:/data/Austin.gdb"

# set gp environment
arcpy.env.workspace=workspace
arcpy.env.overwriteOutput = True

# Bands from Raster requires a Raster - use the PolylineToRaster tool to
# create a raster from the Austin.gdb sample data
arcpy.PolylineToRaster_conversion(contourL,contourField, raster, cellType, priorityFld, cellSize)

# execute Bands From Raster using the contours raster
arcpy.BandsFromRaster_production(raster, "10", rasBnds)

环境

  • 当前工作空间

许可信息

  • Basic: 否
  • Standard: 需要 Production Mapping and Spatial Analyst
  • Advanced: 需要 Production Mapping and Spatial Analyst

相关主题

  • An overview of the Banding toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

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