ArcObjects Library Reference (GeoAnalyst)  

IConversionOp.ToRasterDataset Method

Convert to a RasterDataset.

[Visual Basic .NET]
Public Function ToRasterDataset ( _
    ByVal dataset As IGeoDataset, _
    ByVal rasterFormat As String, _
    ByVal pWorkspace As IWorkspace, _
    ByVal name As String _
) As IRasterDataset
[C#]
public IRasterDataset ToRasterDataset (
    IGeoDataset dataset,
    string rasterFormat,
    IWorkspace pWorkspace,
    string name
);
[C++]
HRESULT ToRasterDataset(
  IGeoDataset* dataset,
  BSTR rasterFormat,
  IWorkspace* pWorkspace,
  BSTR name,
  IRasterDataset** rasterDataset
);
[C++]

Parameters

dataset [in]

  dataset is a parameter of type IGeoDataset

rasterFormat [in]   rasterFormat is a parameter of type BSTR pWorkspace [in]

  pWorkspace is a parameter of type IWorkspace

name [in]   name is a parameter of type BSTR rasterDataset [out, retval]

  rasterDataset is a parameter of type IRasterDataset

Product Availability

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

Remarks

dataset

Input featureclass, featureclassdescriptor, featurelayer to be converted to raster

rasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for rasterformat are "GRID", "IMAGINE Image" and "TIFF" respectively and they are case sensitive.

The format string GRID creates an output ESRI GRID with no file extension

The format string "TIFF" creates a TIFF file with ".tif" extension. ArcGIS also supports TIFF format with ".tiff" and ".tff" extensions. A format string "TIF" creates a TIFF file with ".tiff" extention and a format string "TFF" creates a TIFF file with ".tff" extension

The format string IMAGINE Image creates a raster output with .img file extension

pWorkspace

an object specifying the directory or subdirectory to contain the output rasterdataset

name

The name of the output raster dataset

See Also

IConversionOp Interface