This document is archived and information here might be outdated.  Recommended version.

IRasterWorkspace.CreateRasterDataset Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterWorkspace Interface > IRasterWorkspace.CreateRasterDataset Method
ArcGIS Developer Help

IRasterWorkspace.CreateRasterDataset Method

Creates a RasterDataset in the workspace given its name.

[Visual Basic .NET]
Public Function CreateRasterDataset ( _
    ByVal Name As String _
) As IRasterDataset
public IRasterDataset CreateRasterDataset (
    string Name
HRESULT CreateRasterDataset(
  BSTR Name
Name [in]

Name is a parameter of type BSTR

Product Availability

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


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.


See Also

IRasterWorkspace Interface