Expand description
The s2json
Rust crate provides functionalities to read and write S2JSON Spec data structures.
This crate is a 0 dependency package that uses no_std
and is intended to be used in
embedded systems and WASM applications.
NOTE: WM stands for WGS84 and S2 stands for S2Geometry
Re-exports§
pub use geometry::*;
pub use map::*;
pub use value::*;
pub use vector_point::*;
Modules§
- geometry
- All geometry types and structs
- map
- BTreeMap wrapper
- value
- All values types and structs
- value_
impl - All values impl
- vector_
point - The VectorPoint struct is a powerful tool for 2D and 3D points
Structs§
- Feature
- Component to build an WM Feature
- Feature
Collection - WM FeatureCollection
- S2Feature
Collection - S2 FeatureCollection
- Vector
Feature - Component to build an WM or S2 Vector Feature
Enums§
- Face
- Cube-face on the S2 sphere
- Feature
Collection Type - FeatureCollection type string
- Feature
Collections - Either an S2 or WM FeatureCollection
- Feature
Type - Feature type string
- Features
- Either an S2 or WM Feature
- JSON
Collection - All major S2JSON types
- Projection
- All projections that can be used
- S2Feature
Collection Type - FeatureCollection type string
- Vector
Feature Type - Feature type string
- WMFeature
- Either an WM Feature or an WM Vector Feature
Type Aliases§
- Attributions
- Attribution data is stored in an object. The key is the name of the attribution, and the value is the href link e.g. { “Open S2”: “https://opens2.com/legal/data” }