public class TLcdFixedLevelBasedRasterElevationProvider extends ALcdModelBasedTerrainElevationProvider
Constructor and Description |
---|
TLcdFixedLevelBasedRasterElevationProvider()
Defines an
ALcdModelBasedTerrainElevationProvider which retrieves
elevation values from the raster with the desired raster level. |
Modifier and Type | Method and Description |
---|---|
int |
getRasterLevel()
Returns the raster level used to retrieve elevation data.
|
double |
retrieveElevationAt(ILcdPoint aModelPoint,
ILcdGeoReference aModelPointReference)
Returns the elevation for a given location, defined in meters above the geoid
from the given location reference.
|
void |
setRasterLevel(int aRasterLevel)
Set the desired raster level for this elevation provider.
|
addModel, getModel, getModelCount, getPreferredReference, removeAllModels, removeModel
getMaximumValidRasterValue, getMinimumValidRasterValue, getOutOfRasterBoundsValue, getUnknownElevation, isValidRasterValue, setMaximumValidRasterValue, setMinimumValidRasterValue, setOutOfRasterBoundsValue, setUnknownElevation
getAltitudeDescriptor, getAltitudeMode, isValidElevation, retrieveAltitudeAt
public TLcdFixedLevelBasedRasterElevationProvider()
ALcdModelBasedTerrainElevationProvider
which retrieves
elevation values from the raster with the desired raster level.public double retrieveElevationAt(ILcdPoint aModelPoint, ILcdGeoReference aModelPointReference)
ALcdTerrainElevationProvider.getAltitudeDescriptor()
). Keep in mind that Double.NaN
,
Double.NEGATIVE_INFINITY
and Double.POSITIVE_INFINITY
can
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.
retrieveElevationAt
in class ALcdTerrainElevationProvider
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.public int getRasterLevel()
public void setRasterLevel(int aRasterLevel)
aRasterLevel
- The desired raster level.