com.esri.arcgis.geodatabase
Class GeoDatabaseHelper

java.lang.Object
  extended bycom.esri.arcgis.geodatabase.GeoDatabaseHelper
All Implemented Interfaces:
IGeoDatabaseBridge, IGeoDatabaseBridge2, java.io.Serializable

public class GeoDatabaseHelper
extends java.lang.Object
implements IGeoDatabaseBridge, IGeoDatabaseBridge2

GeoDatabaseHelper object. Providing helper methods for GeoDatabase objects.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
GeoDatabaseHelper()
          Constructs a GeoDatabaseHelper using ArcGIS Engine.
GeoDatabaseHelper(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void addList(ISelectionSet selectionSet, int[] oIDList)
          Adds a list of object id's to the selection set.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IGeoDatabaseBridge getAsIGeoDatabaseBridge()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeoDatabaseBridge2 getAsIGeoDatabaseBridge2()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 IFeatureCursor getFeatures(IFeatureClass pFeatureClass, int[] fids, boolean recycling)
          Get a cursor of Rows given a set of object ids.
 void getLineOfSight(ISurface pSurface, IPoint pObserver, IPoint pTarget, IPoint[] ppObstruction, IPolyline[] ppVisibleLines, IPolyline[] ppInvisibleLines, boolean[] pbIsVisible, boolean bApplyCurvature, boolean bApplyRefraction, java.lang.Object pRefractionFactor)
          Returns a line-of-site indicator interpolated from the TIN based on an input polyline.
 int hashCode()
          the hashcode for this object
 void queryElevationBand(ITinTriangle pTinTriangle, double zLowerBound, double zUpperBound, int[] pCount, _WKSPointZ[][] pRegion)
          The polygon based on the specified triangle and input bounds.
 void queryPixelBlock(ISurface pSurface, double xOrigin, double yOrigin, double xPixelSize, double yPixelSize, int type, java.lang.Object valueForNoData, java.lang.Object[] block)
          Derives slope, aspect, hillshade, or elevation from the input surface and writes the result to the provided PixelBlock.
 void removeList(ISelectionSet selectionSet, int[] oIDList)
          Removes a list of object id's from the selection set.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoDatabaseHelper

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

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

GeoDatabaseHelper

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

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

getAsIGeoDatabaseBridge

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


getAsIGeoDatabaseBridge2

public IGeoDatabaseBridge2 getAsIGeoDatabaseBridge2()
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


getFeatures

public IFeatureCursor getFeatures(IFeatureClass pFeatureClass,
                                  int[] fids,
                                  boolean recycling)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IGeoDatabaseBridge
Get a cursor of Rows given a set of object ids.

Specified by:
getFeatures in interface IGeoDatabaseBridge
Parameters:
pFeatureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
fids - The fids (in)
recycling - The recycling (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureCursor
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addList

public void addList(ISelectionSet selectionSet,
                    int[] oIDList)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IGeoDatabaseBridge2
Adds a list of object id's to the selection set.

Specified by:
addList in interface IGeoDatabaseBridge2
Parameters:
selectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
oIDList - The oIDList (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

removeList

public void removeList(ISelectionSet selectionSet,
                       int[] oIDList)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IGeoDatabaseBridge2
Removes a list of object id's from the selection set.

Specified by:
removeList in interface IGeoDatabaseBridge2
Parameters:
selectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
oIDList - The oIDList (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

queryElevationBand

public void queryElevationBand(ITinTriangle pTinTriangle,
                               double zLowerBound,
                               double zUpperBound,
                               int[] pCount,
                               _WKSPointZ[][] pRegion)
                        throws java.io.IOException,
                               AutomationException
Description copied from interface: IGeoDatabaseBridge2
The polygon based on the specified triangle and input bounds. For pRegion, pass in an array with at least 5 WKSPointZs.

Specified by:
queryElevationBand in interface IGeoDatabaseBridge2
Parameters:
pTinTriangle - A reference to a com.esri.arcgis.geodatabase.ITinTriangle (in)
zLowerBound - The zLowerBound (in)
zUpperBound - The zUpperBound (in)
pCount - The pCount (out: use single element array)
pRegion - A Structure: com.esri.arcgis.system._WKSPointZ (An array of com.esri.arcgis.system._WKSPointZ COM typedef) (in/out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

queryPixelBlock

public void queryPixelBlock(ISurface pSurface,
                            double xOrigin,
                            double yOrigin,
                            double xPixelSize,
                            double yPixelSize,
                            int type,
                            java.lang.Object valueForNoData,
                            java.lang.Object[] block)
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IGeoDatabaseBridge2
Derives slope, aspect, hillshade, or elevation from the input surface and writes the result to the provided PixelBlock.

Specified by:
queryPixelBlock in interface IGeoDatabaseBridge2
Parameters:
pSurface - A reference to a com.esri.arcgis.geodatabase.ISurface (in)
xOrigin - The xOrigin (in)
yOrigin - The yOrigin (in)
xPixelSize - The xPixelSize (in)
yPixelSize - The yPixelSize (in)
type - A com.esri.arcgis.geodatabase.esriRasterizationType constant (in)
valueForNoData - A Variant (in)
block - A Variant (in/out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getLineOfSight

public void getLineOfSight(ISurface pSurface,
                           IPoint pObserver,
                           IPoint pTarget,
                           IPoint[] ppObstruction,
                           IPolyline[] ppVisibleLines,
                           IPolyline[] ppInvisibleLines,
                           boolean[] pbIsVisible,
                           boolean bApplyCurvature,
                           boolean bApplyRefraction,
                           java.lang.Object pRefractionFactor)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IGeoDatabaseBridge2
Returns a line-of-site indicator interpolated from the TIN based on an input polyline.

Specified by:
getLineOfSight in interface IGeoDatabaseBridge2
Parameters:
pSurface - A reference to a com.esri.arcgis.geodatabase.ISurface (in)
pObserver - A reference to a com.esri.arcgis.geometry.IPoint (in)
pTarget - A reference to a com.esri.arcgis.geometry.IPoint (in)
ppObstruction - A reference to a com.esri.arcgis.geometry.IPoint (out: use single element array)
ppVisibleLines - A reference to a com.esri.arcgis.geometry.IPolyline (out: use single element array)
ppInvisibleLines - A reference to a com.esri.arcgis.geometry.IPolyline (out: use single element array)
pbIsVisible - The pbIsVisible (out: use single element array)
bApplyCurvature - The bApplyCurvature (in)
bApplyRefraction - The bApplyRefraction (in)
pRefractionFactor - A Variant (in, optional, pass null if not required)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.