Class EllipsoidDistance

java.lang.Object
org.esa.snap.core.dataio.geocoding.util.EllipsoidDistance
All Implemented Interfaces:
DistanceMeasure

public class EllipsoidDistance extends Object implements DistanceMeasure
  • Constructor Summary

    Constructors
    Constructor
    Description
    EllipsoidDistance(double lon, double lat, org.opengis.referencing.datum.Ellipsoid ellipsoid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    distance(double lon, double lat)
    Calculates the distance from the location passed in to the location supplied in the constructor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EllipsoidDistance

      public EllipsoidDistance(double lon, double lat, org.opengis.referencing.datum.Ellipsoid ellipsoid)
  • Method Details

    • distance

      public double distance(double lon, double lat)
      Calculates the distance from the location passed in to the location supplied in the constructor.
      Specified by:
      distance in interface DistanceMeasure
      Parameters:
      lon - longitude in decimal degrees
      lat - latitude in decimal degrees
      Returns:
      the distance on the surface of the ellipsoid in meters