Class GeoApproximation


  • public final class GeoApproximation
    extends Object
    Approximates the x(lat, lon) and y(lat, lon) functions.

    This class does not belong to the public API.

    • Method Detail

      • createApproximations

        public static GeoApproximation[] createApproximations​(javax.media.jai.PlanarImage lonImage,
                                                              javax.media.jai.PlanarImage latImage,
                                                              javax.media.jai.PlanarImage maskImage,
                                                              double accuracy)
      • getFX

        public RationalFunctionModel getFX()
        Returns the (approximation to) the x(lat, lon) function.
        Returns:
        the (approximation to) the x(lat, lon) function.
      • getFY

        public RationalFunctionModel getFY()
        Returns the (approximation to) the y(lat, lon) function.
        Returns:
        the (approximation to) the y(lat, lon) function.
      • getMaxDistance

        public double getMaxDistance()
        Returns the maximum distance (in radian) within which this approximation is valid.
        Returns:
        the maximum distance (in radian).
      • getDistance

        public double getDistance​(double lat,
                                  double lon)
        Returns the distance (in radian) of 'the center of this approximation' to a given (lat, lon) point.
        Parameters:
        lat - The latitude.
        lon - The longitude.
        Returns:
        the distance (in radian).
      • getRotator

        public Rotator getRotator()
        Returns the Rotator associated with this approximation.
        Returns:
        the Rotator associated with this approximation.
      • getRange

        public Rectangle getRange()
        Returns the range of the x(lat, lon) and y(lat, lon) functions.
        Returns:
        the range of the x(lat, lon) and y(lat, lon) functions.