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

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

#include <l_cpp/l_exception.h>
#include <m_cpp/m_matrix.h>
#include <topo_cpp/layer.h>
#include <string>
#include <deque>
#include <vector>
#include <algorithm>
#include <utility>
#include <boost/scoped_ptr.hpp>

Go to the source code of this file.

Classes

class  kjb::Ned13_one_degree_grid
 storage for a single NED13 grid tile, plus convenient access. More...
 
struct  kjb::Ned13_one_degree_grid::IntegralLL
 integer-valued, latitude-style and longitude-style coordinates More...
 
class  kjb::Ned13_grid_cache
 This caches a bunch (potentially) of one-degree grids for you. More...
 
struct  kjb::Ned13_caching_reader
 interface to an elevation-info object that caches its NED13 grids More...
 
struct  kjb::Ned13_nearest_se_neighbor_reader
 support NED 13 elevation queries by using nearest southeast neighbor More...
 
struct  kjb::Ned13_bilinear_reader
 support NED 13 elevation queries using bilinear interpolation More...
 
struct  kjb::Ned13_gp_reader
 

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 
 std
 

Functions

double kjb::delta_e_meters (const Ned13_one_degree_grid::IntegralLL &)
 distance, in meters, of the next grid point to the east More...
 
double kjb::delta_n_meters (const Ned13_one_degree_grid::IntegralLL &)
 distance, in meters, of the next grid point to the north More...
 
std::pair< double, double > kjb::delta_n_e_meters (const Ned13_one_degree_grid::IntegralLL &)
 distances, in meters, of next grid pt north (first), east (second) More...
 
TopoFusion::pt kjb::ned13_ill_to_utm (const Ned13_one_degree_grid::IntegralLL &)
 convert to UTM coordinates (no elevation) More...
 
GILL kjb::utm_to_se_ned13_ill (const TopoFusion::pt &p)
 convert from UTM coord to grid location, truncating to the southeast More...
 
bool kjb::operator== (const Ned13_one_degree_grid::IntegralLL &p, const Ned13_one_degree_grid::IntegralLL &q)
 test two coordinate locations for equality More...
 
bool kjb::operator< (const kjb::Ned13_one_degree_grid::IntegralLL &p, const kjb::Ned13_one_degree_grid::IntegralLL &q)
 impose an order on coordinate locations (geographically silly). More...
 
Ned13_one_degree_grid::IntegralLL kjb::round_nw_to_whole_degrees (const Ned13_one_degree_grid::IntegralLL &)
 
int kjb::ned13_grid (const TopoFusion::pt &center, Matrix *elev_o, Matrix *elev_de_o, Matrix *elev_dn_o, int eastwest_size_meters=2000, int northsouth_size_meters=2000, int resolution_meters=1, Ned13_caching_reader *cache=0, const std::vector< std::string > &path=std::vector< std::string >())
 generate a grid describing an elevation model near some location More...
 
Matrix kjb::ned13_grid (const TopoFusion::pt &center, int eastwest_size_meters=2000, int northsouth_size_meters=2000, int resolution_meters=1, Ned13_caching_reader *cache=0, const std::vector< std::string > &path=std::vector< std::string >())
 generate a grid of elevation values between points at a location More...
 
TopoFusion::pt kjb::dem_to_doq_displacement (const TopoFusion::pt &dem_p)
 return correction factor between DEM and DOQ coordinate systems. More...
 
void kjb::set_spy_filename (const std::string &)
 
TopoFusion::pt kjb::force_zone_to_this (const TopoFusion::pt &, char use_this_zone)
 
void std::swap (kjb::Ned13_one_degree_grid &p, kjb::Ned13_one_degree_grid &q)
 

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.