java.lang.Object
io.jenetics.jpx.geom.Geoid
Implementation of geodetic functions.
- Since:
- 1.0
- Version:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeoidGeoidusing theEllipsoid.DEFAULTellipsoid.static final GeoidGeoidusing the International Earth Rotation and Reference Systems Service (1989)static final GeoidGeoidusing the International Earth Rotation and Reference Systems Service (2003)static final GeoidGeoidusing of the World Geodetic System: WGS 84 -
Method Summary
Modifier and TypeMethodDescriptionCalculate the distance between points on an ellipsoidal earth model.Return the ellipsoid theGeomobject is using.static GeoidCreate a newGeoidobject with the given ellipsoid.Return a collector which calculates the length of the (open) path which is defined by thePointstream.Return a collector which calculates the length of the (closed) tour which is defined by thePointstream.
-
Field Details
-
WGS84
Geoidusing of the World Geodetic System: WGS 84- See Also:
-
IERS_1989
Geoidusing the International Earth Rotation and Reference Systems Service (1989)- See Also:
-
IERS_2003
Geoidusing the International Earth Rotation and Reference Systems Service (2003)- See Also:
-
DEFAULT
Geoidusing theEllipsoid.DEFAULTellipsoid.
-
-
Method Details
-
ellipsoid
Return the ellipsoid theGeomobject is using.- Returns:
- the ellipsoid the
Geomobject is using
-
distance
Calculate the distance between points on an ellipsoidal earth model. This method will throw anArithmeticExceptionif the algorithm doesn't converge while calculating the distance, which is the case for a point and its (near) antidote.- Parameters:
start- the start pointend- the end point- Returns:
- the distance between
startandendin meters - Throws:
NullPointerException- if one of the points isnullArithmeticException- if the algorithm used for calculating the distance betweenstartandenddidn't converge, which is the case for a point and its (near) antidote.- See Also:
-
toPathLength
Return a collector which calculates the length of the (open) path which is defined by thePointstream.The returnedfinal Length length = gpx.tracks() .flatMap(Track::segments) .flatMap(TrackSegment::points) .collect(Geoid.WGSC_84.toPathLength());Collectordoesn't work for parallel stream. Using it for a parallel point stream will throw anUnsupportedOperationExceptionat runtime.- Returns:
- a new path length collector
- See Also:
-
toTourLength
Return a collector which calculates the length of the (closed) tour which is defined by thePointstream. The tour length additionally adds the distance of the last point back to the first point.The returnedfinal Length length = gpx.tracks() .flatMap(Track::segments) .flatMap(TrackSegment::points) .collect(Geoid.WGSC_84.toTourLength());Collectordoesn't work for parallel stream. Using it for a parallel point stream will throw anUnsupportedOperationExceptionat runtime.- Returns:
- a new path length collector
- See Also:
-
of
Create a newGeoidobject with the given ellipsoid.- Parameters:
ellipsoid- the ellipsoid used by the geoid- Returns:
- a new
Geoidobject with the given ellipsoid - Throws:
NullPointerException- if the givenellipsoidisnull
-