Resumen
ArcGIS Defense Mapping cartographic production tool that creates data required for an Elevation Guide Box in defense-specific map templates. This tool uses banding and thinning tools to create elevation bands, spot heights, and hydro features for the guide box.
Uso
If the Hydro Exclusion Feature Class parameter is not set, Product Type is used to locate exclusion hydro features in Input Geodatabase. For MTM* product types, the tool searches for a CoastA feature class in an MGCP feature dataset. For TM* product types, the tool searches for a HydrographySrf feature class in a TDS feature dataset.
Product Type sets the contour interval. For products TM25, TM50, and MTM50, the contour interval is set to 20. For products TM100 and MTM100, the contour interval is set to 40.
If Spot Height Features is not set, Product Type and Version are used to locate spot height features in Input Geodatabase. For MTM* product types, the tool uses TRD_3 or TRD_4, TRD_4_1, TRD_4_2, TRD_4_3, TRD_4_4, TRD_4_5, TRD_4_5_1, or TRD_4_6 data model dataset naming conventions. For TM* product types, the tool searches for a HypsographyPnt feature class in a TDS feature dataset.
If the Hydro Line Features parameter is not set, Product Type is used to locate hydro line features. For MTM* product types, the tool searches for a WatrcrsL feature class in an MGCP feature dataset. For TM* product types, it searches for a HydrographyCrv in a TDS feature dataset.
If the Hydro Area Features parameter is not set, Product Type is used to locate hydro area features. For MTM* product types, the tool searches for a WatrcrsA feature class in an MGCP feature dataset. For TM* product types, it searches for a HydrographySrf in a TDS feature dataset.
Sintaxis
arcpy.defense.CreateElevationGuideData(input_geodatabase, input_area_of_interest, product_type, data_model_version, input_rasters, {input_hydro_exclusion_features}, {minimum_feature_area}, {smoothing_tolerance}, {input_spot_height_features}, {input_hydro_lines}, {input_hydro_areas}, {minimum_hydro_order}, {minimum_feature_size}, {in_number_of_bands}, {in_contour_interval})
Parámetro | Explicación | Tipo de datos |
input_geodatabase |
The geodatabase that contains the CARTO feature dataset and EGB* feature classes. Data created for the Elevation Guide Box is appended to the feature classes in this geodatabase. | Workspace |
input_area_of_interest | A feature layer with a single selected feature that defines a processing extent for banding operations and a clipping extent for spot heights, input hydro areas, and lines. | Layer |
product_type | Specifies the type of Defense Mapping cartographic product that will include an Elevation Guide Box. The product_type parameter is used with the data_model_version parameter to refine input hydro exclusion, line, and area features, and input spot height features.
| String |
data_model_version | Specifies the Defense Mapping data model version. This parameter is used with the product_type parameter to refine input hydro exclusion, line, and area features, and input spot height features.
| String |
input_rasters [input_rasters,...] | The raster or rasters that will be used to create elevation bands and supply elevation values to Elevation Guide Box data. If you specify more than one raster, all rasters must have the same bit depth and number of bands. | Raster Layer |
input_hydro_exclusion_features (Opcional) | A feature layer that defines a large water body area to be excluded from the elevation band area computation. | Feature Layer |
minimum_feature_area (Opcional) | The minimum area that will be used for output polygons created during the elevation banding process. The default is 0.00016 square decimal degrees. | Double |
smoothing_tolerance (Opcional) | The smoothing tolerance that will be used by the Smooth Polygon tool during elevation banding processing. Smoothing adds vertices to sharp angles. Larger values create more generalized elevation bands. The default is 0.02 decimal degrees. | Linear Unit |
input_spot_height_features (Opcional) | The feature layer or class that will contain spot heights. If this parameter is not set, the Product Type and Version (product_type and data_model_version in Python) parameters will control which feature class is used from the Input Geodatabase (input_geodatabase in Python) parameter. | Feature Layer |
input_hydro_lines (Opcional) | The hydro line features that will be used in the Elevation Guide Box data. These features are generalized through a thinning process. If this parameter is not set, the Product Type parameter will control which feature class is used from the Input Geodatabase parameter. | Feature Layer |
input_hydro_areas (Opcional) | The hydro area features that will be used in the Elevation Guide Box data. These features are generalized through a thinning process. If this parameter is not set, the Product Type parameter will control which feature class is used from the Input Geodatabase parameter. | Feature Layer |
minimum_hydro_order (Opcional) | The minimum hydro order value that will be used to eliminate features. Hydro features that have a stream order value less than this value will be thinned. This value is used when generalizing input hydro lines and areas. The default value is 20. | Long |
minimum_feature_size (Opcional) | The minimum area that will be used to eliminate small, nonmain hydro polygons. This value is used when generalizing input hydro areas. The default value is 0. | Double |
in_number_of_bands (Opcional) | Specifies the number of guide bands that will be generated.
| Long |
in_contour_interval (Opcional) | Specifies the contour interval that will be used to determine the closest contour available when calculating the band area. Bands are created with their limits aligned to the set contour interval, except low and high values, which will represent their actual calculated values.
| String |
Muestra de código
CreateElevationGuideData example (Python window)
The following script demonstrates how to use the CreateElevationGuideData function.
# Importing necessary modules
from arcpy import management, defense, CheckOutExtension
from os import path
# Setting variables for tool input
index = r'C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.5\ReferenceData\MapIndex.gdb\MapIndex\TLM50_Index'
selstring = "NRN = 'V795X16573'"
input_database = r'C:\Sample\MGCP_TRD_4_3.gdb'
raster = r'C:\Sample\Monterey.dt2'
hydroex = path.join(input_database, 'MGCP\CoastA')
spots = path.join(input_database, 'MGCP_Delta\ElevP')
# Creating an AOI feature layer and selecting single AOI
management.MakeFeatureLayer(index, 'AOI')
management.SelectLayerByAttribute('AOI', 'NEW_SELECTION', selstring)
# Running Create Elevation Guide Data tool
defense.CreateElevationGuideData(input_database, 'AOI', raster, 'MTM50', 'TRD_4_2', hydroex, spots, '#', '#', '#', '#', '#')
Entornos
Información de licenciamiento
- Basic: No
- Standard: No
- Advanced: Requiere Defense Mapping and Spatial Analyst and 3D Analyst