Module shared

Source
Expand description

Shared functionality for geo operations.

Structs§

ConcreteVec
A concrete collection of concrete values.
EncodableGeometry
A wrapped Geometry that can be encoded and decoded via bincode.
EncodableIds
A wrapped [’Vec`] that can be encoded and decoded via bincode.
EncodableOptionString
A wrapper for Option<Cow<'static, str>> to make encoding and decoding easier.
EncodableString
A wrapper for Cow<'static, str> to make encoding and decoding easier.

Traits§

CanGetGeoJsonFeaturesFromSource
Trait that supports getting the GeoJSON features from a source.
HasGeometry
A trait for types that have a Geometry.
HasProperties
A trait for types that have properties.
ToGeoJson
A trait to convert to GeoJSON.
ToGeoJsonFeature
A trait that allows types to be converted to GeoJSON.
ToGeoJsonFeatureCollection
A trait that allows for iterator types to be converted to GeoJSON.

Functions§

get_geojson_feature_from_file
Get the GeoJSON feature from the binary assets.
get_geojson_feature_from_string
Get the GeoJSON feature from the binary assets.
get_geojson_features_from_file
Get the GeoJSON features from the binary assets.
get_geojson_features_from_string
Get the GeoJSON features from the binary assets.
get_items_from_features
Get the concrete timezones from features.
get_lookup_from_geometries
Get the cache from the timezones.
simplify_geometry
Simplifies a Geometry using the Visvalingam-Whyatt algorithm.

Type Aliases§

Id
An index into the global static cache.
IdFeaturePair
An (id, Feature) pair.
RoundDegree
A rounded integer.
RoundLngLat
A rounded longitude and latitude.