https://github.com/yjh0502/rust-s2
S2 geometry library in Rust
https://github.com/yjh0502/rust-s2
geospatial rust
Last synced: about 1 year ago
JSON representation
S2 geometry library in Rust
- Host: GitHub
- URL: https://github.com/yjh0502/rust-s2
- Owner: yjh0502
- License: apache-2.0
- Created: 2017-05-31T12:04:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-02T11:24:42.000Z (over 1 year ago)
- Last Synced: 2024-10-29T22:32:46.068Z (over 1 year ago)
- Topics: geospatial, rust
- Language: Rust
- Homepage:
- Size: 380 KB
- Stars: 76
- Watchers: 5
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-s2
Rust port of Google S2 geometry library.
[](https://travis-ci.org/yjh0502/rust-s2)
[](https://docs.rs/s2/0.0.10/s2/)
# Status of the Rust Library
This library is principally a port of [the Golang S2
library](https://github.com/golang/geo), adapting to Rust idioms where it makes sense.
We detail the progress of this port below relative to that Go library.
## [ℝ¹](https://docs.rs/s2/~0/s2/r1/) - One-dimensional Cartesian coordinates
Full parity with Go.
## [ℝ²](https://docs.rs/s2/~0/s2/r2/) - Two-dimensional Cartesian coordinates
Full parity with Go.
## [ℝ³](https://docs.rs/s2/~0/s2/r3/) - Three-dimensional Cartesian coordinates
Full parity with Go.
## [S¹](https://docs.rs/s2/~0/s2/s1/) - Circular Geometry
Full parity with Go.
## [S²](https://docs.rs/s2/~0/s2/s2/) - Spherical Geometry
**complete**
- Cell, CellID, LatLng, Metric, Point, Region, stuv
**in progress**
- CellUnion, edgeutil, predicates, Rect
**pending**
- loop, paddedcell, polygon, polyline, shapeindex