10 unstable releases (3 breaking)

0.4.3 Jul 10, 2024
0.4.2 Jun 28, 2024
0.4.1 Feb 10, 2024
0.3.0 Feb 3, 2024
0.1.1 May 5, 2023

#53 in Geospatial

Download history 39/week @ 2024-08-11 172/week @ 2024-08-18 119/week @ 2024-08-25 120/week @ 2024-09-01 83/week @ 2024-09-08 142/week @ 2024-09-15 219/week @ 2024-09-22 161/week @ 2024-09-29 149/week @ 2024-10-06 107/week @ 2024-10-13 78/week @ 2024-10-20 33/week @ 2024-10-27 36/week @ 2024-11-03 114/week @ 2024-11-10 120/week @ 2024-11-17 101/week @ 2024-11-24

374 downloads per month

MIT license

54KB
745 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