Unzip Cell And Import (Defense Mapping)

License Level:BasicStandardAdvanced

Summary

Esri Defense Mapping geoprocessing tool that unzips and imports compressed Multinational Geospatial Co-production Program (MGCP) 1-degree-by-1-degree cell packages (*.zip) into a target geodatabase.

Usage

Syntax

UnzipCellAndImport_defense (Root_Folder, Target_Geodatabase)
ParameterExplanationData Type
Root_Folder

The root folder that contains one or more compressed shapefile cell packages in a .zip file.

Folder
Target_Geodatabase

The geodatabase to where the unzipped shapefiles will be imported.

Workspace

Code Sample

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")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Defense Mapping
ArcGIS for Desktop Advanced: Requires Defense Mapping
11/30/2015