This document is archived and information here might be outdated. Recommended version. |
Creates a RasterDataset in the workspace given its name.
[Visual Basic .NET] Public Function CreateRasterDataset ( _ ByVal Name As String _ ) As IRasterDataset
[C#] public IRasterDataset CreateRasterDataset ( string Name );
[C++]
HRESULT CreateRasterDataset(
BSTR Name
);
[C++] Parameters Name [in]
Name is a parameter of type BSTR
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.