Create Rapid Graphic (Defense Mapping)

ライセンス レベル:BasicStandardAdvanced

サマリ

Esri Defense Mapping cartographic production tool that produces a complete map document (.mxd) based on a specified map product. The tool uses an area of interest (defense map product and data model version) elevation and feature data to create a map document that contains defense-specific graphics.

使用法

構文

CreateRapidGraphic_defense (Input_Geodatabase, Input_Area_of_Interest, Product_Type, Version, Map_Document_Workspace, Open_Map_Document, Input_Rasters, {Custom_Map_Template}, {Custom_Map_Info_Table})
パラメータ説明データ タイプ
Input_Geodatabase

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

Workspace
Input_Area_of_Interest

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.

Feature Layer
Product_Type

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
Map_Document_Workspace

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

Folder
Open_Map_Document

Indicates if the tool should open the map document specified in the Output_Map_Document parameter.

  • NO_OPEN_MAP_DOCUMENTDoes not open the map document. This is the default.
  • OPEN_MAP_DOCUMENTOpens the map document.
Boolean
Input_Rasters
[Input_Rasters,...]

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.

Raster Layer
Custom_Map_Template
(オプション)

The path to and custom template name that should be applied to the output map. The template must have all the same information that the installed templates do and the data frames must have the same names. If you don't have a custom template, you can use a template that is installed and customize it. If you don't need a custom template, the tool will extract a template from the installation folder based on product type, data model version, and reference scale.

ArcMap Document
Custom_Map_Info_Table
(オプション)

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>\ESRIDefenseMapping\Desktop\ReferenceData.

Table

コードのサンプル

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)

環境

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: ×
ArcGIS for Desktop Standard: 次のものが必要 Production Mapping, Defense Mapping, Spatial Analyst, and 3D Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Production Mapping, Defense Mapping, Spatial Analyst, and 3D Analyst
4/26/2014