Package com.luciad.tea
Class TLcdHeightProviderAdapter
java.lang.Object
com.luciad.tea.ALcdTerrainElevationProvider
com.luciad.tea.TLcdHeightProviderAdapter
- All Implemented Interfaces:
ILcdAltitudeProvider
This class wraps an
ILcdHeightProvider
to implement the
ILcdAltitudeProvide
interface.- Since:
- 9.1
-
Constructor Summary
ConstructorDescriptionTLcdHeightProviderAdapter
(ILcdHeightProvider aHeightProvider, ILcdGeoReference aReference) Create en newTLcdHeightProviderAdapter
using the givenILcdHeightProvider
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred reference for this terrain elevation provider.double
retrieveElevationAt
(ILcdPoint aPoint, ILcdGeoReference aPointReference) Returns the elevation for a given location, defined in meters above the geoid from the given location reference.Methods inherited from class com.luciad.tea.ALcdTerrainElevationProvider
getAltitudeDescriptor, getAltitudeMode, isValidElevation, retrieveAltitudeAt
-
Constructor Details
-
TLcdHeightProviderAdapter
Create en newTLcdHeightProviderAdapter
using the givenILcdHeightProvider
.- Parameters:
aHeightProvider
- theILcdHeightProvider
to be wrapped.aReference
- the reference in which theILcdHeightProvider
is defined.
-
-
Method Details
-
retrieveElevationAt
Description copied from class:ALcdTerrainElevationProvider
Returns the elevation for a given location, defined in meters above the geoid from the given location reference. Special elevation values should be interpreted as defined by the altitude descriptor (fromALcdTerrainElevationProvider.getAltitudeDescriptor()
). Keep in mind thatDouble.NaN
,Double.NEGATIVE_INFINITY
andDouble.POSITIVE_INFINITY
can also be used as special values.- Specified by:
retrieveElevationAt
in classALcdTerrainElevationProvider
- Parameters:
aPoint
- The point indicating the location for which to retrieve the elevation.aPointReference
- The reference in which the given location is defined. Note that the ellipsoid from this reference should be used to define the returning elevation value.- Returns:
- the elevation for a given location, defined in meters above the ellipsoid.
-
getPreferredReference
Description copied from class:ALcdTerrainElevationProvider
Returns the preferred reference for this terrain elevation provider. This reference is the reference with the best performance when used as a parameter in the methodALcdTerrainElevationProvider.retrieveElevationAt(ILcdPoint, ILcdGeoReference)
. It is perfectly correct to use points with other references. It will be faster to use the preferred. For performance reasons, the preferred reference should be the reference of the available elevation data to minimize the number of point transformations. By default, this method returnsnull
. Keep in mind that this function can returnnull
if no preferred reference is available.- Specified by:
getPreferredReference
in interfaceILcdAltitudeProvider
- Overrides:
getPreferredReference
in classALcdTerrainElevationProvider
- Returns:
- the preferred reference of this terrain elevation provider. Note that
null
can be returned if no preferred reference is available. - See Also:
-