Skip to main content

Module shape

Module shape 

Source
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§

GeoShapeStore
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.