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


IRasterConvertHelper.ToRaster1 Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IR > IRasterConvertHelper Interface > IRasterConvertHelper.ToRaster1 Method
ArcGIS Developer Help

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
);
[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*

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