com.esri.arcgis.geometry
Class GeoTransformationOperationSet

java.lang.Object
  extended bycom.esri.arcgis.geometry.GeoTransformationOperationSet
All Implemented Interfaces:
IGeoTransformationOperationSet, ISupportErrorInfo, java.io.Serializable

public class GeoTransformationOperationSet
extends java.lang.Object
implements IGeoTransformationOperationSet, ISupportErrorInfo

Stores a set of geographic transformation operators (GT + direction).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
GeoTransformationOperationSet()
          Constructs a GeoTransformationOperationSet using ArcGIS Engine.
GeoTransformationOperationSet(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 boolean find(int direction, IGeoTransformation gT)
          Check a geographic transformation and a direction to see if it exists in the set.
 void get(IGeographicCoordinateSystem pFromGCS, IGeographicCoordinateSystem pToGCS, int[] direction, IGeoTransformation[] transformation)
          Returns a default geographic transformation.
 IGeoTransformationOperationSet getAsIGeoTransformationOperationSet()
          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 getCount()
          The number of geographic transformations in the set.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          Supported Platforms
 void next(int[] direction, IGeoTransformation[] gT)
          Retrieves the next geographic transformation in the set.
 void remove(int direction, IGeoTransformation transformation)
          Deletes a particular geographic transformation.
 void removeAll()
          Deletes all geographic transformations in the set.
 void removeByKey(IGeographicCoordinateSystem pFromGCS, IGeographicCoordinateSystem pToGCS)
          Deletes a particular geographic transformation by its from and to GeoCS.
 void reset()
          Reinitializes the geographic transformation set.
 void set(int direction, IGeoTransformation transformation)
          Sets a default geographic transformation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTransformationOperationSet

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

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

GeoTransformationOperationSet

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

Construct a GeoTransformationOperationSet using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GeoTransformationOperationSet.
GeoTransformationOperationSet theGeoTransformationOperationSet = (GeoTransformationOperationSet) 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()

getAsIGeoTransformationOperationSet

public IGeoTransformationOperationSet getAsIGeoTransformationOperationSet()
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.


equals

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


hashCode

public int hashCode()
the hashcode for this object


set

public void set(int direction,
                IGeoTransformation transformation)
         throws java.io.IOException,
                AutomationException
Description copied from interface: IGeoTransformationOperationSet
Sets a default geographic transformation.

Specified by:
set in interface IGeoTransformationOperationSet
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
transformation - A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

get

public void get(IGeographicCoordinateSystem pFromGCS,
                IGeographicCoordinateSystem pToGCS,
                int[] direction,
                IGeoTransformation[] transformation)
         throws java.io.IOException,
                AutomationException
Description copied from interface: IGeoTransformationOperationSet
Returns a default geographic transformation.

Supported Platforms

Windows, Solaris, Linux

Specified by:
get in interface IGeoTransformationOperationSet
Parameters:
pFromGCS - A reference to a com.esri.arcgis.geometry.IGeographicCoordinateSystem (in)
pToGCS - A reference to a com.esri.arcgis.geometry.IGeographicCoordinateSystem (in)
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (out: use single element array)
transformation - A reference to a com.esri.arcgis.geometry.IGeoTransformation (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

find

public boolean find(int direction,
                    IGeoTransformation gT)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IGeoTransformationOperationSet
Check a geographic transformation and a direction to see if it exists in the set.

Supported Platforms

Windows, Solaris, Linux

Specified by:
find in interface IGeoTransformationOperationSet
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
gT - A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)
Returns:
The found
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int direction,
                   IGeoTransformation transformation)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IGeoTransformationOperationSet
Deletes a particular geographic transformation.

Supported Platforms

Windows, Solaris, Linux

Specified by:
remove in interface IGeoTransformationOperationSet
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
transformation - A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

removeByKey

public void removeByKey(IGeographicCoordinateSystem pFromGCS,
                        IGeographicCoordinateSystem pToGCS)
                 throws java.io.IOException,
                        AutomationException
Description copied from interface: IGeoTransformationOperationSet
Deletes a particular geographic transformation by its from and to GeoCS.

Supported Platforms

Windows, Solaris, Linux

Specified by:
removeByKey in interface IGeoTransformationOperationSet
Parameters:
pFromGCS - A reference to a com.esri.arcgis.geometry.IGeographicCoordinateSystem (in)
pToGCS - A reference to a com.esri.arcgis.geometry.IGeographicCoordinateSystem (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

next

public void next(int[] direction,
                 IGeoTransformation[] gT)
          throws java.io.IOException,
                 AutomationException
Description copied from interface: IGeoTransformationOperationSet
Retrieves the next geographic transformation in the set.

Supported Platforms

Windows, Solaris, Linux

Specified by:
next in interface IGeoTransformationOperationSet
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (out: use single element array)
gT - A reference to a com.esri.arcgis.geometry.IGeoTransformation (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

reset

public void reset()
           throws java.io.IOException,
                  AutomationException
Description copied from interface: IGeoTransformationOperationSet
Reinitializes the geographic transformation set.

Supported Platforms

Windows, Solaris, Linux

Specified by:
reset in interface IGeoTransformationOperationSet
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

removeAll

public void removeAll()
               throws java.io.IOException,
                      AutomationException
Description copied from interface: IGeoTransformationOperationSet
Deletes all geographic transformations in the set.

Supported Platforms

Windows, Solaris, Linux

Specified by:
removeAll in interface IGeoTransformationOperationSet
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IGeoTransformationOperationSet
The number of geographic transformations in the set.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getCount in interface IGeoTransformationOperationSet
Returns:
The gtCount
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.