ArcObjects Library Reference (GeoAnalyst)  

IRasterConvertHelper.ToRaster1 Method

Converts a GeoDataset to a Raster.

[Visual Basic .NET]
Public Function ToRaster1 ( _
    ByVal pIn1 As IGeoDataset, _
    ByVal rasterFormat As String, _
    ByVal rasterEnv As IRasterAnalysisEnvironment _
) As IRaster
[C#]
public IRaster ToRaster1 (
    IGeoDataset pIn1,
    string rasterFormat,
    IRasterAnalysisEnvironment rasterEnv
);
[C++]
HRESULT ToRaster1(
  IGeoDataset* pIn1,
  BSTR rasterFormat,
  IRasterAnalysisEnvironment* rasterEnv,
  IRaster** ppOut
);
[C++]

Parameters

pIn1 [in]

  pIn1 is a parameter of type IGeoDataset

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

  rasterEnv is a parameter of type IRasterAnalysisEnvironment

ppOut [out, retval]

  ppOut is a parameter of type IRaster

Product Availability

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

Remarks

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

See Also

IRasterConvertHelper Interface