IFeatureDataConverter Interface

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

Description

IFeatureDataConvertercan 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 ArcGIS for Desktop Advanced coverage.

Members

Name Description
Method ConvertFeatureClass Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.
Method ConvertFeatureDataset Converts a featureDataset to Personal Geodatabase/Geodatabase featuredataset.
Method ConvertTable Converts a table to an Personal Geodatabase/Geodatabase table.

IFeatureDataConverter.ConvertFeatureClass Method

Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.

Public Function ConvertFeatureClass ( _
    ByVal InputDatasetName As IFeatureClassName, _
    ByVal InputQueryFilter As IQueryFilter, _
    ByVal outputFDatasetName As IFeatureDatasetName, _
    ByVal outputFClassName As IFeatureClassName, _
    ByVal OutputGeometryDef As IGeometryDef, _
    ByVal OutputFields As IFields, _
    ByVal configKey As String, _
    ByVal FlushInterval As Integer, _
    ByVal parentHWND As Integer _
) As IEnumInvalidObject
public IEnumInvalidObject ConvertFeatureClass (
    IFeatureClassName InputDatasetName,
    IQueryFilter InputQueryFilter,
    IFeatureDatasetName outputFDatasetName,
    IFeatureClassName outputFClassName,
    IGeometryDef OutputGeometryDef,
    IFields OutputFields,
    string configKey,
    int FlushInterval,
    int parentHWND
);

Description

ConvertFeatureClassautomates 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.

IFeatureDataConverter.ConvertFeatureDataset Method

Converts a featureDataset to Personal Geodatabase/Geodatabase featuredataset.

Public Sub ConvertFeatureDataset ( _
    ByVal inputFDatasetName As IFeatureDatasetName, _
    ByVal outputFDatasetName As IFeatureDatasetName, _
    ByVal OutputGeometryDef As IGeometryDef, _
    ByVal configKey As String, _
    ByVal FlushInterval As Integer, _
    ByVal parentHWND As Integer _
)
public void ConvertFeatureDataset (
    IFeatureDatasetName inputFDatasetName,
    IFeatureDatasetName outputFDatasetName,
    IGeometryDef OutputGeometryDef,
    string configKey,
    int FlushInterval,
    int parentHWND
);

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.

IFeatureDataConverter.ConvertTable Method

Converts a table to an Personal Geodatabase/Geodatabase table.

Public Function ConvertTable ( _
    ByVal InputDatasetName As IDatasetName, _
    ByVal InputQueryFilter As IQueryFilter, _
    ByVal OutputDatasetName As IDatasetName, _
    ByVal OutputFields As IFields, _
    ByVal configKey As String, _
    ByVal FlushInterval As Integer, _
    ByVal parentHWND As Integer _
) As IEnumInvalidObject
public IEnumInvalidObject ConvertTable (
    IDatasetName InputDatasetName,
    IQueryFilter InputQueryFilter,
    IDatasetName OutputDatasetName,
    IFields OutputFields,
    string configKey,
    int FlushInterval,
    int parentHWND
);

Description

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

Classes that implement IFeatureDataConverter

Classes Description
FeatureDataConverter Converts a featuredataset to a Personal Geodatabase/Geodatabase featuredataset.

Remarks

IFeatureDataConverter does not support the conversion of: Geometric NetworksTopologiesNetwork DatasetsRelationship ClassesNetwork feature classesAnnotation or Dimension feature classFeature classes with class extensionsSubtypes, domains and default values

Field Type MappingField 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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.