Validate Spot Heights (Defense Mapping)

ライセンス レベル:BasicStandardAdvanced

サマリ

Validates spot heights against contour tops in Esri Defense Mapping data models. This tool validates two conditions: a spot height is higher than or equal to the contour top that contains it and the contour top is not missing a contour line (based on contour interval) between it and the spot height. The tool creates a selection set of spot heights that fail this validation.

使用法

構文

ValidateSpotHeights_defense (in_contour_features, contour_height_field, contour_interval, in_spot_features, point_height_field)
パラメータ説明データ タイプ
in_contour_features

The input contour features against which spot heights will be validated.

Feature Layer
contour_height_field

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

Field
contour_interval

The interval, or distance, between contour lines. This can be any positive number.

Long
in_spot_features

An existing Defense Mapping point feature layer that contains spot heights to validate.

Layer
point_height_field

Field that contains spot height elevation values.

Field

コードのサンプル

ValidateSpotHeights example (Python window)

The following example demonstrates how to use the ValidateSpotHeights tool.

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

# script variables
contourFeatures="Contour.gdb/MGCP/ContourL50K"
contourLayer="contours"
contourHeightField="ZVH"
contourInterval=20
spotFeatures="CARTO.gdb/CARTO/EGB_SPOTS_P"
spotLayer="spotHeights"
spotHeightField="ZVH"

# make two feature layers
arcpy.MakeFeatureLayer_management(spotFeatures,spotLayer)
arcpy.MakeFeatureLayer_management(contourFeatures,contourLayer)

# execute ValidateSpotHeights
arcpy.ValidateSpotHeights_defense(contourLayer,contourHeightField,contourInterval,spotLayer,spotHeightField)

# check for a selected set of features
desc=arcpy.Describe(spotLayer)
selectedFeatures=desc.FIDSet.split(";")
if len(selectedFeatures) > 0:
    print "Found %s features that failed validation." % str(len(selectedFeatures))
else:
    print "All features passed validation"

環境

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: ×
ArcGIS for Desktop Standard: 次のものが必要 Defense Mapping
ArcGIS for Desktop Advanced: 次のものが必要 Defense Mapping
4/26/2014