Create Rapid Graphic (Defense Mapping)

License Level:BasicStandardAdvanced

Summary

Esri Defense Mapping cartographic production tool that produces a complete map document (.mxd) based on a specified map product. This tool uses an area of interest feature, product geodatabase, and elevation data to create a product-specific map document.

Usage

Syntax

CreateRapidGraphic_defense (workspace, aoi, product, version, document_workspace, {export_type}, {input_rasters}, {map_template}, {map_info_table})
ParameterExplanationData Type
workspace

Geodatabase in which the tool stores grid, elevation, and feature data used to create the output map document.

Workspace
aoi

A feature layer that describes the processing extent. The feature layer must have one or more selected features. Each selected feature's NRN value is appended to the name of the output map document.

Layer
product

Indicates the type of Defense Mapping cartographic product to create. Product_Type controls the grids created during processing, the type of defense mapping template used for the output map document, and the scale used when generating data and graphics.

  • MDG50_MGCPGrids, template, and scale specified to product MDG50_MGCP
  • MDG50_TLMGrids, template, and scale specified to product MDG50_TLM
  • MDG100_MGCPGrids, template, and scale specified to product MDG100_MGCP
  • MDG100_TLMGrids, template, and scale specified to product MDG100_TLM
  • LDG50_NSGGrids, template, and scale specified to product LDG50_NSG
  • LDG100_NSGGrids, template, and scale specified to product LDG100_NSG
String
version

Indicates the Defense Mapping data model version. This parameter is used with Product_Type to determine the type of defense mapping template used for the output map document. It is optionally used with Product_Type to create an Elevation Guide Box in the output map document.

  • TRD2Data model to use with MDG* product types
  • TRD3Data model to use with MDG* product types
  • TRD4Data model to use with MDG* product types
  • LTDS_4_0Data model to use with LDG* product types
  • LTDS_5_0Data model to use with LDG* product types
String
document_workspace

The folder to which the tool writes output map documents. Output map documents are named after each processed NRN value.

Folder
export_type
(Optional)

Indicates the type of export. This parameter is used with Product_Type to determine the Defense Mapping settings.

  • NONEDoes not export the map document. This is the default.
  • PDFExports the map document to a PDF.
  • PRODUCTION_PDFExports the map document to a Production PDF.
  • MAP_PACKAGEExports the map document to a Map Package.
String
input_rasters
[input_rasters,...]
(Optional)

Indicates the rasters to use to create elevation bands. If you specify more than one raster, all input rasters must have the same bit depth and number of bands. If there is no raster, the tool will not process the Elevation Guide data frame and you will receive a warning.

Raster Layer
map_template
(Optional)

The path to the custom map document that will be used to produce a complete map. If a custom template is not used, this tool will extract a template from the installation folder based on product type, data model version, and reference scale. A custom map template may only be created from an installed Rapid Graphic map document.

Modifications allowed for a custom map template include adding and removing individual data layers, adding and removing graphic elements, changing graphic elements, adding and removing dynamic elements, and changing element tab properties of dynamic surround elements.

Modifications not allowed for a custom map template include renaming data frames, modifying data frame properties, removing all data layers, renaming layers, changing area or size, and positioning properties of dynamic surround elements.

ArcMap Document
map_info_table
(Optional)

Input table that contains the Field_Name and Element_Part fields. These fields control the mapping between feature attributes and graphic elements. It defaults to the PopMapInfo table within the MapIndex database stored in <Installation location>\ArcGIS\ESRIDefenseMapping\Desktop10.2.2\ReferenceData.

Table

Code Sample

CreateRapidGraphic example (Python window)

The following code example demonstrates how to execute the CreateRapidGraphic function.

# set gp environment
arcpy.env.addOutputsToMap = True

geodb="c:/data/CARTO.gdb"
areaOfInterest = "C:/Program Files (x86)/ArcGIS/EsriDefenseMapping/Desktop10.1/ReferenceData/MapIndex.mdb/MapIndex/TLM100_Index"
areaOfInterestLyr="TLM100IDX"
whereclause="NRN='V695X1856'"
productType="MDG50_TLM"
version="TRD2"
mapDocumentWork="c:/data"
openDoc="NO_OPEN_MAP_DOCUMENT"

# raster N35.DT2 is located in c:/data/W121
raster="c:/data/W121/N36.DT2"
rasterLyr="n36"

# make a feature layer from the raster and area of interest
arcpy.MakeRasterLayer_management(raster,rasterLyr)
arcpy.MakeFeatureLayer_management(areaOfInterest,areaOfInterestLyr)
arcpy.SelectLayerByAttribute_management(areaOfInterestLyr,"NEW_SELECTION",whereclause)

desc=arcpy.Describe(areaOfInterestLyr)
fidlist=desc.FIDSet.split(";")
if len(fidlist) == 1:
	# execute the CreateRapidGraphic tool
	arcpy.CreateRapidGraphic_defense(geodb, areaOfInterestLyr, productType, version, mapDocumentWork, openDoc, rasterLyr)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Production Mapping, Defense Mapping, Spatial Analyst, and 3D Analyst
ArcGIS for Desktop Advanced: Requires Production Mapping, Defense Mapping, Spatial Analyst, and 3D Analyst
11/30/2015