KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Enumerations | Functions | Variables
nedget.h File Reference

interface for low-level NED reader functions More...

#include <m_cpp/m_matrix.h>
#include <string>
#include <deque>

Go to the source code of this file.

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 

Enumerations

enum  kjb::NED13_FLOAT_AUTODETECT { kjb::NED_AD_MSBFIRST, kjb::NED_AD_LSBFIRST, kjb::NED_AD_UNCERTAIN }
 

Functions

int kjb::get_ned_fdeq (const std::string &fn, std::deque< float > *odq, bool flip)
 read the floating-point values of a NED13 file into a deque. More...
 
int kjb::get_ned_fdeq (const std::string &fn, std::deque< float > *odq, enum NED13_FLOAT_AUTODETECT byteorder)
 read the floating-point values of a NED13 file into a deque. More...
 
int kjb::ned_fdeq_to_matrix (const std::deque< float > &ibuf, Matrix *omat)
 convert a deque of floats into a square kjb Matrix More...
 
int kjb::get_ned_matrix (const std::string &fn, Matrix *omat, bool flip)
 read the floating-point values of a NED13 file into a square matrix. More...
 
int kjb::get_ned_matrix (const std::string &fn, Matrix *omat, enum NED13_FLOAT_AUTODETECT byteorder)
 read the floating-point values of a NED13 file into a square matrix. More...
 
int kjb::autodetect_ned_byteorder (const std::string &fn, enum NED13_FLOAT_AUTODETECT *result)
 attempt to determine the byteorder of the input file. More...
 

Variables

const float kjb::NED_MISSING = -9999.0
 sentinel for missing elevation data More...
 
const float kjb::NED_MIN = -100
 Death Valley is -86 meters elevation. More...
 
const float kjb::NED_MAX = 7000
 Mt. McKinley is 6194 meters elevation. More...
 

Detailed Description

interface for low-level NED reader functions

Author
Andrew Predoehl

NED stands for the National Elevation Dataset, which is a family of GIS (Geographical Information Systems) databases of elevation data in the U.S.A., also known as a Digital Elevation Models (DEMs). There are a few NED databases, with different resolutions. The one used by FindTrails is NED13, which has one-third arcsecond resolution. NED13 data is available in grids that are approximately square, with an edge length of just over one degree. As of this writing, a number of such grids are located in /data_3/trails/ned_13as/original.