Thin Spot Heights (Production Mapping)

许可等级:BasicStandardAdvanced

摘要

Creates a band-specific elevation spot heights feature class from a spot heights feature class and elevation bands feature class. The resulting feature class is used by the Elevation Guide Bar surround element for display purposes.

用法

语法

ThinSpotHeights_production (in_spot_height_features, in_spot_height_field, in_elevation_band_features, out_feature_class, {in_aoi_features}, {in_aoi_field})
参数说明数据类型
in_spot_height_features

The spot heights feature class or feature layer that contains the spot height features to thin.

Feature Layer
in_spot_height_field

The spot height field that contains the spot height values.

Field
in_elevation_band_features

The elevation band feature class or feature layer that is created using the Bands From Raster geoprocessing tool.

Feature Layer
out_feature_class

The new or existing spot heights feature class that contains the spot heights after the thinning process is performed. When an existing feature class is used, thinning will overwrite the existing spot heights in the feature class.

Feature Class
in_aoi_features
(可选)

The area of interest (AOI) feature class that is used to clip input spot height features. The thinning algorithm is executed on each extent of the AOI feature and results are written to the output elevation spot heights feature class specified in the out_feature_class parameter.

Feature Layer
in_aoi_field
(可选)

The field that contains a unique identifier for each feature in aoi_field.

Field

代码实例

ThinSpotHeights example (Python window)

The following ArcGIS Python window script shows how to use the ThinSpotHeights tool.

# NOTE: This script requires Esri Production Mapping and Spatial Analyst

import arcpy

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

# set gp environment
arcpy.env.workspace=workspace
arcpy.env.overwriteOutput = True
arcpy.env.addOutputsToMap = 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 just created
arcpy.BandsFromRaster_production(raster, "10", rasBnds)

# create a feature layer from elevation points
arcpy.MakeFeatureLayer_management(elevations,elevationsLayer)

# execute Thin Spot Heights using elevation points and the output of
# BandsFromRaster
arcpy.ThinSpotHeights_production(elevationsLayer, "Elevation", rasBnds, thinned)

环境

相关主题

许可信息

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