Skip to main content

Module geometry

Module geometry 

Source
Expand description

Geometry processing utilities

This module provides functions for processing and simplifying geometric data for use in spatiotemporal tiles. Uses standard geo/geo-types crates.

Earlier revisions exposed encode_coordinates / zigzag_encode for a quantized geometry encoding that was never wired into the v2 build path (which emits real f64 lon/lat in Arrow). Those have been removed; the format-v3 work (Track B) is rebuilding quantized coordinate encoding on top of fixed-precision Arrow columns, not the old zigzag delta format.

Functionsยง

bounding_box_line
Calculate the bounding box of a linestring using geo types
bounding_box_polygon
Calculate the bounding box of a polygon using geo types
simplify_linestring
Simplify a linestring using the Douglas-Peucker algorithm
simplify_polygon
Simplify a polygon using the Douglas-Peucker algorithm