| Maptitude GISDK Help |
Imports features from USGS Digital Line Graph files.
ImportDLG(array filenames, string new_db_name, string layer_type, 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 |
| layer_type | The type of features to import: "Point", "Line", or "Area" |
| Option | Type | Contents |
|---|---|---|
| Edge Snapping | Boolean | Whether to snap tile boundary nodes to better match features across tiles (defaults to "False") |
| Label | String | A descriptive label for the geographic file |
| Layer Name | String | The name of the layer in the geographic file |
| Median Split | Boolean | If "True" special handling insures that entities which cross the 180 degree longitude line are imported properly; if "False" (the default), no special handling is invoked |
| Node Layer Name | String | The desired name for the endpoint layer (only when importing a line layer) |
| Optimize | Boolean | Whether to optimize the geographic file automatically after the import (defaults to "True") |
| Raw Attributes | Boolean | Whether to skip postprocessing of known DLG file types to convert major and minor pairs into more usable attributes (defaults to "False") |
| Snap Distance | Real | Distance in miles to snap tile boundary nodes |
| 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 |
ImportDLG({"c:\\dlgfiles\\newton.OPT", "c:\\dlgfiles\\boston.OPT"}, "roads.dbd", "Line", {
{"Label", "Roads"},
{"Layer Name", "Road"},
{"Optimize", "True"},
{"Table Filename", "roads.bin"}
})
| Error Type | Meaning |
|---|---|
| NotFound | The specified file could not be found |
| Error | The file is not a valid Digital Line Graph file |
| Function | Summary |
|---|---|
| GetDLGInfo() | Collects summary information on the contents of a USGS Digital Line Graph file |
| ImportDEM() | Imports features from Digital Elevation Model files |
| ImportGIRAS() | Imports features from USGS Land Use and Land Cover files |
| ©2025 Caliper Corporation | www.caliper.com |