endas.localization.cs.LatLonCS¶
-
class
endas.localization.cs.LatLonCS¶ Bases:
endas.localization.CoordinateSystemPolar coordinate system on a perfect sphere.
LatLonCSimplements coordinate system on a perfect sphere with coordinates of any point expressed as latitude and longitude. The currently implemented coordinate system is strictly two-dimensional, i.e. there is no vertical component. The coordinates are assumed to be in degrees.Parameters: R – The radius of the great circle on which the distance is calculated. The default value of 6371 km corresponds to the mean Earth radius (R1) as defined by the International Union of Geodesy and Geophysics. This class is a simple implementation of a polar coordinate system assuming a perfect sphere of radius R and uses the Haversine formula to compute the great-circle distance. If the use of a better approximation is required (i.e. a spheroid), please consider coding your own.