8 unstable releases (3 breaking)

0.4.1 Feb 10, 2024
0.4.0 Feb 9, 2024
0.3.0 Feb 3, 2024
0.2.2 Jan 29, 2024
0.1.1 May 5, 2023

#82 in Geospatial

Download history 17/week @ 2024-01-08 3/week @ 2024-01-15 14/week @ 2024-01-22 31/week @ 2024-01-29 31/week @ 2024-02-05 9/week @ 2024-02-12 26/week @ 2024-02-19 45/week @ 2024-02-26 36/week @ 2024-03-04 47/week @ 2024-03-11 20/week @ 2024-03-18 1/week @ 2024-03-25 30/week @ 2024-04-01 5/week @ 2024-04-08 8/week @ 2024-04-15 8/week @ 2024-04-22

51 downloads per month

MIT license

48KB
666 lines

geoconv - convert between different coordinate systems

crates.io docs.rs

geoconv implements support for converting between some basic coordinate systems. This package contains support for WGS84 Latitude/Longitude/Elevation (LLE) geodetic coordinates, Earth-centered, Earth-fixed (XYZ), and local tangent plane (both East/North/Up (ENU) and Azimuth/Elevation/Range (AER)) systems.

[!WARNING] This is also absolutely not ready to be used for navigational purposes. Please do not use this library in any situation that may cause harm to life or property.

This package is particularly useful if you know your location on Earth, and want to geolocate an object that you can observe, or if you know your location on Earth, and an object's location on Earth and want to determine your relative positions.

This also includes Haversine-distance using the circumference of the earth for approximate great-circle distance between two Lat/Lon points, but only on the "Earth's surface". In some cases (long distances) this is a way better approach for distance. If both points are line-of-sight, you likely care more about using the local tangent plane to work out the Range to the target in 3-space by converting both lat/lons to Earth-North-Up or an Azimuth/Elevation/Range.

No runtime deps