ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Справка
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Картографическая платформа вашей организации

ArcGIS Desktop

Полноценная профессиональная ГИС

ArcGIS Enterprise

ГИС предприятия

ArcGIS Developers

Инструменты для встраивания приложений с местоположениями

ArcGIS Solutions

Бесплатные шаблоны карт и приложений для отрасли

ArcGIS Marketplace

Получение приложения и данных для вашей организации.

  • Документация
  • Поддержка
Esri
  • Войти
user
  • Мой профиль
  • Выход

ArcMap

  • На главную
  • Начало работы
  • Карта
  • Анализ
  • Управление данными
  • Инструменты
  • Дополнительные модули

Grid XML Selector

  • Сводка
  • Использование
  • Синтаксис
  • Пример кода
  • Параметры среды
  • Информация о лицензиях

Сводка

ArcGIS Defense Mapping cartographic production tool that returns the correct grid .xml file for a given grid type and area of interest (AOI). You can use the returned .xml file in the Make Defense Grids and Graticules or Batch Make Defense Grids and Graticules tools.

Использование

  • Grid .xml files are installed under <ArcGIS installation directory>\GridTemplates\DefenseMapping. This tool will return a path to a file in this location.

  • Grid AOI requires one selected polygon feature. If you select no features or more than one, the tool returns the error Requires exactly one feature to be selected.

Синтаксис

arcpy.defense.GridXMLSelector(in_aoi_features, grid_type)
ПараметрОбъяснениеТип данных
in_aoi_features

A polygon feature layer that must contain exactly one selected feature. The selected feature defines an area in which a grid may be created. The extent of the selected feature and the cartographic product type determine which grid .xml file the tool returns.

Feature Layer
grid_type

Indicates the type of Defense Mapping cartographic product that will include a grid. Different product types require different grid styles. The cartographic product type and the extent of the input area of interest determine which grid .xml file the tool is going to return.

  • EVC —Grids for EVC charts
  • ICM_5K+ —Grids for 5K-7.5K ICMs
  • ICM_10K+ —Grids for 10K-15K ICMs
  • LPC50 —Grids for 50K LPCs
  • JOGA —Grids for JOG-A
  • TLM50 —Grids for 50K TLMs
  • TLM100 —Grids for 100K TLMs
  • TLM50_ELEVATION GUIDE —Grids for the TLM50 Elevation Guide
  • TLM100_ELEVATION GUIDE —Grids for the TLM100 Elevation Guide
String

Пример кода

GridXMLSelector example (Python window)

The following code sample demonstrates how to use the GridXmlSelector tool.

import os

# Set gp environment
arcpy.env.addOutputsToMap=True

# variables for tool
idx="C:/Program Files (x86)/ArcGIS/EsriDefenseMapping/Desktop10.2/ReferenceData/MapIndex.mdb/MapIndex/TLM50_Index"
idxLayer = "TLM50_Index"
where="[NRN] = 'V795X22561'"
product="TLM50"

# Make a feature layer from the TLM50_Index feature class
if arcpy.Exists(idxLayer):
    arcpy.Delete_management(idxLayer)

arcpy.MakeFeatureLayer_management(idx,idxLayer)

# Select a feature that will define the AOI
arcpy.SelectLayerByAttribute_management(idxLayer,"NEW_SELECTION", where)

# return a grid XML file from this AOI and product
result = arcpy.GridXmlSelector_defense(idxLayer, product)
gridXml = result.getOutput(0)
print gridXml
print os.path.exists(gridXml)

Параметры среды

  • Текущая рабочая область

Информация о лицензиях

  • Basic: Нет
  • Standard: Требуется Defense Mapping
  • Advanced: Требуется Defense Mapping

Связанные разделы

  • An overview of the Utilities toolset

ArcGIS Desktop

  • На главную
  • Документация
  • Поддержка

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Об Esri

  • О нас
  • Карьера
  • Блог Esri
  • Конференция пользователей
  • Саммит разработчиков
Esri
Расскажите нам, что вы думаете.
Copyright © 2021 Esri. | Конфиденциальность | Правовая информация