com.esri.arcgis.geoanalyst
Class RasterConvertHelper

java.lang.Object
  extended by com.esri.arcgis.geoanalyst.RasterConvertHelper
All Implemented Interfaces:
IRasterConvertHelper, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, Serializable

public class RasterConvertHelper
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterConvertHelper, ISupportErrorInfo

Raster conversion helper class.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RasterConvertHelper()
          Constructs a RasterConvertHelper using ArcGIS Engine.
RasterConvertHelper(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterConvertHelper theRasterConvertHelper = (RasterConvertHelper) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 IRaster toRaster1(IGeoDataset pIn1, String rasterFormat, IRasterAnalysisEnvironment rasterEnv)
          Converts a GeoDataset to a Raster.
 void toRaster2(IGeoDataset pIn1, IGeoDataset pIn2, String rasterFormat, IRasterAnalysisEnvironment rasterEnv, IRaster[] ppOut1, IRaster[] ppOut2)
          Converts two GeoDatasets to two Rasters.
 void toRaster3(IGeoDataset pIn1, IGeoDataset pIn2, IGeoDataset pIn3, String rasterFormat, IRasterAnalysisEnvironment rasterEnv, IRaster[] ppOut1, IRaster[] ppOut2, IRaster[] ppOut3)
          Converts three GeoDatasets to three Rasters.
 IFeatureClass toShapefile(IGeoDataset pIn, int geometryType, IRasterAnalysisEnvironment rasterEnv)
          Converts a GeoDataset to a shapefile.
 
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

RasterConvertHelper

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

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

RasterConvertHelper

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

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

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

toRaster1

public IRaster toRaster1(IGeoDataset pIn1,
                         String rasterFormat,
                         IRasterAnalysisEnvironment rasterEnv)
                  throws IOException,
                         AutomationException
Converts a GeoDataset to a Raster.

Remarks

rasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for rasterformat are "GRID", "IMAGINE Image" and "TIFF" respectively and they are case sensitive.

The format string “GRID” creates an output ESRI GRID with no file extension

The format string "TIFF" creates a TIFF file with ".tif" extension. ArcGIS also supports TIFF format with ".tiff" and ".tff" extensions. A format string "TIF" creates a TIFF file with ".tiff" extention and a format string "TFF" creates a TIFF file with ".tff" extension

The format string “IMAGINE Image” creates a raster output with “.img” file extension

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
toRaster1 in interface IRasterConvertHelper
Parameters:
pIn1 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
rasterFormat - The rasterFormat (in)
rasterEnv - A reference to a com.esri.arcgis.geoanalyst.IRasterAnalysisEnvironment (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRaster
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toRaster2

public void toRaster2(IGeoDataset pIn1,
                      IGeoDataset pIn2,
                      String rasterFormat,
                      IRasterAnalysisEnvironment rasterEnv,
                      IRaster[] ppOut1,
                      IRaster[] ppOut2)
               throws IOException,
                      AutomationException
Converts two GeoDatasets to two Rasters.

Remarks

rasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for rasterformat are "GRID", "IMAGINE Image" and "TIFF" respectively and they are case sensitive.

The format string “GRID” creates an output ESRI GRID with no file extension

The format string "TIFF" creates a TIFF file with ".tif" extension. ArcGIS also supports TIFF format with ".tiff" and ".tff" extensions. A format string "TIF" creates a TIFF file with ".tiff" extention and a format string "TFF" creates a TIFF file with ".tff" extension

The format string “IMAGINE Image” creates a raster output with “.img” file extension

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
toRaster2 in interface IRasterConvertHelper
Parameters:
pIn1 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
pIn2 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
rasterFormat - The rasterFormat (in)
rasterEnv - A reference to a com.esri.arcgis.geoanalyst.IRasterAnalysisEnvironment (in)
ppOut1 - A reference to a com.esri.arcgis.geodatabase.IRaster (out: use single element array)
ppOut2 - A reference to a com.esri.arcgis.geodatabase.IRaster (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toRaster3

public void toRaster3(IGeoDataset pIn1,
                      IGeoDataset pIn2,
                      IGeoDataset pIn3,
                      String rasterFormat,
                      IRasterAnalysisEnvironment rasterEnv,
                      IRaster[] ppOut1,
                      IRaster[] ppOut2,
                      IRaster[] ppOut3)
               throws IOException,
                      AutomationException
Converts three GeoDatasets to three Rasters.

Remarks

rasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for rasterformat are "GRID", "IMAGINE Image" and "TIFF" respectively and they are case sensitive.

The format string “GRID” creates an output ESRI GRID with no file extension

The format string "TIFF" creates a TIFF file with ".tif" extension. ArcGIS also supports TIFF format with ".tiff" and ".tff" extensions. A format string "TIF" creates a TIFF file with ".tiff" extention and a format string "TFF" creates a TIFF file with ".tff" extension

The format string “IMAGINE Image” creates a raster output with “.img” file extension

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
toRaster3 in interface IRasterConvertHelper
Parameters:
pIn1 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
pIn2 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
pIn3 - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
rasterFormat - The rasterFormat (in)
rasterEnv - A reference to a com.esri.arcgis.geoanalyst.IRasterAnalysisEnvironment (in)
ppOut1 - A reference to a com.esri.arcgis.geodatabase.IRaster (out: use single element array)
ppOut2 - A reference to a com.esri.arcgis.geodatabase.IRaster (out: use single element array)
ppOut3 - A reference to a com.esri.arcgis.geodatabase.IRaster (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toShapefile

public IFeatureClass toShapefile(IGeoDataset pIn,
                                 int geometryType,
                                 IRasterAnalysisEnvironment rasterEnv)
                          throws IOException,
                                 AutomationException
Converts a GeoDataset to a shapefile.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
toShapefile in interface IRasterConvertHelper
Parameters:
pIn - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
geometryType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
rasterEnv - A reference to a com.esri.arcgis.geoanalyst.IRasterAnalysisEnvironment (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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