Class Tile
Defined in File Tile.hpp
Class Documentation
This class represents a valid GDAL tile.
Public Functions
Constructor.
- Parameters
raster – the raster image for this GDAL tile.
Gets the elevation from a GDAL tile.
- Parameters
latitude – latitude value in degrees
longitude – longitude value in degrees
- Returns
A
pairshowing whether an elevation was found (.first) and iftrue, the elevation in meters above mean sea level (.second).
Gets the filename of the raster tile that is being accessed.
- Returns
The filename.
Check if the given coordinates are in the bounds of this tile.
- Parameters
latitude – latitude value in degrees
longitude – longitude value in degrees
- Returns
trueif the given coordinates are in the tile.
Remove the tile data from memory, if cached.
Friends
Overload insertion operator to print the tile’s data.
- Parameters
os – the
ostreamobjecttile – the tile to print
- Returns
The output stream
os.