com.esri.arcgis.geodatabase
Class FeatureDataConverter

java.lang.Object
  extended bycom.esri.arcgis.geodatabase.FeatureDataConverter
All Implemented Interfaces:
IConnectionPointContainer, IFeatureDataConverter, IFeatureDataConverter2, ISupportErrorInfo, java.io.Serializable

public class FeatureDataConverter
extends java.lang.Object
implements IFeatureDataConverter, IFeatureDataConverter2, ISupportErrorInfo, IConnectionPointContainer

Converts a featuredataset to a Personal Geodatabase/Geodatabase featuredataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
FeatureDataConverter()
          Constructs a FeatureDataConverter using ArcGIS Engine.
FeatureDataConverter(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void addIFeatureProgressListener(IFeatureProgress theListener)
           
 IEnumInvalidObject convertFeatureClass(IDatasetName inputFClassName, IQueryFilter inputQueryFilter, ISelectionSet inputSelectionSet, IFeatureDatasetName outputFDatasetName, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, IFields outputFields, java.lang.String configKey, int flushInterval, int parentHWND)
          Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.
 IEnumInvalidObject convertFeatureClass(IFeatureClassName inputDatasetName, IQueryFilter inputQueryFilter, IFeatureDatasetName outputFDatasetName, IFeatureClassName outputFClassName, IGeometryDef outputGeometryDef, IFields outputFields, java.lang.String configKey, int flushInterval, int parentHWND)
          Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.
 void convertFeatureDataset(IFeatureDatasetName inputFDatasetName, IFeatureDatasetName outputFDatasetName, IGeometryDef outputGeometryDef, java.lang.String configKey, int flushInterval, int parentHWND)
          Converts a featureDataset to Personal Geodatabase/Geodatabase featuredataset.
 IEnumInvalidObject convertTable(IDatasetName inputDatasetName, IQueryFilter inputQueryFilter, IDatasetName outputDatasetName, IFields outputFields, java.lang.String configKey, int flushInterval, int parentHWND)
          Converts a table to an Personal Geodatabase/Geodatabase table.
 IEnumInvalidObject convertTable(IDatasetName inputDatasetName, IQueryFilter inputQueryFilter, ISelectionSet inputSelectionSet, IDatasetName outputDatasetName, IFields outputFields, java.lang.String configKey, int flushInterval, int parentHWND)
          Converts a table to a Personal Geodatabase/Geodatabase table.
 void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
          Supported Platforms
 boolean equals(java.lang.Object o)
          Compare this object with another
 void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP)
          Supported Platforms
 IConnectionPointContainer getAsIConnectionPointContainer()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IFeatureDataConverter getAsIFeatureDataConverter()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IFeatureDataConverter2 getAsIFeatureDataConverter2()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          Supported Platforms
 void removeIFeatureProgressListener(IFeatureProgress theListener)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureDataConverter

public FeatureDataConverter()
                     throws java.io.IOException,
                            java.net.UnknownHostException
Constructs a FeatureDataConverter using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

FeatureDataConverter

public FeatureDataConverter(java.lang.Object obj)
                     throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

Construct a FeatureDataConverter using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to FeatureDataConverter.
FeatureDataConverter theFeatureDataConverter = (FeatureDataConverter) obj;

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()

getAsIFeatureDataConverter

public IFeatureDataConverter getAsIFeatureDataConverter()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIFeatureDataConverter2

public IFeatureDataConverter2 getAsIFeatureDataConverter2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIConnectionPointContainer

public IConnectionPointContainer getAsIConnectionPointContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

public boolean equals(java.lang.Object o)
Compare this object with another


hashCode

public int hashCode()
the hashcode for this object


addIFeatureProgressListener

public void addIFeatureProgressListener(IFeatureProgress theListener)
                                 throws java.io.IOException
Throws:
java.io.IOException

removeIFeatureProgressListener

public void removeIFeatureProgressListener(IFeatureProgress theListener)
                                    throws java.io.IOException
Throws:
java.io.IOException

convertFeatureDataset

public void convertFeatureDataset(IFeatureDatasetName inputFDatasetName,
                                  IFeatureDatasetName outputFDatasetName,
                                  IGeometryDef outputGeometryDef,
                                  java.lang.String configKey,
                                  int flushInterval,
                                  int parentHWND)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IFeatureDataConverter
Converts a featureDataset to Personal Geodatabase/Geodatabase featuredataset.

Supported Platforms

Windows, Solaris, Linux

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.

Specified by:
convertFeatureDataset in interface IFeatureDataConverter
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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
See Also:
IGeoDBDataTransfer

convertFeatureClass

public IEnumInvalidObject convertFeatureClass(IFeatureClassName inputDatasetName,
                                              IQueryFilter inputQueryFilter,
                                              IFeatureDatasetName outputFDatasetName,
                                              IFeatureClassName outputFClassName,
                                              IGeometryDef outputGeometryDef,
                                              IFields outputFields,
                                              java.lang.String configKey,
                                              int flushInterval,
                                              int parentHWND)
                                       throws java.io.IOException,
                                              AutomationException
Description copied from interface: IFeatureDataConverter
Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.

Supported Platforms

Windows, Solaris, Linux

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.

Specified by:
convertFeatureClass in interface IFeatureDataConverter
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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
See Also:
IGeoDBDataTransfer

convertTable

public IEnumInvalidObject convertTable(IDatasetName inputDatasetName,
                                       IQueryFilter inputQueryFilter,
                                       IDatasetName outputDatasetName,
                                       IFields outputFields,
                                       java.lang.String configKey,
                                       int flushInterval,
                                       int parentHWND)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IFeatureDataConverter
Converts a table to an Personal Geodatabase/Geodatabase table.

Supported Platforms

Windows, Solaris, Linux

Description

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

Specified by:
convertTable in interface IFeatureDataConverter
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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertFeatureClass

public IEnumInvalidObject convertFeatureClass(IDatasetName inputFClassName,
                                              IQueryFilter inputQueryFilter,
                                              ISelectionSet inputSelectionSet,
                                              IFeatureDatasetName outputFDatasetName,
                                              IFeatureClassName outputFClassName,
                                              IGeometryDef outputGeometryDef,
                                              IFields outputFields,
                                              java.lang.String configKey,
                                              int flushInterval,
                                              int parentHWND)
                                       throws java.io.IOException,
                                              AutomationException
Description copied from interface: IFeatureDataConverter2
Converts a featureClass to a Personal Geodatabase/Geodatabase featureClass.

Supported Platforms

Windows, Solaris, Linux

Specified by:
convertFeatureClass in interface IFeatureDataConverter2
Parameters:
inputFClassName - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
inputQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
inputSelectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertTable

public IEnumInvalidObject convertTable(IDatasetName inputDatasetName,
                                       IQueryFilter inputQueryFilter,
                                       ISelectionSet inputSelectionSet,
                                       IDatasetName outputDatasetName,
                                       IFields outputFields,
                                       java.lang.String configKey,
                                       int flushInterval,
                                       int parentHWND)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IFeatureDataConverter2
Converts a table to a Personal Geodatabase/Geodatabase table.

Supported Platforms

Windows, Solaris, Linux

Specified by:
convertTable in interface IFeatureDataConverter2
Parameters:
inputDatasetName - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
inputQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
inputSelectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

enumConnectionPoints

public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IConnectionPointContainer

Supported Platforms

Windows, Solaris, Linux

Description

IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
enumConnectionPoints in interface IConnectionPointContainer
Parameters:
ppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findConnectionPoint

public void findConnectionPoint(GUID riid,
                                IConnectionPoint[] ppCP)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IConnectionPointContainer

Supported Platforms

Windows, Solaris, Linux

Description

IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.

Specified by:
findConnectionPoint in interface IConnectionPointContainer
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.