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
ConstructorsConstructorDescriptionTLcdHeightProviderAdapter(ILcdHeightProvider aHeightProvider, ILcdGeoReference aReference) Create en newTLcdHeightProviderAdapterusing the givenILcdHeightProvider. -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred reference for this terrain elevation provider.doubleretrieveElevationAt(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 newTLcdHeightProviderAdapterusing the givenILcdHeightProvider.- Parameters:
aHeightProvider- theILcdHeightProviderto be wrapped.aReference- the reference in which theILcdHeightProvideris defined.
-
-
Method Details
-
retrieveElevationAt
Description copied from class:ALcdTerrainElevationProviderReturns 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_INFINITYandDouble.POSITIVE_INFINITYcan also be used as special values.- Specified by:
retrieveElevationAtin 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:ALcdTerrainElevationProviderReturns 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 returnnullif no preferred reference is available.- Specified by:
getPreferredReferencein interfaceILcdAltitudeProvider- Overrides:
getPreferredReferencein classALcdTerrainElevationProvider- Returns:
- the preferred reference of this terrain elevation provider. Note that
nullcan be returned if no preferred reference is available. - See Also:
-