GeoDistance
Computes the distance between two geographic points (latitude, longitude) on the WGS84 ellipsoid with Karney's algorithm (GeographicLib), and optionally with the Haversine formula.
Processing
- distanceXY_Karney: geodesic distance from GeographicLib (accurate to nanometers).
- distanceXY_Haversine (optional): great-circle distance on a sphere (faster, less accurate).
Usage
- Typical inputs:
UnitDelay.output→target_geoPoint;data_vectorizer.o_data→ref_geoPoint. - Typical outputs:
distanceXY_Karney→SkipEarlyFrames.input_0;distanceXY_Haversine→SkipEarlyFrames.input_1.
Data format
- Inputs: [latitude, longitude] in degree. Outputs: distance in meter.
Notes
- See https://geographiclib.sourceforge.io/.
References
- [1] C. F. F. Karney, "Algorithms for Geodesics," Journal of Geodesy, vol. 87, no. 1, pp. 43-55, 2013. https://doi.org/10.1007/s00190-012-0578-z — Used for: geodesic distance on the WGS84 ellipsoid (distanceXY_Karney).
- [2] C. F. F. Karney, GeographicLib (bundled in 3rdparty/GeographicLib). https://github.com/geographiclib/geographiclib-cpp — Used for: implementation of Karney's algorithm.
- [3] R. W. Sinnott, "Virtues of the Haversine," Sky and Telescope, vol. 68, no. 2, p. 159, 1984. — Used for: Haversine distance (distanceXY_Haversine).
Properties
| Name | Default | Description |
|---|---|---|
Output_Haversine | false | Adds the Haversine distance output. |
Outputs
| Name | Description |
|---|---|
distanceXY_Karney | Geodesic distance in meter (Karney). Type: Float64 |
distanceXY_Haversine | Great-circle distance in meter (Haversine). Present when Output_Haversine is true. Type: Float64 |
Inputs
| Name | Description |
|---|---|
target_geoPoint | Target point [latitude, longitude] in degree. Type: Float64 |
ref_geoPoint | Reference point [latitude, longitude] in degree. Type: Float64 |
RTMaps Toolkits Documentation