ArcObjects Library Reference (GeoAnalyst)  

IRasterImportOp2.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, _
    ByVal isInteger As Boolean, _
    [ByRef zFactor As Object] _
) As IRasterDataset
[C#]
public IRasterDataset ImportFromUSGSDEM (
    string demFile,
    IWorkspace OutWorkspace,
    string outRasterName,
    string OutRasterFormat,
    bool isInteger,
    ref object zFactor
);
[C#]

Optional Values

zFactor   To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT ImportFromUSGSDEM(
  BSTR demFile,
  IWorkspace* OutWorkspace,
  BSTR outRasterName,
  BSTR OutRasterFormat,
  VARIANT_BOOL isInteger,
  VARIANT* zFactor,
  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 isInteger [in]   isInteger is a parameter of type VARIANT_BOOL zFactor [optional]   zFactor is a parameter of type VARIANT

  To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

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

isInteger

A Boolean specifying the data type of the output raster

If TRUE, an integer raster will be created

If FALSE, a floating-point raster will be created

[zFactor]

The number of ground x, y Units in one surface ZUnit

The geoDataset ZUnits are multiplied by the specified zFactor to adjust the output Raster ZUnits to another unit of measure. If no zFactor is specified the value of the zFactor is 1. Higher z values will result in a more exaggerated relief (surface) and thus in a more extreme shading.

See Also

IRasterImportOp2 Interface