libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::SRTM Class Reference

Read elevation data in hgt format. More...

#include <SRTM.h>

Public Member Functions

int32_t GetHeightAtLocation (const GeoCoord &coord)
 return the height at (latitude,longitude) or SRTM::nodata if no data at the location
SRTMDataRef GetHeightInBoundingBox (const GeoBox &boundingBox)
 SRTM (const std::string &path)
virtual ~SRTM ()

Static Public Attributes

static const int32_t nodata =-32768

Detailed Description

Read elevation data in hgt format.

Constructor & Destructor Documentation

◆ SRTM()

osmscout::SRTM::SRTM ( const std::string & path)
explicit

◆ ~SRTM()

osmscout::SRTM::~SRTM ( )
virtual

Member Function Documentation

◆ GetHeightAtLocation()

int32_t osmscout::SRTM::GetHeightAtLocation ( const GeoCoord & coord)

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

References osmscout::GeoCoord::GetDisplayText(), osmscout::GeoCoord::GetLat(), osmscout::GeoCoord::GetLon(), osmscout::log, and nodata.

◆ GetHeightInBoundingBox()

Member Data Documentation

◆ nodata

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

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