Thin Spot Heights (Topographic Production)

Synthèse

Generalizes spot heights for a given area of interest (AOI) in accordance with product specifications.

Utilisation

  • The input features for this tool are typically outputs of the Generate Spot Heights tool. Use this tool when Generate Spot Heights generates more spot heights than necessary for cartographic purposes.

  • This tool does not generate new output. It updates the input feature class by assigning values in the Invisibility Field parameter value to identify extraneous features for removal from a view. The result will be a simplified, representative collection of spot heights.

  • The input must have an Invisibility field that will be updated by this tool.

  • The input must have an Elevation field that accurately represents the elevation of the spot heights. This field must exist so that the tool can determine the high and low spots. The measurement unit of elevation is not required.

Paramètres

ÉtiquetteExplicationType de données
Input Features

A point feature layer or feature class representing the spot heights for a given AOI.

Feature Layer
Area of Interest

The feature in the AOI that will be used to identify input features to process. Provide only one feature from the AOI.

Feature Layer
Elevation Field

The elevation field in the Input Features parameter value that will be used for the spot height.

Field
Invisibility Field

The field where the visibility attribute will be written.

Field
High Low Spots Field
(Facultatif)

The field that will be used to identify the highest and lowest spots.

Field
Search Distance
(Facultatif)

The minimum distance between spot heights. For example, if the search distance is 3,000 meters, there will be at least 3,000 meters between a chosen spot height and the next chosen spot height. The default value is 1,300 meters, as this is the optimal value for 50K sheets.

Linear Unit
Maximum Number Of Spots
(Facultatif)

The maximum number of spot heights that will be processed.

Long
Input Contours
(Facultatif)

The input contours that will be used to identify whether point features are in depressions or tops.

Feature Layer
Contour Code Field
(Facultatif)

The field in the database that contains the domain value for index contour, intermediate contour, depression contour, and depression intermediate contour. It is a string value of the field, such as HQC.

Field
Depression Code Value
(Facultatif)

The depression code values. A depression refers to an elevation completely surrounded by higher-elevation contour lines.

Long

Sortie obtenue

ÉtiquetteExplicationType de données
Updated Features

The input features that have been thinned based on input criteria.

Feature Layer

arcpy.topographic.ThinSpotHeights(in_features, area_of_interest, elevation_field, invisibility_field, {high_low_spots}, {search_distance}, {max_spots}, {input_contours}, {contour_code_field}, {depression_code_value})
NomExplicationType de données
in_features

A point feature layer or feature class representing the spot heights for a given AOI.

Feature Layer
area_of_interest

The feature in the AOI that will be used to identify input features to process. Provide only one feature from the AOI.

Feature Layer
elevation_field

The elevation field in the in_features parameter value that will be used for the spot height.

Field
invisibility_field

The field where the visibility attribute will be written.

Field
high_low_spots
(Facultatif)

The field that will be used to identify the highest and lowest spots.

Field
search_distance
(Facultatif)

The minimum distance between spot heights. For example, if the search distance is 3,000 meters, there will be at least 3,000 meters between a chosen spot height and the next chosen spot height. The default value is 1,300 meters, as this is the optimal value for 50K sheets.

Linear Unit
max_spots
(Facultatif)

The maximum number of spot heights that will be processed.

Long
input_contours
(Facultatif)

The input contours that will be used to identify whether point features are in depressions or tops.

Feature Layer
contour_code_field
(Facultatif)

The field in the database that contains the domain value for index contour, intermediate contour, depression contour, and depression intermediate contour. It is a string value of the field, such as HQC.

Field
depression_code_value
[depression_code_value,...]
(Facultatif)

The depression code values. A depression refers to an elevation completely surrounded by higher-elevation contour lines.

Long

Sortie obtenue

NomExplicationType de données
updated_features

The input features that have been thinned based on input criteria.

Feature Layer

Exemple de code

ThinSpotHeights example (stand-alone script)

The following code sample uses the ThinSpotHeights function to thin the spot heights that have been created for cartographic display.

# Name: ThinSpotHeights_sample.py
# Description: This tool is thinning the spot heights that have been created for cartographic display

# Import System Modules
import arcpy
import os

# Check Out Extensions
arcpy.CheckOutExtension('Foundation')

# Setting the environment
arcpy.env.overwriteOutput = True

# Setting Local Variables
input_database =r'C:\Data\MGCP_TRD_4_4.gdb'
input_elevation_features = os.path.join(input_database, r'MGCP_Delta\ElevP')
input_contour_features = os.path.join(input_database, r'MGCP_Delta\ContourL')
index = r'C:\Data\MapIndex.gdb\MapIndex\TM50_Index'

# Making a feature layer from the Area of Interest features, and selecting a single feature based on the NRN field
arcpy.management.MakeFeatureLayer(index, 'AOI_Index')
arcpy.management.SelectLayerByAttribute('AOI_Index', 'NEW_SELECTION', "NRN = 'V795X16573'")

# Calling the Thin Spot Heights to thin the spots for cartographic display
arcpy.topographic.ThinSpotHeights(input_elevation_features, "AOI_Index", "ZVH", "IS_VISIBLE", "TXT", "1300 Meters", None, input_contour_features, "HQC", "5;6;22")

# Getting all messages, warnings, and errors from the tool run and printing the results back to the user
messages = arcpy.GetMessages(0)
warnings = arcpy.GetMessages(1)
errors = arcpy.GetMessages(2)
arcpy.AddMessage('Tool Messages: {messages}\nTool Warnings: {warnings}\nTool Errors{errors}\n')

# Check In Extensions
arcpy.CheckInExtension('Foundation')

Environnements

Cet outil n’utilise pas d’environnement de géotraitement.

Informations de licence

  • Basic: Non
  • Standard: Non
  • Advanced: Nécessite Production Mapping

Rubriques connexes