ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Unzip Cell And Import

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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

  • 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.

  • This tool unzips each ZIP file into the ArcGIS scratch folder. The tool deletes unzipped shapefiles from the scratch folder after loading them into the Target Geodatabase.

  • If no shapefiles are found in the unzipped archive, this tool will display the message There are no source workspaces to load from and 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. This tool will return ERROR 000837: The workspace is not the correct workspace type if it encounters an invalid workspace.

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

  • Current Workspace

Licensing information

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

Related topics

  • An overview of the Geodatabase toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2017 Esri. | Privacy | Legal