Class ConstantElevationAlgorithm

  • All Implemented Interfaces:
    IntersectionAlgorithm

    public class ConstantElevationAlgorithm
    extends Object
    implements IntersectionAlgorithm
    Intersection ignoring Digital Elevation Model.

    This implementation uses a constant elevation over the ellipsoid.

    Author:
    Luc Maisonobe, Guylaine Prat
    • Constructor Detail

      • ConstantElevationAlgorithm

        public ConstantElevationAlgorithm​(double constantElevation)
        Simple constructor.
        Parameters:
        constantElevation - constant elevation over ellipsoid
    • Method Detail

      • refineIntersection

        public NormalizedGeodeticPoint refineIntersection​(ExtendedEllipsoid ellipsoid,
                                                          Vector3D position,
                                                          Vector3D los,
                                                          NormalizedGeodeticPoint closeGuess)
        Refine intersection of line with Digital Elevation Model.

        This method is used to refine an intersection when a close guess is already known. The intersection is typically looked for by a direct cell intersection in the tile which already contains the close guess, or any similar very fast algorithm.

        Specified by:
        refineIntersection in interface IntersectionAlgorithm
        Parameters:
        ellipsoid - reference ellipsoid
        position - pixel position in ellipsoid frame
        los - pixel line-of-sight in ellipsoid frame
        closeGuess - guess close to the real intersection
        Returns:
        point at which the line first enters ground
      • getElevation

        public double getElevation​(double latitude,
                                   double longitude)
        Get elevation at a given ground point.

        As this algorithm uses a constant elevation, this method always returns the same value.

        Specified by:
        getElevation in interface IntersectionAlgorithm
        Parameters:
        latitude - ground point latitude
        longitude - ground point longitude
        Returns:
        elevation at specified point