DTED

class DTED

Cross-platform DTED (MIL-PRF-89020B) reader: decodes the UHL/DSI/ACC header and per-column elevation records into a row-major, NW-origin grid (row 0 = north, col 0 = west). The null sentinel -32767 and out-of-[-12000,+9000] values normalise to Short.MIN_VALUE. Entry points: parse (full, in-memory), readMetadata (header only ~3.4 KB), and JVM read(file) overloads (streaming, ~7 KB peak vs ~26 MB).

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Metadata(val sector: Sector, val origin: Location, val width: Int, val height: Int, val level: Int?, val classLevel: String?)

Properties

Link copied to clipboard

Security classification when present in the UHL or DSI record.

Link copied to clipboard

Row-major grid, north→south / west→east; missing posts are Short.MIN_VALUE.

Link copied to clipboard
val height: Int

Number of latitude posts (rows).

Link copied to clipboard
val level: Int?

DTED series level (0, 1, or 2) when present in the DSI record.

Link copied to clipboard

Highest valid elevation in metres, or 0.0 if the tile has no valid posts.

Link copied to clipboard

Header-only view (sector, dimensions, level, classification).

Link copied to clipboard

Lowest valid elevation in metres, or 0.0 if the tile has no valid posts.

Link copied to clipboard

North-west corner (WorldWind's "origin" convention).

Link copied to clipboard

Geographic extent; DTED tiles are always 1°×1° with a SW-corner origin.

Link copied to clipboard
val width: Int

Number of longitude posts (columns).