| Maptitude GISDK Help |
Imports features from Digital Elevation Model files.
ImportDEM(array filenames, string new_db_name, array options)
| Argument | Contents |
|---|---|
| filenames | An array containing the path and file names of the files to import |
| new_db_name | The path and file name of the new geographic file |
| Option | Type | Contents |
|---|---|---|
| Label | String | A descriptive label for the geographic file |
| Layer Name | String | The name of the layer in the geographic file |
| Optimize | Boolean | Whether to optimize the geographic file automatically after the import (defaults to "True") |
| Portion | String | "Whole", "Top" or "Bottom" for GTOPO30 files (defaults to Whole) |
| Table Filename | String | The path and file name in which attributes are stored; the file extension must be .BIN, .CSV, .DBF, or .TXT; a required option |
If the new geographic file is a standard (DBD) file, the DEM is imported into a point geographic file.If it is a compact (CDF) file, the DEM is imported into a grid geographic file.
ImportDEM() supports DTED files with file extensions .dt0, .dt1, and .dt2 for Levels 0, 1, and 2.
Elevation units are standardized to meters.
ImportDEM({"c:\\demfiles\\newton.DEM", "c:\\demfiles\\boston.DEM"}, "elevs.dbd", {
{"Label", "Elevations"},
{"Layer Name", "Elevation"},
{"Optimize", "True"},
{"Table Filename", "elevs.bin"}
})
| Error Type | Meaning |
|---|---|
| NotFound | The specified file could not be found |
| Error | The file is not a valid Digital Elevation Model file |
| Function | Summary |
|---|---|
| GetDEMInfo() | Collects summary information about a Digital Elevation Model file |
| GetDEMNeighbor() | Returns the ID of a neighbor of a cell in a DEM |
| ImportDLG() | Imports features from USGS Digital Line Graph files |
| ImportGIRAS() | Imports features from USGS Land Use and Land Cover files |
| ©2025 Caliper Corporation | www.caliper.com |