public interface ILcdHeightProvider extends ILcdBounded
This interface can be used to retrieve height values from data like rasters, terrains with buildings, ...
ILcdHeightProvider
s are typically created by an
ILcdModelHeightProviderFactory
.
// Create a height provider factory.
ILcdModelHeightProviderFactory factory = ...
// Specify the desired properties for the height provider.
Map<String, Object> requiredProperties = ...
Map<String, Object> optionalProperties = ...
...
// Create a height provider from a model.
ILcdHeightProvider heightProvider =
factory.createHeightProvider(aModel, requiredProperties, optionalProperties);
// Retrieve height values using this height provider.
double height = heightProvider.retrieveHeightAt(new TLcdLonLatPoint(10.0, 20.0));
See also Retrieving height data for 2D points.
Modifier and Type | Method and Description |
---|---|
double |
retrieveHeightAt(ILcdPoint aPoint)
Returns the height at the given point.
|
getBounds
double retrieveHeightAt(ILcdPoint aPoint)
aPoint
- a 2D point, in the horizontal reference that is determined by
the implementation.Double.NaN
, if the elevation is not known.