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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
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 interfaceDistanceMeasure
- Parameters:
lon
- longitude in decimal degreeslat
- latitude in decimal degrees- Returns:
- the distance on the surface of the ellipsoid in meters
-
-