Unzip MGCP Cell And Import (Topographic Production)

摘要

Unzips and imports zipped Multinational Geospatial Co-production Program (MGCP) 1-degree-by-1-degree cell packages and MGCP Urban Vector Data (MUVD) resource surface packages (.zip files) into a target geodatabase.

使用情况

  • This tool recursively searches the Root Folder parameter value for .zip files. The folder must contain an MGCP cell package or MUVD resource surface package with the shapefiles and a metadata file.

  • If no shapefiles are found in the zipped package, this tool will continue to run.

  • The Target Geodatabase parameter value must be an MGCP or MUVD geodatabase and have an MGCP_Metadata or MUVD_Metadata feature dataset. The MGCP_Metadata feature dataset must contain a Cell feature class. The MUVD_Metadata feature dataset must contain a ResourceSrf feature class.

参数

标注说明数据类型
Root Folder

The folder that contains the zipped shapefile cell or resource surface package (.zip file). This folder can contain more than one .zip file.

Folder
Target Geodatabase

The geodatabase where the unzipped shapefiles will be imported.

Workspace

派生输出

标注说明数据类型
Output Geodatabase

The database where shapefiles from the Root Folder parameter value have been loaded.

Workspace

arcpy.topographic.UnzipCellAndImport(Root_Folder, Target_Geodatabase)
名称说明数据类型
Root_Folder

The folder that contains the zipped shapefile cell or resource surface package (.zip file). This folder can contain more than one .zip file.

Folder
Target_Geodatabase

The geodatabase where the unzipped shapefiles will be imported.

Workspace

派生输出

名称说明数据类型
Output_Geodatabase

The database where shapefiles from the Root_Folder parameter value have been loaded.

Workspace

代码示例

UnzipCellAndImport example (stand-alone script)

The following stand-alone script demonstrates how to use the UnzipCellAndImport function to unzip shapefiles in a zipped MGCP package (.zip file), 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

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

许可信息

  • Basic: 否
  • Standard: 需要 Topographic Mapping
  • Advanced: 需要 Topographic Mapping

相关主题