ArcObjects Library Reference (GeoAnalyst)  

IRasterImportOp.ImportFromUSGSDEM Method

Imports a USGS DEM file into a RasterDataset.

[Visual Basic .NET]
Public Function ImportFromUSGSDEM ( _
    ByVal demFile As String, _
    ByVal OutWorkspace As IWorkspace, _
    ByVal outRasterName As String, _
    ByVal OutRasterFormat As String _
) As IRasterDataset
[C#]
public IRasterDataset ImportFromUSGSDEM (
    string demFile,
    IWorkspace OutWorkspace,
    string outRasterName,
    string OutRasterFormat
);
[C++]
HRESULT ImportFromUSGSDEM(
  BSTR demFile,
  IWorkspace* OutWorkspace,
  BSTR outRasterName,
  BSTR OutRasterFormat,
  IRasterDataset** ppOut
);
[C++]

Parameters

demFile [in]   demFile is a parameter of type BSTR OutWorkspace [in]

  OutWorkspace is a parameter of type IWorkspace

outRasterName [in]   outRasterName is a parameter of type BSTR OutRasterFormat [in]   OutRasterFormat is a parameter of type BSTR ppOut [out, retval]

  ppOut is a parameter of type IRasterDataset

Product Availability

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

Remarks

demFile

The input USGS DEM file to be converted

OutWorkspace

An object specifying the directory or subdirectory to contain the output raster dataset

outRasterName

The name of the output raster dataset to be created

OutRasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for outRasterFormat 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

IRasterImportOp Interface