com.esri.arcgis.geodatabase
Class GeoDatabaseHelper

java.lang.Object
  extended by com.esri.arcgis.geodatabase.GeoDatabaseHelper
All Implemented Interfaces:
IGeoDatabaseBridge, IGeoDatabaseBridge2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class GeoDatabaseHelper
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IGeoDatabaseBridge, IGeoDatabaseBridge2

GeoDatabaseHelper object. Providing helper methods for GeoDatabase objects.

Product Availability

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

Singleton:

This type is a singleton.

See Also:
Serialized Form

Constructor Summary
GeoDatabaseHelper()
          Constructs a GeoDatabaseHelper using ArcGIS Engine.
GeoDatabaseHelper(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeoDatabaseHelper theGeoDatabaseHelper = (GeoDatabaseHelper) obj;
 
Method Summary
 void addList(ISelectionSet selectionSet, int[] oIDList)
          Adds a list of object id's to the selection set.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          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, 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, Object valueForNoData, 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
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

GeoDatabaseHelper

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

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

GeoDatabaseHelper

public GeoDatabaseHelper(Object obj)
                  throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeoDatabaseHelper theGeoDatabaseHelper = (GeoDatabaseHelper) obj;

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.

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getFeatures

public IFeatureCursor getFeatures(IFeatureClass pFeatureClass,
                                  int[] fids,
                                  boolean recycling)
                           throws IOException,
                                  AutomationException
Get a cursor of Rows given a set of object ids.

Product Availability

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

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addList

public void addList(ISelectionSet selectionSet,
                    int[] oIDList)
             throws IOException,
                    AutomationException
Adds a list of object id's to the selection set.

Product Availability

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

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

removeList

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

Product Availability

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

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

queryElevationBand

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

Product Availability

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

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryPixelBlock

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

Description

For .NET developers. See ISurface.QueryPixelBlock for parameter help.

Product Availability

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

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLineOfSight

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

Product Availability

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

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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.