GetDEMInfo()

Summary

Collects summary information about a Digital Elevation Model file.

Syntax

dem_info = GetDEMInfo(string filename)

Argument Contents
filename The path and file name of the DEM file

Returns

An array of information as follows:

Element Type Contents
1 String Name of the DEM tile
2 Integer Data level
3 String Elevation units

Notes

  • ImportDEM() supports DTED files with file extensions .dt0, .dt1, and .dt2 for Levels 0, 1, and 2.

Example

// This call_
dem_info = GetDEMInfo("c:\\anchorag.dem")
// Returns this type of information_.
// dem_info = {
// "ANCHORAGE (C-7) SE, AK (STEREOMODEL)",
// 2,
// "Meters"
// }

Error Codes

Error Type Meaning
NotFound The specified file could not be found
Error The file is not a valid Digital Elevation Model file

See Also

Function Summary
GetDEMNeighbor() Returns the ID of a neighbor of a cell in a DEM
ImportDEM() Imports features from Digital Elevation Model files