ArcToolbox banner

Quick Import

 

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

The output is stored in an interim staging geodatabase. The geodatabase can then be used or further post-processing can be performed.

Usage Tips

Command-line syntax

QuickImport <Input> <Output>

 

Parameters

Expression

Explanation

<Input>

The data to be imported. The command 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, seperated 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 in its dialog box in ArcToolbox and copy the command syntax from the results window.

<Output>

The output staging personal geodatabase.

Command-Line Example

QuickImport c:\Data\roads.tab c:\out\roads.mdb

QuickImport MIF,c:\Data\*.* c:\out\alldata.mdb

Scripting syntax

QuickImport (Input, Output)

 

Parameters

Expression

Explanation

Input Dataset (Required)  

The data to be imported. The command 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, seperated by a comma. For instance: "MIF,c:\data\roads.mif". The names for supported formats can be found in the formats gallery, by opening up 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 in its dialog box in ArcToolbox and copy the command syntax from the results window.

Output Staging Geodatabase (Required)  

The output staging personal geodatabase.

 

Script Example

# Purpose: Import a Mapinfo TAB file, and select a specific layer from it

# Import system modules

import sys, string, os, win32com.client

# Create the Geoprocessor object

gp = Dispatch("esriGeoprocessing.GpDispatch.1")

# Local variables...

tab_to_import = "MAPINFO,C:/Data/exercise1/ROADS/roads.tab"

null_mdb = "C:/DOCUME~1/madam/LOCALS~1/Temp/null.mdb"

ROADS_LINE = "C:/DOCUME~1/madam/LOCALS~1/Temp/null.mdb/ROADS_LINE"

# Process: Quick Import...

gp.QuickImport(tab_to_import, null_mdb)

# Process: Select Data...

gp.SelectData_management(null_mdb, "ROADS_LINE", ROADS_LINE)