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


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

IRasterWorkspace4.CreateRasterDataset Method

Creates a RasterDataset in the workspace given its name.

[Visual Basic .NET]
Public Function CreateRasterDataset ( _
    ByVal Name As String, _
    ByVal Format As String, _
    ByVal pOrigin As IPoint, _
    ByVal nCols As Integer, _
    ByVal nRows As Integer, _
    ByVal dx As Double, _
    ByVal dy As Double, _
    ByVal nBands As Integer, _
    ByVal PixelType As rstPixelType, _
    ByVal SpatialReference As ISpatialReference, _
    ByVal Permanent As Boolean, _
    ByVal pStorageDef As IRasterStorageDef, _
    ByVal ConfigKeyword As String _
) As IRasterDataset
[C#]
public IRasterDataset CreateRasterDataset (
    string Name,
    string Format,
    IPoint pOrigin,
    int nCols,
    int nRows,
    double dx,
    double dy,
    int nBands,
    rstPixelType PixelType,
    ISpatialReference SpatialReference,
    bool Permanent,
    IRasterStorageDef pStorageDef,
    string ConfigKeyword
);
[C++]
HRESULT CreateRasterDataset(
  BSTR Name,
  BSTR Format,
  IPoint* pOrigin,
  long nCols,
  long nRows,
  double dx,
  double dy,
  long nBands,
  rstPixelType PixelType,
  ISpatialReference* SpatialReference,
  VARIANT_BOOL Permanent,
  IRasterStorageDef* pStorageDef,
  BSTR ConfigKeyword
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR Format [in]
Format is a parameter of type BSTR pOrigin [in]
pOrigin is a parameter of type IPoint* nCols [in]
nCols is a parameter of type long nRows [in]
nRows is a parameter of type long dx [in]
dx is a parameter of type double dy [in]
dy is a parameter of type double nBands [in]
nBands is a parameter of type long PixelType [in]
PixelType is a parameter of type rstPixelType SpatialReference [in]
SpatialReference is a parameter of type ISpatialReference* Permanent [in]
Permanent is a parameter of type bool pStorageDef [in]
pStorageDef is a parameter of type IRasterStorageDef* ConfigKeyword [in]
ConfigKeyword is a parameter of type BSTR

Product Availability

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

See Also

IRasterWorkspace4 Interface