Crate s2json_core

Source
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
FeatureCollection
WM FeatureCollection
S2FeatureCollection
S2 FeatureCollection
VectorFeature
Component to build an WM or S2 Vector Feature

Enums§

Face
Cube-face on the S2 sphere
FeatureCollectionType
FeatureCollection type string
FeatureCollections
Either an S2 or WM FeatureCollection
FeatureType
Feature type string
Features
Either an S2 or WM Feature
JSONCollection
All major S2JSON types
Projection
All projections that can be used
S2FeatureCollectionType
FeatureCollection type string
VectorFeatureType
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” }