Create Generalized Bands (Production Mapping)
Resumen
Creates and generalizes band features for an Elevation Guide Box surround element. It automates the most common generalization tasks for an Elevation Guide Box dataset by creating intermediate datasets that will be deleted when execution completes.
The default values in this model are optimized for an output dataset for a TLM 50, with the standard area-of-interest size and with a geographic spatial reference (for example, WGS84).
Uso
-
This tool requires Spatial Analyst and Production Mapping (foundation in Python) licenses.
-
If the area of interest (AOI) is spread across multiple raster dataset cells, you will have to specify all the cells.
-
The optional AOI feature class parameter is used to define the map extents.
-
The AOI field parameter must be the map sheet name or a unique identifier for each map sheet.
-
The Input Hydro Exclusion Features (in_hydro_exclusion_feature) parameter is used for large water bodies and coastal areas that would significantly alter the area of the elevation bands.
Sintaxis
Parámetro | Explicación | Tipo de datos |
Input_Raster |
The input raster layer. | Raster Layer |
Output_Feature_Class |
The output elevation guide band feature class. | Feature Class |
Contour_Interval |
Contour interval in meters. The interval must be either 10, 20, or 40. | Integer |
Minimum_Feature_Area |
Sets a minimum area for output polygons. Features smaller than this value will be removed. The default value is 0.00016 square decimal degrees. If you are creating an output dataset with a projected coordinate system, this value should reflect the square units of that coordinate system (for example, square meters for a UTM dataset). Otherwise, the default value might result in an empty output dataset. | Double |
Smoothing_Tolerance |
Sets a tolerance used by the smoothing algorithm. The larger the value, the more generalized the output band features. | Linear Unit |
Input_Area_of_Interest_Features (Opcional) |
The feature class that will define the area to process. | Feature Layer |
Area_of_Interest_Field (Opcional) |
Field containing a unique identifier for each map sheet. | Field |
Input_Hydro_Exclusion_Features (Opcional) |
Feature layers or classes that define large water body areas to exclude from the elevation band area calculations. | Feature Layer |
Ejemplo de código
This ArcPy window code sample creates a raster layer from production mapping sample data. The script runs the CreateGeneralizedBands function against the raster layer and writes the output to a file geodatabase in the c:\work folder. You need to have the Spatial Analyst and Production Mapping extensions enabled.
import arcpy # the raster is part of the production mapping sample data n32_dt0 = "C:\\data\\Foundation_Data_Tutorials\\Reference\\DEM\\dted\\w117\\n32.dt0" MakeRas_dt01 = "MakeRas_dt01" # an output workspace generalized_bands = "C:\\data\\work.gdb\\generalized_bands" # import the production mapping toolbox arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Production Mapping Tools.tbx') # Make a Raster Layer from the dted arcpy.MakeRasterLayer_management(n32_dt0, MakeRas_dt01, "", "-117.004166666667 31.9958333333333 -115.995833333333 33.0041666666667", "") # Execute Create Generalized Bands - this will generate the generalized_bands output arcpy.CreateGeneralizedBands_production(MakeRas_dt01, generalized_bands, "40", "0.00016", "0.02 DecimalDegrees", "", "", "")