Create Contours (Defense Mapping)
Récapitulatif
Esri Defense Mapping cartographic production tool that creates and smooths contours from an input raster.
This tool uses the following process to generate contours:
- Creates contours by executing the ArcGIS Spatial Analyst Contour tool.
- Smooths contours by applying a Cartographie militaire-specific algorithm.
- Calculates contour fields that pertain to Cartographie militaire data models.
Utilisation
-
Set the Map Scale parameter to the scale at which your cartographic products will be printed. The tool uses this parameter to improve contour display in output products.
This tool requires specific fields within Out Contour Features. Out Contour Features should be a Cartographie militaire data model feature class.
Syntaxe
Paramètre | Explication | Type de données |
Input_Raster [Input_Raster,...] |
A list of rasters from which contours will be created. | Raster Layer |
Map_Scale |
The scale at which the cartographic product is going to be printed. The tool optimizes cartographic display by setting a minimum feature length based on this scale.
| String |
Base_Contour |
Base contour value. Contours are generated above and below this value to cover the entire value range of the input raster. Setting this value to 5 and the contour interval to 10 will produce contour lines at 5, 15, 25, -5, -15, and so forth. The default is zero. | Double |
Contour_Interval |
The interval, or distance, between contour lines. This can be any positive number. | Double |
Index_Interval |
Indicates the index contour interval. | Double |
Include_Zero_Contour | Indicates if the tool will create a zero contour. A zero contour represents sea level. Zero contours, when generated along a coastline, may be created inside a water body. Specify ZERO_CONTOUR if you will generate contours on land areas that are at or below sea level.
| Boolean |
Out_Contour_Features |
An existing Cartographie militaire feature class. The tool appends contours to this feature class. | Feature Layer |
Contour_Subtype |
A subtype in Out_Contour_Features to which contours will be written. | String |
Exemple de code
The following Python window script demonstrates how to use the CreateContours tool.
# set gp environment
arcpy.env.workspace="C:/data"
# variables for tool
rasters="elevation.tif"
mapScale="1:12500"
baseContour=0
contourInterval=10
indexInterval="ZERO_CONTOUR"
# output feature class must exist
outContours="mgcp.gdb/mgcp/contours"
contourSubtype="FCSubtype"
# execute the tool
arcpy.CreateContours_defense(rasters,mapScale,baseContour,contourInterval,indexInterval,outContours,contourSubtype)