9 #ifndef libosmscout_SRTM_h 10 #define libosmscout_SRTM_h 54 return heights[y*columns+x];
66 static const int32_t nodata=-32768;
70 std::string currentFilename;
71 osmscout::GeoBox fileBoundingBox;
78 bool AssureCorrectFileLoaded(
double latitude,
81 std::string CalculateHGTFilename(
int patchLat,
84 int32_t GetHeight(
size_t column,
size_t row)
const;
87 explicit SRTM(
const std::string& path);
91 int32_t GetHeightAtLocation(
const GeoCoord& coord);
92 SRTMDataRef GetHeightInBoundingBox(
const GeoBox& boundingBox);
std::shared_ptr< SRTMData > SRTMDataRef
Definition: SRTM.h:58
GeoBox boundingBox
Definition: SRTM.h:47
int32_t GetHeight(size_t x, size_t y) const
Definition: SRTM.h:52
std::vector< int32_t > heights
Definition: SRTM.h:50
#define OSMSCOUT_API
Definition: CoreImportExport.h:45
size_t columns
Definition: SRTM.h:49
size_t rows
Definition: SRTM.h:48
std::shared_ptr< SRTM > SRTMRef
Definition: SRTM.h:95