IRasterWorkspace Interface

Provides access to members that control a raster workspace.

Members

Name Description
Method CanCopy Indicates if this dataset can be copied.
Method Copy Copies this workspace to a new workspace with the specified name.
Method CreateRasterBand Creates a RasterBand in the workspace given its name.
Method CreateRasterDataset Creates a RasterDataset in the workspace given its name.
Method IsWorkspace Indicates if the file path specified is a raster workspace.
Method OpenRasterBand Opens a RasterBand in the workspace given its name.
Method OpenRasterDataset Opens a RasterDataset in the workspace given its name.

IRasterWorkspace.CanCopy Method

Indicates if this dataset can be copied.

Public Function CanCopy ( _
) As Boolean
public bool CanCopy (
);

IRasterWorkspace.Copy Method

Copies this workspace to a new workspace with the specified name.

Public Function Copy ( _
    ByVal copyName As String, _
    ByVal copyWorkspace As IWorkspace _
) As IDataset
public IDataset Copy (
    string copyName,
    IWorkspace copyWorkspace
);

IRasterWorkspace.CreateRasterBand Method

Creates a RasterBand in the workspace given its name.

Public Function CreateRasterBand ( _
    ByVal Name As String _
) As IRasterBand
public IRasterBand CreateRasterBand (
    string Name
);

IRasterWorkspace.CreateRasterDataset Method

Creates a RasterDataset in the workspace given its name.

Public Function CreateRasterDataset ( _
    ByVal Name As String _
) As IRasterDataset
public IRasterDataset CreateRasterDataset (
    string 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, BMP, ERDAS Imagine, and in memory raster. The strings used to specify formats are "GRID", "TIFF", "BMP", "IMAGINE Image", 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 should be an empty string.

IRasterWorkspace.IsWorkspace Method

Indicates if the file path specified is a raster workspace.

Public Function IsWorkspace ( _
    ByVal Name As String _
) As Boolean
public bool IsWorkspace (
    string Name
);

IRasterWorkspace.OpenRasterBand Method

Opens a RasterBand in the workspace given its name.

Public Function OpenRasterBand ( _
    ByVal Name As String _
) As IRasterBand
public IRasterBand OpenRasterBand (
    string Name
);

IRasterWorkspace.OpenRasterDataset Method

Opens a RasterDataset in the workspace given its name.

Public Function OpenRasterDataset ( _
    ByVal Name As String _
) As IRasterDataset
public IRasterDataset OpenRasterDataset (
    string Name
);

Classes that implement IRasterWorkspace

Classes Description
RasterWorkspace The raster workspace object.

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 create a raster dataset in a file format, use IRasterWorkspace2 interface in the Geodatabase library

To access raster from geodatabase, use IRasterWorkspaceEx interface.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.