Crates.io | dted |
lib.rs | dted |
version | 0.2.0 |
source | src |
created_at | 2019-02-17 01:26:56.433499 |
updated_at | 2021-09-01 20:50:47.981426 |
description | Tools for reading DTED files |
homepage | |
repository | https://github.com/fizyk20/dted.git |
max_upload_size | |
id | 115284 |
size | 25,991,232 |
This crate implements utilities for reading DTED (Digital Terrain Elevation Data) files.
Code reading a file and getting the terrain elevation at a given latitude and longitude would look like this:
use dted::read_dted;
let elev_data = read_dted("path/to/file.dt2").unwrap();
let elevation = elev_data.get_elev(latitude, longitude).unwrap(); // returns None if lat/lon are out of range