public final class DtedModelDecoder extends Object
IRasterModel
implementation that can read DTED (Digital Terrain Elevation Data).
See DtedModelDecoder#decode
for more details.
Modifier and Type | Class and Description |
---|---|
static class |
DtedModelDecoder.Options
Options for decoding DTED.
|
Modifier and Type | Method and Description |
---|---|
static IRasterModel |
decode(String source)
This method decodes:
|
static IRasterModel |
decode(String source,
DtedModelDecoder.Options options)
This method decodes:
|
@NotNull public static IRasterModel decode(@NotNull String source, @NotNull DtedModelDecoder.Options options) throws IOException
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. |
var source = "Alps/dted/e008/n43.dt0";
try {
IRasterModel model = DtedModelDecoder.decode(source);
// ...
} catch (IOException exception) {
Log.w("DTED", "Failed to decode source '" + source + "': " + exception.getMessage());
}
source
- The absolute path to the file or directory.options
- Options
for decoding DTED.IOException
- when decoding the source file fails.@NotNull public static IRasterModel decode(@NotNull String source) throws IOException
source
- The absolute path to the file or directory.IOException
- when decoding the source file fails.decode(const std#string&, const Options&)