Class GeometryUtils
- java.lang.Object
-
- de.hybris.platform.storelocator.impl.GeometryUtils
-
public class GeometryUtils extends java.lang.ObjectUtility class responsible for getting elliptical distances
-
-
Field Summary
Fields Modifier and Type Field Description static doubleAPP_EARTH_RADIUSApproximate earth radius [kilometers]static org.gavaghan.geodesy.EllipsoidKRASSOWSKIthe Krassowski ellipsoid is no longer available as part of geodesy (this constant is copied from the geodesy 1.0.0 release)static doubleLAT_DEGREE_DISTMeridian length = 20000km Angular length = 180 degree distance of one degree = 111.11
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static doublefixOverlappedLatitude(double latitude)protected static doublefixOverlappedLongitude(double longitude)protected static doublegetCircleOfLatitudeLength(double latitude)static doublegetElipticalDistanceKM(GPS gpsFrom, GPS gpsTo)Returns Elliptical distance between two gps coordinatesstatic java.util.List<GPS>getSquareOfTolerance(GPS center, double radius)returns list of coordinates locations being the top-left and bottom-right corners of the tolerance squareprotected static org.gavaghan.geodesy.GlobalCoordinatesigps2GlobalCoordinates(GPS igps)static booleanisPointInEurope(GPS point)
-
-
-
Field Detail
-
KRASSOWSKI
public static final org.gavaghan.geodesy.Ellipsoid KRASSOWSKI
the Krassowski ellipsoid is no longer available as part of geodesy (this constant is copied from the geodesy 1.0.0 release)
-
LAT_DEGREE_DIST
public static final double LAT_DEGREE_DIST
Meridian length = 20000km Angular length = 180 degree distance of one degree = 111.11- See Also:
- Constant Field Values
-
APP_EARTH_RADIUS
public static final double APP_EARTH_RADIUS
Approximate earth radius [kilometers]- See Also:
- Constant Field Values
-
-
Method Detail
-
getElipticalDistanceKM
public static double getElipticalDistanceKM(GPS gpsFrom, GPS gpsTo)
Returns Elliptical distance between two gps coordinates- Parameters:
gpsFrom-gpsTo-- Returns:
- double
-
igps2GlobalCoordinates
protected static org.gavaghan.geodesy.GlobalCoordinates igps2GlobalCoordinates(GPS igps)
-
getCircleOfLatitudeLength
protected static double getCircleOfLatitudeLength(double latitude)
-
getSquareOfTolerance
public static java.util.List<GPS> getSquareOfTolerance(GPS center, double radius)
returns list of coordinates locations being the top-left and bottom-right corners of the tolerance square- Parameters:
center-GPSradius- [kilometers]- Returns:
- list of
GPS - Throws:
GeoLocatorException
-
fixOverlappedLongitude
protected static double fixOverlappedLongitude(double longitude)
-
fixOverlappedLatitude
protected static double fixOverlappedLatitude(double latitude)
-
isPointInEurope
public static boolean isPointInEurope(GPS point)
-
-