com.esri.arcgis.datasourcesraster
Class RasterCalcStatsHistogram

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterCalcStatsHistogram
All Implemented Interfaces:
IRasterCalcStatsHistogram, IRasterCalcStatsHistogram2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterCalcStatsHistogram
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterCalcStatsHistogram, IRasterCalcStatsHistogram2

A helper class for calculating raster statistics and histogram.

Remarks

RasterCalcStatsHistogram object is used to calculate the "unified" statistics and histogram for one or multiple raster bands.

RasterCalcStatsHistogram creates StatsHistogram object, which is used in RasterStretchColorRampRenderer .

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RasterCalcStatsHistogram()
          Constructs a RasterCalcStatsHistogram using ArcGIS Engine.
RasterCalcStatsHistogram(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCalcStatsHistogram theRasterCalcStatsHistogram = (RasterCalcStatsHistogram) obj;
 
Method Summary
 void computeAllFromRaster(IRaster pRaster, IArray pStatsHistograms)
          Computes stats and histogram from a given Raster.
 void computeFromRaster(IRaster pRaster, int iBand, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given Raster.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void loadFromRasterBand(IRasterBand pBand, Object noData, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given RasterBand.
 
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

RasterCalcStatsHistogram

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

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

RasterCalcStatsHistogram

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

Construct a RasterCalcStatsHistogram using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterCalcStatsHistogram.

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

computeFromRaster

public void computeFromRaster(IRaster pRaster,
                              int iBand,
                              IStatsHistogram pStatsHistogram)
                       throws IOException,
                              AutomationException
Computes stats and histogram from a given Raster.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
computeFromRaster in interface IRasterCalcStatsHistogram
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
iBand - The iBand (in)
pStatsHistogram - A reference to a com.esri.arcgis.datasourcesraster.IStatsHistogram (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadFromRasterBand

public void loadFromRasterBand(IRasterBand pBand,
                               Object noData,
                               IStatsHistogram pStatsHistogram)
                        throws IOException,
                               AutomationException
Computes stats and histogram from a given RasterBand.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
loadFromRasterBand in interface IRasterCalcStatsHistogram
Parameters:
pBand - A reference to a com.esri.arcgis.datasourcesraster.IRasterBand (in)
noData - A Variant (in)
pStatsHistogram - A reference to a com.esri.arcgis.datasourcesraster.IStatsHistogram (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

computeAllFromRaster

public void computeAllFromRaster(IRaster pRaster,
                                 IArray pStatsHistograms)
                          throws IOException,
                                 AutomationException
Computes stats and histogram from a given Raster.

Product Availability

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

Specified by:
computeAllFromRaster in interface IRasterCalcStatsHistogram2
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
pStatsHistograms - A reference to a com.esri.arcgis.system.IArray (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.