LuciadCPillar C# 2023.1.04
Luciad.Maps.Map.HeightProvider Class Reference

A height provider based on the map layers order and visibility. More...

Inheritance diagram for Luciad.Maps.Map.HeightProvider:

Public Member Functions

void Dispose ()
 
double? RetrieveHeightAt (Luciad.Cartesian.Coordinate pixelCoordinate, bool interpolate)
 Return an elevation value at a specified pixel that corresponds with what is visible on the map. More...
 

Detailed Description

A height provider based on the map layers order and visibility.

This class is thread safe. Related article: Retrieving height data. Related article: Retrieving height data. 2023.0

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::HeightProvider.

Member Function Documentation

◆ Dispose()

void Luciad.Maps.Map.HeightProvider.Dispose ( )
inline

◆ RetrieveHeightAt()

double Luciad.Maps.Map.HeightProvider.RetrieveHeightAt ( Luciad.Cartesian.Coordinate  pixelCoordinate,
bool  interpolate 
)
inline

Return an elevation value at a specified pixel that corresponds with what is visible on the map.

The ´Map::HeightProvider´ loops over all the visible elevation raster model loaded on the map in a top to bottom fashion in search for elevation data. It Looks for the first model with a tile in the underlying raster data covering the specified pixel point. The pixel density used for the retrieveHeightAt call is based on the camera position and pixel queried. if elevation data is found it will be returned in the map reference unit of measure, std::nullopt otherwise. Using interpolation makes sure that neighbouring height values form a smoother curve.

pixelCoordinate

The pixel for which the height is requested. in device independent pixels coordinate.

interpolate

bilinear interpolation is used if true, nearest neighbour if false. Enabling bilinear interpolation results in a smoother curve for neighboring samples, at the cost of a minor performance decrease.

the height expressed in the map reference unit of measure, or std::nullopt if no data is available for this pixel coordinate.

this method is thread safe, you can call it from any thread.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::HeightProvider::retrieveHeightAt.