ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

Help

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

Create Rapid Graphic

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

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.

注:
Unzip the zipped files contained within your installation of Defense Mapping (located in the ReferenceData and Geonames folders) before executing this tool.

用法

  • At least one Area of Interest (AOI) feature must be selected.

  • The AOI must be contained within the raster.

  • You must have administrative privileges to the following locations:

    • Default workspace, as defined in the environments setting
    • Scratch workspace, as defined in the environments setting
    • <user documents directory>\ArcGIS
    • Output MXD workspace defined in the Map Document Workspace parameter
    • Output folder for the geodatabase defined in the Input Geodatabase parameter

  • You must unzip the zipped files contained within your installation of Defense Mapping (located in the ReferenceData and Geonames folders) before executing this tool.

  • Multiple output map documents are created if the Input Area of Interest has more than one selected feature.

  • The Input Area of Interest must have an NRN field. NRN values uniquely identify each processed area of interest. The tool returns The selected AOI does not have the necessary fields to create Grids if the NRN field does not exist.

  • If Input Area of Interest contains more than one selected feature, the map creation process occurs for each selected feature. A new map document is created per feature. Features are uniquely identified by their NRN values.

  • If Area of Interest contains more than one selected feature and Open Map Document is checked (OPEN_MAP_DOCUMENT in Python), the tool will open the last map document created.

语法

CreateRapidGraphic_defense (workspace, aoi, product, version, document_workspace, {input_rasters}, {export_type}, {map_template}, {map_info_table}, {create_outputfolder})
参数说明数据类型
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. This parameter 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_MGCP —Grids, template, and scale specified to product MDG50_MGCP
  • MDG50_TLM —Grids, template, and scale specified to product MDG50_TLM
  • MDG100_MGCP —Grids, template, and scale specified to product MDG100_MGCP
  • MDG100_TLM —Grids, template, and scale specified to product MDG100_TLM
  • LDG50_NSG —Grids, template, and scale specified to product LDG50_NSG
  • LDG100_NSG —Grids, template, and scale specified to product LDG100_NSG
String
version

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

  • TRD2 —Data model to use with MDG* product types
  • TRD3 —Data model to use with MDG* product types
  • TRD4 —Data model to use with MDG* product types
  • LTDS_4_0 —Data model to use with LDG* product types
  • LTDS_5_0 —Data 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
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. If there is no raster, the tool will not process the Elevation Guide data frame, prompting a warning.

Raster Layer
export_type
(可选)

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

  • NONE —Does not export the map document. This is the default.
  • PDF —Exports the map document to a PDF.
  • PRODUCTION_PDF —Exports the map document to a Production PDF.
  • MAP_PACKAGE —Exports the map document to a Map Package.
警告:

The output PDF should only be used for viewing on a server; it is not a field-ready map.

String
map_template
(可选)

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
(可选)

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.3.1\ReferenceData.

Table
create_outputfolder
(可选)
Boolean

代码示例

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/MGCP_TRD_4_0.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="TRD_4_0"
mapDocumentWork="c:/data"

# 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, rasterLyr)

环境

  • 当前工作空间
  • 临时工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 否
  • ArcGIS Desktop Advanced: 需要 Production Mapping and Defense Mapping and Spatial Analyst and 3D Analyst

相关主题

  • An overview of the Map Document toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2017 Esri. | 隐私政策 | 法律声明