Краткая информация
Unzips and imports compressed Multinational Geospatial Co-production Program (MGCP) 1-degree-by-1-degree cell packages (*.zip) into a target geodatabase.
Использование
This tool recursively searches the Root Folder for ZIP files. ZIP files must contain an MGCP cell package that includes one or more shapefiles and a metadata file.
If no shapefiles are found in the unzipped archive, this tool will continue execution.
This tool uses other Esri Defense Mapping and Esri Production Mapping tools. You must check out a Production Mapping (foundation) license to use this tool.
Target Geodatabase must be an MGCP geodatabase and have an MGCP_Metadata feature dataset. The feature dataset must contain a Cell feature class.
Синтаксис
UnzipCellAndImport(Root_Folder, Target_Geodatabase)
Параметр | Объяснение | Тип данных |
Root_Folder | The root folder that contains one or more compressed shapefile cell packages in a .zip file. | Folder |
Target_Geodatabase | The geodatabase where the unzipped shapefiles will be imported. | Workspace |
Пример кода
UnzipCellAndImport example (stand-alone script)
The following stand-alone script demonstrates how to use the UnzipCellAndImport tool.
# Name: UnzipCellAndImport_Example.py
# Description: Unzips an MGCP Cell package and loads into MGCP geodatabase
# Requirements: Esri Defense Mapping, Esri Production Mapping
import arcpy
# check out a defense and production mapping license
arcpy.CheckOutExtension("defense")
arcpy.CheckOutExtension("foundation")
# folder that contains MGCP cell packages (ZIPs)
root_folder="c:\\defense"
# execute the tool
arcpy.UnzipCellAndImport_defense(root_folder,target_gdb)
# check in defense and production mapping licenses
arcpy.CheckInExtension("defense")
arcpy.CheckInExtension("foundation")
Параметры среды
Информация о лицензиях
- ArcGIS Desktop Basic: Нет
- ArcGIS Desktop Standard: Требует Defense Mapping
- ArcGIS Desktop Advanced: Требует Defense Mapping