Unzip MGCP Cell And Import (Topographic Production)

サマリー

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.

  • Target Geodatabase must be an MGCP geodatabase and have an MGCP_Metadata feature dataset. The feature dataset must contain a Cell feature class.

パラメーター

ラベル説明データ タイプ
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

派生した出力

ラベル説明データ タイプ
Output Geodatabase

The database where shape files from Root_Folder have been loaded.

Workspace

arcpy.topographic.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

派生した出力

名前説明データ タイプ
Output_Geodatabase

The database where shape files from Root_Folder have been loaded.

Workspace

コードのサンプル

UnzipCellAndImport example (stand-alone script)

The following stand-alone script demonstrates how to use the UnzipCellAndImport tool to unzip shapefiles in a MGCP zip package, load the data into a file geodatabase, and import Metadata Cell Features.

# Name: UnzipCellAndImport_sample.py
# Description: Unzips shapefiles in a MGCP zip package and loads the data into a file geodatabase, then imports the Metadata Cell Features

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('Defense')

# Setting Local Variables
root_folder = r'C:\Data\MGCPShapePackages'
target_geodatabase = r'C:\Data\MGCP_TRD_4_4.gdb'

# Unziping TRD 4.2 shape packages to a TRD 4.4 database
arcpy.topographic.UnzipCellAndImport(root_folder, target_geodatabase)

# Check In Extensions
arcpy.CheckInExtension('Defense')

環境

特殊なケース

ライセンス情報

  • Basic: No
  • Standard: 次のものが必要 Defense Mapping
  • Advanced: 次のものが必要 Defense Mapping

関連トピック