Thin Spot Heights (Production Mapping)

Nivel de licencia:BasicStandardAdvanced

Resumen

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.

Uso

Sintaxis

ThinSpotHeights_production (in_spot_height_features, in_spot_height_field, in_elevation_band_features, out_feature_class, {in_aoi_features}, {in_aoi_field})
ParámetroExplicaciónTipo de datos
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
(Opcional)

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
(Opcional)

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

Field

Ejemplo de código

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)

Entornos

Temas relacionados

Información sobre licencias

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requiere Production Mapping
ArcGIS for Desktop Advanced: Requiere Production Mapping
4/26/2014