com.esri.arcgis.geodatabase
Class IRasterWorkspace2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IRasterWorkspace2Proxy
All Implemented Interfaces:
IRasterWorkspace2, Externalizable, Serializable

public class IRasterWorkspace2Proxy
extends com.esri.arcgis.interop.Dispatch
implements IRasterWorkspace2, Serializable

Provides access to members that control an improved raster workspace.

Remarks

IRasterWorspace2 is used to access a raster stored in a file system in any supported raster format. To access raster from geodtabase, use IRasterWorkspaceEx interface.

When To Use

IRasterWorkspace2 interface allows to create a raster dataset in addition to the functionalities provided by the IRasterWorkspace interface.

Product Availability

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

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IRasterWorkspace2Proxy()
           
  IRasterWorkspace2Proxy(Object obj)
           
protected IRasterWorkspace2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 boolean canCopy()
          Indicates if this dataset can be copied.
 IDataset copy(String copyName, IWorkspace copyWorkspace)
          Copies this workspace to a new workspace with the specified name.
 IRasterDataset createRasterDataset(String name, String format, IPoint origin, int columnCount, int rowCount, double cellSizeX, double cellSizeY, int numBands, int pixelType, ISpatialReference spatialReference, boolean permanent)
          Creates a RasterDataset in the workspace given its name.
 boolean isWorkspace(String name)
          Indicates if the file path specified is a raster workspace.
 IRasterDataset openRasterDataset(String name)
          Opens a RasterDataset in the workspace given its name.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IRasterWorkspace2Proxy

public IRasterWorkspace2Proxy()

IRasterWorkspace2Proxy

public IRasterWorkspace2Proxy(Object obj)
                       throws IOException
Throws:
IOException

IRasterWorkspace2Proxy

protected IRasterWorkspace2Proxy(Object obj,
                                 String iid)
                          throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

openRasterDataset

public IRasterDataset openRasterDataset(String name)
                                 throws IOException,
                                        AutomationException
Opens a RasterDataset in the workspace given its name.

Remarks

OpenRasterDataset opens a RasterDataset from a supported file based raster format, such as GRID, Imagine, BMP, TIFF, etc.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
openRasterDataset in interface IRasterWorkspace2
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createRasterDataset

public IRasterDataset createRasterDataset(String name,
                                          String format,
                                          IPoint origin,
                                          int columnCount,
                                          int rowCount,
                                          double cellSizeX,
                                          double cellSizeY,
                                          int numBands,
                                          int pixelType,
                                          ISpatialReference spatialReference,
                                          boolean permanent)
                                   throws IOException,
                                          AutomationException
Creates a RasterDataset in the workspace given its name.

Remarks

CreateRasterDataset creates a file based raster dataset, the origin, width, and height of the raster dataset must be specified along with other required parameters, the raster dataset with the specified dimension and default pixel values will be created . The default pixel values of the raster dataset can be modified by writting pixel blocks to the dataset or mosaicking.

CreateRasterDataset can be used to create GRID, TIFF, ERDAS Imagine,BMP, Idrisi format, and in memory raster. The strings used to specify formats are "GRID", "TIFF", "IMAGINE Image", "BMP", "RST", and "MEM" respectively. The strings are case-sensitive.

For GRID format, CreateRasterDataset only allows square cell size.

When creating an in memory raster, the file name can be an empty string.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
createRasterDataset in interface IRasterWorkspace2
Parameters:
name - The name (in)
format - The format (in)
origin - A reference to a com.esri.arcgis.geometry.IPoint (in)
columnCount - The columnCount (in)
rowCount - The rowCount (in)
cellSizeX - The cellSizeX (in)
cellSizeY - The cellSizeY (in)
numBands - The numBands (in)
pixelType - A com.esri.arcgis.geodatabase.rstPixelType constant (in)
spatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in, optional, pass 0 if not required)
permanent - The permanent (in, optional, pass true if not required)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isWorkspace

public boolean isWorkspace(String name)
                    throws IOException,
                           AutomationException
Indicates if the file path specified is a raster workspace.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isWorkspace in interface IRasterWorkspace2
Parameters:
name - The name (in)
Returns:
The isWorkspace
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canCopy

public boolean canCopy()
                throws IOException,
                       AutomationException
Indicates if this dataset can be copied.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
canCopy in interface IRasterWorkspace2
Returns:
The canCopy
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

copy

public IDataset copy(String copyName,
                     IWorkspace copyWorkspace)
              throws IOException,
                     AutomationException
Copies this workspace to a new workspace with the specified name.

Remarks

Not implemented.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
copy in interface IRasterWorkspace2
Parameters:
copyName - The copyName (in)
copyWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.