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
- Feature
Collection - WG FeatureCollection
- S2Feature
Collection - S2 FeatureCollection
- Vector
Feature - Component to build an WG or S2 Vector Feature
Enums§
- Face
- Cube-face on the S2 sphere
- Feature
Collection Type - FeatureCollection type string
- Feature
Collections - Either an S2 or WG FeatureCollection
- Feature
Type - Feature type string
- Features
- Either an S2, Vector WG or WG 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
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” }