com.esri.arcgis.datasourcesraster
Class IRasterWorkspaceProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.datasourcesraster.IRasterWorkspaceProxy
All Implemented Interfaces:
IRasterWorkspace, Externalizable, Serializable

public class IRasterWorkspaceProxy
extends com.esri.arcgis.interop.Dispatch
implements IRasterWorkspace, Serializable

Provides access to members that control a raster workspace.

Superseded By

IRasterWorkspace2

Remarks

IRasterWorspace is used to access a raster stored in a file system in any supported raster format. RasterWorkspaceFactory must be used to create a raster workspace.

To access raster from geodatabase, use IRasterWorkspaceEx interface.

Example:

// Create RasterWorkspaceFactory
IWorkspaceFactory rasWkspFactory = new RasterWorkspaceFactory();
// Get RasterWorkspace
IRasterWorkspace rasWksp =
new IRasterWorkspaceProxy(rasWkspFactory.openFromFile( aPath, 0 ) );

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
  IRasterWorkspaceProxy()
           
  IRasterWorkspaceProxy(Object obj)
           
protected IRasterWorkspaceProxy(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.
 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

IRasterWorkspaceProxy

public IRasterWorkspaceProxy()

IRasterWorkspaceProxy

public IRasterWorkspaceProxy(Object obj)
                      throws IOException
Throws:
IOException

IRasterWorkspaceProxy

protected IRasterWorkspaceProxy(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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
openRasterDataset in interface IRasterWorkspace
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.

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 IRasterWorkspace
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 IRasterWorkspace
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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
copy in interface IRasterWorkspace
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.