LuciadCPillar C# 2024.0.01
Luciad.Formats.Dted.DtedModelDecoder Class Reference

This class can be used to create an IRasterModel implementation that can read DTED (Digital Terrain Elevation Data). More...

Classes

class  Options
 Options for decoding DTED. More...
 

Static Public Member Functions

static Luciad.Models.Rasters.IRasterModel Decode (string source)
 This method decodes: More...
 
static Luciad.Models.Rasters.IRasterModel Decode (string source, Luciad.Formats.Dted.DtedModelDecoder.Options options)
 This method decodes: More...
 

Detailed Description

This class can be used to create an IRasterModel implementation that can read DTED (Digital Terrain Elevation Data).

See DtedModelDecoder.Decode for more details.

Since
2023.0

Member Function Documentation

◆ Decode() [1/2]

static Luciad.Models.Rasters.IRasterModel Luciad.Formats.Dted.DtedModelDecoder.Decode ( string  source)
inlinestatic

This method decodes:

  • individual DTED (Digital Terrain Elevation Data) files.
  • directories containing DTED files.
  • DMED (Digital Mean Elevation Data) files and any available corresponding DTED files.
Parameters
sourceThe absolute path to the file or directory.
Returns
the decoded model for the source.
Exceptions
System.IO.IOExceptionwhen decoding the source file fails.
See also
decode(const std.string&, const Options&)

◆ Decode() [2/2]

static Luciad.Models.Rasters.IRasterModel Luciad.Formats.Dted.DtedModelDecoder.Decode ( string  source,
Luciad.Formats.Dted.DtedModelDecoder.Options  options 
)
inlinestatic

This method decodes:

  • individual DTED (Digital Terrain Elevation Data) files.
  • directories containing DTED files.
  • DMED (Digital Mean Elevation Data) files and any available corresponding DTED files.
Input files

When decoding individual DTED files:

File Entry point Description
*.dt[012] x DTED file corresponding to a single cell of 1 degree by 1 degree.

When decoding directories containing DTED files:

File Entry point Description
dted/[we]???/[sn]??.dt[012] x DTED directory containing DTED files.

When decoding DMED files and any available corresponding DTED files.

File Entry point Description
dmed x DMED file referring to DTED files.
dted/[we]???/[sn]??.dt[012] x DTED directory containing DTED files.
Model reference
  • All models returned by this model decoder have a geodetic reference system.
  • The geodetic datum of this reference is WGS72 or WGS84.
Supported versions and specifications

MIL-D-89020B, Digital Terrain Elevation Data (DTED), NIMA, 23 May 2000

Limitations
  • The geoid datum EGM96 is not currently supported. When visualized, elevation data are interpreted as ellipsoidal heights.
  • DMED files are only used to retrieve the MBR (minimum bounding rectangle) encompassing the DTED cells contained in the DTED directory. No DMED raster is produced by decoding DMED files.
Example usage:
var source = "Alps/dted/e008/n43.dt0";
try
{
IRasterModel model = DtedModelDecoder.Decode(source);
// ...
}
catch (IOException exception)
{
Console.Error.WriteLine("Failed to decode source '" + source + "': " + exception.Message);
}
This class can be used to create an IRasterModel implementation that can read DTED (Digital Terrain E...
Definition: DtedModelDecoder.cs:18
static Luciad.Models.Rasters.IRasterModel Decode(string source, Luciad.Formats.Dted.DtedModelDecoder.Options options)
This method decodes:
Definition: DtedModelDecoder.cs:119
Parameters
sourceThe absolute path to the file or directory.
optionsOptions for decoding DTED.
Returns
the decoded model for the source.
Exceptions
System.IO.IOExceptionwhen decoding the source file fails.