Quick Import (Data Interoperability)

ライセンス レベル:BasicStandardAdvanced

サマリ

Converts data in any format supported by the ArcGIS Data Interoperability extension into feature classes.

The output is stored in a geodatabase. The geodatabase can then be used directly or further post-processing can be performed.

使用法

構文

QuickImport_interop (Input, Output)
パラメータ説明データ タイプ
Input

The data to be imported. The syntax can take multiple forms:

  • If the source data is a file with a well-known file extension, it can be given as-is. For instance, "c:\data\roads.mif".
  • If the source data is not a file, or the file has an unknown extension, the format can be given as part of the argument, separated by a comma. For instance, "MIF,c:\data\roads.mif". The names for supported formats can be found in the Formats Gallery, by opening this tool in dialog mode and clicking the browse button.
  • Wildcards can be used to read in large datasets. For instance, "MIF,c:\data\roads*.*".
    • The * character matches any series of characters for all files in the current directory. For instance, c:\data\roads*.mif will match c:\data\roads.mif, c:\data\roads5.mif, and c:\data\roads-updated.mif.
    • The ** characters match any subdirectories, recursively. For instance, c:\data\**\*.mif will match c:\data\roads.mif, c:\data\canada\rivers.mif, and c:\data\canada\alberta\edmonton.mif.
  • Additional format-specific parameters can be added after the dataset, separated by a comma. However, the syntax can be complex, so if this is required it is easiest to run the tool using its dialog and copy the Python syntax from the Results window.

Interop Source Dataset
Output

The output file or personal geodatabase.

Workspace

コードのサンプル

# Name: QuickImport_Ex_01.py
# Requirements: None
# Description: Imports Map Info file to a geodatabase

# Import system modules
import arcpy
from arcpy import env

# Check out the Data Interoperability Extension
arcpy.CheckOutExtension("DataInteroperability")

# Set local variables
mif_table= "c:/data/roads.tab"
output_gdb = "c:/workspace/mif_output.gdb"

# Execute Quick Ixport
arcpy.QuickImport_interop(mif_table, output_gdb)

環境

このツールはジオプロセシング環境を使用していません

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: 次のものが必要 Data Interoperability
ArcGIS for Desktop Standard: 次のものが必要 Data Interoperability
ArcGIS for Desktop Advanced: 次のものが必要 Data Interoperability
4/26/2014