#geographic #3d #transformation #coordinates #map

map_3d

Library for 3D geographic coordinate transformation

6 releases

0.1.5 Jul 13, 2022
0.1.4 Aug 16, 2020
0.1.3 Jun 13, 2020
0.1.2 May 18, 2020

#95 in Robotics

Download history 2294/week @ 2024-11-30 3685/week @ 2024-12-07 3744/week @ 2024-12-14 1590/week @ 2024-12-21 1793/week @ 2024-12-28 3754/week @ 2025-01-04 3361/week @ 2025-01-11 3179/week @ 2025-01-18 3259/week @ 2025-01-25 3978/week @ 2025-02-01 3811/week @ 2025-02-08 4792/week @ 2025-02-15 5709/week @ 2025-02-22 4957/week @ 2025-03-01 4805/week @ 2025-03-08 3994/week @ 2025-03-15

20,494 downloads per month
Used in 16 crates (5 directly)

Apache-2.0

45KB
638 lines

Rust Map3d

crates.io Rust License codecov

This is a Rust library for geographic coordinate frame conversion. The implementation is similar to Pymap3d. All the functions are implemented in f64 precision.

Live demo: map 3d live demo

No external dependencies

The default units are:

  • Radians [rad] for angular variables
  • Meters [m] for linear variables
  • Greenwich Sidereal Time [GST] for date and time

We support several reference ellipsoids, WGS84 is defined as the default one, obtained with Ellipsoid::default().

List of coordinates systems implemented in the functions:

Additional functions:

  • Radians to Degrees and Degrees to Radians
  • UTC time conversion to GST
  • 3x3 Matrix - 3x1 column multiplication
  • 3x3 Matrix transpose
  • f64 round towards zero
  • projected distance (Haversine formula) between two coordinates (lat, lon, in decimal degrees)

To-Do List:

  • implement functions for right ascension and declination conversions

No runtime deps