com.esri.arcgis.datasourcesraster
Interface IRasterWorkspace

All Superinterfaces:
Serializable
All Known Implementing Classes:
IRasterWorkspaceProxy, RasterWorkspace

public interface IRasterWorkspace
extends 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.


Method Summary
 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.
 

Method Detail

openRasterDataset

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

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

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

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

canCopy

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

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

copy

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

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.