libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::SRTM Class Reference

Read elevation data in hgt format. More...

#include <SRTM.h>

Public Member Functions

int heightAtLocation (double latitude, double longitude)
 return the height at (latitude,longitude) or SRTM::nodata if no data at the location More...
 
 SRTM (const std::string &path)
 
const std::string & srtmFilename (int patchLat, int patchLon)
 generate SRTM3 filename like N43E006.hgt from integer part of latitude and longitude More...
 
virtual ~SRTM ()
 

Static Public Attributes

static size_t columns = SRTM3_GRID
 
static const int nodata = -32768
 
static size_t patchSize = 2*rows*columns
 
static size_t rows = SRTM3_GRID
 

Detailed Description

Read elevation data in hgt format.

Constructor & Destructor Documentation

osmscout::SRTM::SRTM ( const std::string &  path)
osmscout::SRTM::~SRTM ( )
virtual

Member Function Documentation

int osmscout::SRTM::heightAtLocation ( double  latitude,
double  longitude 
)

return the height at (latitude,longitude) or SRTM::nodata if no data at the location

References columns, osmscout::Log::Info(), osmscout::log, nodata, patchSize, rows, SRTM1_FILESIZE, SRTM1_GRID, SRTM3_FILESIZE, SRTM3_GRID, and srtmFilename().

const std::string & osmscout::SRTM::srtmFilename ( int  patchLat,
int  patchLon 
)

generate SRTM3 filename like N43E006.hgt from integer part of latitude and longitude

Referenced by heightAtLocation().

Member Data Documentation

size_t osmscout::SRTM::columns = SRTM3_GRID
static

Referenced by heightAtLocation().

const int osmscout::SRTM::nodata = -32768
static

Referenced by heightAtLocation().

size_t osmscout::SRTM::patchSize = 2*rows*columns
static

Referenced by heightAtLocation().

size_t osmscout::SRTM::rows = SRTM3_GRID
static

Referenced by heightAtLocation().


The documentation for this class was generated from the following files: