Expand description
Geo shape storage, GeoJSON parsing, and serialization.
Provides GeoShapeStore for per-segment geo_shape field storage with a
packed R-tree for spatial candidate selection and serialized shapes for
exact predicate evaluation.
See [[feature-geo-shape]] and [[geospatial]].
Structs§
- GeoShape
Store - Per-segment geo shape storage with packed R-tree for candidate selection.
Functions§
- compute_
bbox - Compute (min_x, min_y, max_x, max_y) for a geometry.
Returns
(min_lon, min_lat, max_lon, max_lat). - deserialize_
shape - Deserialize a geometry from binary data. Returns (geometry, bytes_consumed).
- parse_
geojson - Parse a GeoJSON value into a
geo::Geometry<f64>. - serialize_
shape - Serialize a geometry into a compact binary format.