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: WG stands for WGS84 and S2 stands for S2Geometry
Re-exports§
Modules§
- geometry
- All geometry types and structs
- impls
- All json, value, shape impl
- map
- BTreeMap wrapper
- shape
- All shape types and structs
- value
- All values types and structs
Structs§
- Feature
- Component to build an WG Feature
- FeatureCollection 
- WG FeatureCollection
- S2FeatureCollection 
- S2 FeatureCollection
- VectorFeature 
- Component to build an WG or S2 Vector Feature
Enums§
- Face
- Cube-face on the S2 sphere
- FeatureCollection Type 
- FeatureCollection type string
- FeatureCollections 
- Either an S2 or WG FeatureCollection
- FeatureType 
- Feature type string
- Features
- Either an S2, Vector WG or WG Feature
- JSONCollection 
- All major S2JSON types
- Projection
- All projections that can be used
- S2FeatureCollection Type 
- FeatureCollection type string
- VectorFeature Type 
- Feature type string
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” }