com.esri.arcgis.geodatabase
Interface IFeatureDataConverter

All Superinterfaces:
Serializable
All Known Implementing Classes:
FeatureDataConverter

public interface IFeatureDataConverter
extends Serializable

Provides access to members that are used to convert from a Personal Geodatabase/Geodatabase dataset to another.

Description

IFeatureDataConverter can be used to copy or convert existing Tables, Feature Classes, or Feature Datasets to other locations or database formats. This interface does not support conversion to an ArcInfo coverage.

Remarks

IFeatureDataConverter does not support the conversion of:
Geometric Networks
Topologies
Network Datasets
Relationship Classes
Network feature classes
Annotation or Dimension feature class
Feature classes with class extensions
Subtypes, domains and default values


Field Type Mapping
Field type definitions will be mapped as appropriate to the target data source. For example a short integer will be mapped to a long when converting from ArcSDE for Oracle to a Personal Geodatabase.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IEnumInvalidObject convertFeatureClass(IFeatureClassName inputDatasetName, IQueryFilter inputQueryFilter, IFeatureDatasetName outputFDatasetName, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, IFields outputFields, String configKey, int flushInterval, int parentHWND)
          Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.
 void convertFeatureDataset(IFeatureDatasetName inputFDatasetName, IFeatureDatasetName outputFDatasetName, IGeometryDef outputGeometryDef, String configKey, int flushInterval, int parentHWND)
          Converts a featureDataset to Personal Geodatabase/Geodatabase featuredataset.
 IEnumInvalidObject convertTable(IDatasetName inputDatasetName, IQueryFilter inputQueryFilter, IDatasetName outputDatasetName, IFields outputFields, String configKey, int flushInterval, int parentHWND)
          Converts a table to an Personal Geodatabase/Geodatabase table.
 

Method Detail

convertFeatureDataset

void convertFeatureDataset(IFeatureDatasetName inputFDatasetName,
                           IFeatureDatasetName outputFDatasetName,
                           IGeometryDef outputGeometryDef,
                           String configKey,
                           int flushInterval,
                           int parentHWND)
                           throws IOException,
                                  AutomationException
Converts a featureDataset to Personal Geodatabase/Geodatabase featuredataset.

Description

ConvertFeatureDataset automates the conversion of feature datasets. Converts only the simple feature classes contained in the source feature dataset. Complex feature classes (annotation, networks) and relationship classes are not converted. The source feature dataset name is appended to the beginning of each of the feature class names in the target feature dataset. For example a target feature dataset, “USA2”, with a source dataset named, “USA”, would have “USA_” appended onto each of its feature class names. The feature class “roads” would be “USA_roads” in the target feature dataset. As a result of this behavior, a feature dataset can only be converted into a given target geodatabase one time without renaming (programmatically) the target feature classes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inputFDatasetName - A reference to a com.esri.arcgis.geodatabase.IFeatureDatasetName (in)
outputFDatasetName - A reference to a com.esri.arcgis.geodatabase.IFeatureDatasetName (in)
outputGeometryDef - A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)
configKey - The configKey (in)
flushInterval - The flushInterval (in)
parentHWND - The parentHWND (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertFeatureClass

IEnumInvalidObject convertFeatureClass(IFeatureClassName inputDatasetName,
                                       IQueryFilter inputQueryFilter,
                                       IFeatureDatasetName outputFDatasetName,
                                       IFeatureClassName outputFClassName,
                                       IGeometryDef outputGeometryDef,
                                       IFields outputFields,
                                       String configKey,
                                       int flushInterval,
                                       int parentHWND)
                                       throws IOException,
                                              AutomationException
Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.

Description

ConvertFeatureClass automates the conversion of feature class data. This method supports the conversion of simple feature classes (point, line, polygon). Conversion of complex feature classes (geometric network feature classes, SDE 3.x annotation, Geodatabase annotation, coverage annotation) is not supported. Subtypes and domains are not maintained by ConvertFeatureClass.

To create a featureclass with a subset of the columns from the source data use IQueryFilter::SubFields. Make sure to includes the geometry column. The OID column will be ignored. The OutputFields object should include all of the fields.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inputDatasetName - A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)
inputQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
outputFDatasetName - A reference to a com.esri.arcgis.geodatabase.IFeatureDatasetName (in)
outputFClassName - A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)
outputGeometryDef - A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)
outputFields - A reference to a com.esri.arcgis.geodatabase.IFields (in)
configKey - The configKey (in)
flushInterval - The flushInterval (in)
parentHWND - The parentHWND (A COM typedef) (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumInvalidObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertTable

IEnumInvalidObject convertTable(IDatasetName inputDatasetName,
                                IQueryFilter inputQueryFilter,
                                IDatasetName outputDatasetName,
                                IFields outputFields,
                                String configKey,
                                int flushInterval,
                                int parentHWND)
                                throws IOException,
                                       AutomationException
Converts a table to an Personal Geodatabase/Geodatabase table.

Description

ConvertTable Automates the conversion of tables. This method supports the conversion of INFO, dBase, OLE DB, ArcSDE, Personal and File Geodatabase tables.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
inputDatasetName - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
inputQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
outputDatasetName - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
outputFields - A reference to a com.esri.arcgis.geodatabase.IFields (in)
configKey - The configKey (in)
flushInterval - The flushInterval (in)
parentHWND - The parentHWND (A COM typedef) (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumInvalidObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.