An ElevationService that provides terrain elevation data from GeoTIFF tiles, downloading and caching them locally for efficient sampling.
More...
|
|
static ElevationService * | s_primary_service |
| | The singleton primary elevation service instance.
|
An ElevationService that provides terrain elevation data from GeoTIFF tiles, downloading and caching them locally for efficient sampling.
Definition at line 101 of file GeoTiffElevationService.h.
◆ checkAndResolve()
| void GeoTiffElevationService::checkAndResolve |
( |
const UUID & | request_id | ) |
|
|
protected |
Checks if all tiles for a request are available and resolves it if so.
- Parameters
-
| [in] | request_id | The UUID of the request to check. |
◆ downloadTile()
| void GeoTiffElevationService::downloadTile |
( |
const TileKey & | key, |
|
|
LogPtr & | log ) |
|
protected |
Initiates downloading of a tile from the remote source.
- Parameters
-
| [in] | key | The tile to download. |
| [in] | log | The log for status messages. |
◆ loadTileFromDisk()
| bool GeoTiffElevationService::loadTileFromDisk |
( |
const TileKey & | key | ) |
|
|
protected |
Attempts to load a tile from the local disk cache.
- Parameters
-
- Returns
- True if the tile was loaded successfully.
◆ onTileDownloadedSlot()
| void GeoTiffElevationService::onTileDownloadedSlot |
( |
const TileKey & | key | ) |
|
|
protected |
Called when a tile download completes successfully.
- Parameters
-
| [in] | key | The downloaded tile key. |
◆ onTileDownloadFailedSlot()
| void GeoTiffElevationService::onTileDownloadFailedSlot |
( |
const TileKey & | key | ) |
|
|
protected |
Called when a tile download fails.
- Parameters
-
| [in] | key | The failed tile key. |
◆ postRequest()
| virtual void GeoTiffElevationService::postRequest |
( |
const ElevationRequest & | request | ) |
|
|
overridevirtual |
Submits an elevation request for asynchronous processing.
- Parameters
-
| [in] | request | The elevation request to process. |
Implements ElevationService.
◆ processRequest()
Processes an elevation request by loading or downloading required tiles.
- Parameters
-
| [in] | request | The elevation request to process. |
◆ requiredTiles()
Determines which tiles are needed to fulfill an elevation request.
- Parameters
-
| [in] | request | The elevation request. |
- Returns
- A buffer of required TileKey values.
◆ resolveRequest()
Resolves an elevation request by sampling loaded tiles.
- Parameters
-
| [in] | request | The request to resolve. |
◆ sampleElevation()
Samples the elevation value from a cached tile at a geographic coordinate.
- Parameters
-
| [in] | tile | The cached tile to sample from. |
| [in] | lat | The latitude in degrees. |
| [in] | lon | The longitude in degrees. |
- Returns
- The elevation value at the given coordinate.
◆ tileCachePath()
| File GeoTiffElevationService::tileCachePath |
( |
const TileKey & | key | ) |
const |
Returns the local cache file path for a given tile.
- Parameters
-
- Returns
- The local file path.
◆ TileKeyForCoord()
Computes the tile key for a given geographic coordinate.
- Parameters
-
| [in] | lat | The latitude in degrees. |
| [in] | lon | The longitude in degrees. |
- Returns
- The TileKey corresponding to the coordinate.
◆ tileName()
| String GeoTiffElevationService::tileName |
( |
const TileKey & | key | ) |
const |
Returns the human-readable name for a given tile.
- Parameters
-
- Returns
- The tile name string.
◆ tileUrl()
| String GeoTiffElevationService::tileUrl |
( |
const TileKey & | key | ) |
const |
Returns the download URL for a given tile.
- Parameters
-
- Returns
- The URL string.
The documentation for this class was generated from the following file: