ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Populate Map Sheet Info

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información sobre licencias

Resumen

Populates text in graphic elements on an ArcMap layout. Text is populated with feature attribute values from a selected area of interest (AOI) feature in the map. The tool searches each graphic element for tagged (<tag></tag>) text. It compares tagged text to values in the PopMapInfo table. Any matching values are replaced in the graphic element with an attribute value from the selected AOI feature.

The PopMapInfo table, similar to a lookup table, maintains the relationship between feature attributes and tagged text strings. The table contains the Field_Name and DM_Tag fields, which control the mapping between feature attributes and graphic elements. For example, the table maps the Sheet attribute to text with the SHEET tag (<dm021>text</dm021>). All text within the tag will be updated; therefore, the tool can be run as needed when feature attributes are updated. Custom Field_Name and DM_Tag fields may be added to the table to allow for use of new feature attributes and associated graphic elements. The PopMapInfo table is located within the MapIndex database stored in <installation path>\ArcGIS\ESRIDefenseMapping\Desktop10.6.1\ReferenceData.

Nota:

Esri Defense Mapping map templates often use graphic elements with bracketed ([ ]) text to indicate text that should be updated to meet the product specification. However, brackets are not required by the Populate Map Sheet Info tool.

Uso

  • Input MXD must have a layout that contains graphic elements. This tool only updates tagged text strings within those graphic elements. Tagged text strings must follow the formats listed under DM_Tag in the Feature attribute to graphic text mapping information document.

  • When running this tool against the active MXD, set the map display to layout view.

  • This tool updates all duplicate tagged text strings. For example, a layout can have multiple text elements with the SHEET tag (<SHEET>text</SHEET>).

  • Input Feature Layer represents an area of interest (AOI) feature. This parameter accepts only polygon features. Using other geometry types will return error 000366: Invalid geometry type.

  • Input Feature Layer must contain exactly one selected feature. This tool will return an error if the layer has 0 or more than 1 selected features.

  • Input Table defaults to the PopMapInfo table within the MapIndex database stored in <installation path>\ArcGIS\ESRIDefenseMapping\Desktop10.6.1\ReferenceData. Input Table contains the Field_Name and DM_Tag fields which control the mapping between feature attributes and graphic elements.

  • Messages returned during tool execution include a list of replaced text.

Sintaxis

PopulateMapSheetInfo(mxd, in_features, in_table)
ParámetroExplicaciónTipo de datos
mxd

The path to the .mxd to update. To update the active, currently loaded map document, use the CURRENT keyword. When using the active MXD, the tool must be run from the layout view.

File
in_features

A feature layer with a selection set containing one AOI feature. The tool writes attribute values from this feature to tagged text strings in defense-specific graphic elements.

Feature Layer
in_table

An input table that contains the Field_Name and DM_Tag fields.

Table View

Muestra de código

PopulateMapSheetInfo example (stand-alone script)

The following stand-alone script demonstrates how to use the PopulateMapSheetInfo tool using a path to a map document.

# Importing arcpy module
import arcpy

# Checking out Defense extension
arcpy.CheckOutExtension('defense')

# Setting variables for necessary data
map_document = r'C:\Data\Output\V795X16573.mxd'
area_of_interest = r'C:\DefenseProductFiles\ReferenceData\MapIndex.gdb\MapIndex\TLM50_Index'
map_info_table = r'C:\DefenseProductFiles\ReferenceData\MapIndex.gdb\PopMapInfo'

# Creating AOI feature layer
selection_query = "NRN = 'V795X16573'"
arcpy.management.MakeFeatureLayer(area_of_interest, 'AOI')
arcpy.management.SelectLayerByAttribute('AOI', 'NEW_SELECTION', selection_query)

# Calling Populate Map Sheet Info tool
arcpy.defense.PopulateMapSheetInfo(map_document, 'AOI', map_info_table)

# Checking in Defense extension
arcpy.CheckInExtension('defense')

Entornos

  • Espacio de trabajo actual

Información sobre licencias

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: Requiere Defense Mapping
  • ArcGIS Desktop Advanced: Requiere Defense Mapping

Temas relacionados

  • An overview of the Map Document toolset

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

Plataforma ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2020 Esri. | Privacidad | Legal