Suppress Spot Heights (Defense Mapping)

License Level:BasicStandardAdvanced

Summary

Esri Defense Mapping cartographic production tool that suppresses the symbol for spot heights based on the input product type. Suppressing a symbol refers to setting a representation invisible.

Usage

Syntax

SuppressSpotHeights_defense (Input_Area_of_Interest, Product_Type, Data_Model_Version, Search_Distance, Input_Spot_Height_Features)
ParameterExplanationData Type
Input_Area_of_Interest

A feature layer that describes the processing extent. The tool suppresses spot heights found in each feature in the feature layer. Select features in this feature layer to limit the processing area.

Feature Layer
Product_Type

Used with Data_Model_Version to determine the Defense Mapping specification. The specification equates to a representation name in a Defense Mapping data model.

  • MDG50_MGCP —Representations specific to product MDG50_MGCP
  • MDG50_TLM —Representations specific to product MDG50_TLM
  • MDG100_MGCP —Representations specific to product MDG100_MGCP
  • MDG100_TLM —Representations specific to product MDG100_TLM
  • LDG50_NSG —Representations specific to product LDG50_NSG
  • LDG100_NSG —Representations specific to product LDG100_NSG
String
Data_Model_Version

Used with Product_Type to determine the Defense Mapping specification. The specification equates to a representation name in a Defense Mapping data model.

  • TRD2 —Representations specific to MDG* product types
  • TRD3 —Representations specific to MDG* product types
  • TRD4 —Representations specific to MDG* product types
  • LTDS_4_0 —Representations specific to LDG* product types
  • LTDS_5_0 —Representations specific to LDG* product types
String
Search_Distance

Search distance to locate spot heights that are close to other spot heights. Spot heights found within this distance will be made invisible.

Linear Unit
Input_Spot_Height_Features

An existing Defense Mapping point feature layer in which representations will be made invisible.

Feature Layer

Code Sample

SuppressSpotHeights example (Python window)

The following code sample demonstrates how to use the SuppressSpotHeights function.

# set gp environment
arcpy.env.workspace="c:/data/defense.gdb"
arcpy.env.addOutputsToMap = True

# local variables
areaOfInterest = "C:/Program Files (x86)/ArcGIS/EsriDefenseMapping/Desktop10.1/ReferenceData/MapIndex.mdb/MapIndex/TLM100_Index"
areaOfInterestLyr="TLM100IDX"
whereclause="NRN='V695X1856'"
productType="MDG100_MGCP"
dataModel="TRD2"
searchDistance="1300 meters"
spotHeightFeatures="Features/ElevP"
spotHeightFeaturesLyr="ElevPLyr"

# make a feature layer from area of interest and spot heights
arcpy.MakeFeatureLayer_management(spotHeightFeatures,spotHeightFeaturesLyr)
arcpy.MakeFeatureLayer_management(areaOfInterest,areaOfInterestLyr)
arcpy.SelectLayerByAttribute_management(areaOfInterestLyr,"NEW_SELECTION",whereclause)

desc=arcpy.Describe(areaOfInterestLyr)
fidlist=desc.FIDSet.split(";")
if len(fidlist) == 1:
    # suppress the spot heights
    arcpy.SuppressSpotHeights_defense(areaOfInterestLyr, productType, dataModel,searchDistance,spotHeightFeaturesLyr)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Defense Mapping
ArcGIS for Desktop Advanced: Requires Defense Mapping
9/2/2013