Package com.luciad.tea
Class TLcdFixedLevelBasedRasterElevationProvider
java.lang.Object
com.luciad.tea.ALcdTerrainElevationProvider
com.luciad.tea.ALcdRasterTerrainElevationProvider
com.luciad.tea.ALcdModelBasedTerrainElevationProvider
com.luciad.tea.TLcdFixedLevelBasedRasterElevationProvider
- All Implemented Interfaces:
ILcdAltitudeProvider
public class TLcdFixedLevelBasedRasterElevationProvider
extends ALcdModelBasedTerrainElevationProvider
This implementation of ALcdTerrainElevationProvider retrieves the elevation from a number
of Raster or MultiLevelRaster models. The raster level to use is set by setRasterLevel().
The default is level 1 (corresponds to DTED 0 for DTED rasters).
-
Constructor Summary
ConstructorsConstructorDescriptionDefines anALcdModelBasedTerrainElevationProviderwhich retrieves elevation values from the raster with the desired raster level. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the raster level used to retrieve elevation data.doubleretrieveElevationAt(ILcdPoint aModelPoint, ILcdGeoReference aModelPointReference) Returns the elevation for a given location, defined in meters above the geoid from the given location reference.voidsetRasterLevel(int aRasterLevel) Set the desired raster level for this elevation provider.Methods inherited from class com.luciad.tea.ALcdModelBasedTerrainElevationProvider
addModel, getModel, getModelCount, getPreferredReference, removeAllModels, removeModelMethods inherited from class com.luciad.tea.ALcdRasterTerrainElevationProvider
getMaximumValidRasterValue, getMinimumValidRasterValue, getOutOfRasterBoundsValue, getUnknownElevation, isValidRasterValue, setMaximumValidRasterValue, setMinimumValidRasterValue, setOutOfRasterBoundsValue, setUnknownElevationMethods inherited from class com.luciad.tea.ALcdTerrainElevationProvider
getAltitudeDescriptor, getAltitudeMode, isValidElevation, retrieveAltitudeAt
-
Constructor Details
-
TLcdFixedLevelBasedRasterElevationProvider
public TLcdFixedLevelBasedRasterElevationProvider()Defines anALcdModelBasedTerrainElevationProviderwhich retrieves elevation values from the raster with the desired raster level.
-
-
Method Details
-
retrieveElevationAt
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_INFINITYandDouble.POSITIVE_INFINITYcan also be used as special values.This implementations uses the raster with the desired raster level to retrieve the altitude value for the given location.
- Specified by:
retrieveElevationAtin classALcdTerrainElevationProvider- Parameters:
aModelPoint- The point indicating the location for which to retrieve the elevation.aModelPointReference- 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.
-
getRasterLevel
public int getRasterLevel()Returns the raster level used to retrieve elevation data.- Returns:
- the raster level used to retrieve elevation data.
-
setRasterLevel
public void setRasterLevel(int aRasterLevel) Set the desired raster level for this elevation provider.- Parameters:
aRasterLevel- The desired raster level.
-