Package com.luciad.util.height
Class TLcdRasterHeightProvider
java.lang.Object
com.luciad.util.height.TLcdRasterHeightProvider
- All Implemented Interfaces:
ILcdBounded,ILcdHeightProvider
This height provider retrieves its heights from a given raster.
- Since:
- 9.1
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdRasterHeightProvider(ILcdRaster aRaster) Creates a new height provider based on the given raster.TLcdRasterHeightProvider(ILcdRaster aRaster, int aMinValidHeight, int aMaxValidHeight) Creates a new height provider based on the given raster. -
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.doubleretrieveHeightAt(ILcdPoint aPoint) Returns the height at the given point.
-
Constructor Details
-
TLcdRasterHeightProvider
Creates a new height provider based on the given raster. Raster heights outside the range of -12000 to 10000 are returned as invalid (Double.NaN).- Parameters:
aRaster- the raster from which the heights will be retrieved.
-
TLcdRasterHeightProvider
Creates a new height provider based on the given raster. Raster heights outside the given range are returned as invalid (Double.NaN).- Parameters:
aRaster- the raster from which the heights will be retrieved.aMinValidHeight- the minimum valid height.aMaxValidHeight- the maximum valid height.
-
-
Method Details
-
retrieveHeightAt
Description copied from interface:ILcdHeightProviderReturns the height at the given point.- Specified by:
retrieveHeightAtin interfaceILcdHeightProvider- Parameters:
aPoint- a 2D point, in the horizontal reference that is determined by the implementation.- Returns:
- the elevation at the given point, in the vertical reference that
is determined by the implementation. The value may also be
Double.NaN, if the elevation is not known.
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-