Skip to main content

parse_wkb_geometry

Function parse_wkb_geometry 

Source
pub fn parse_wkb_geometry(bytes: &[u8]) -> Option<Geometry<f64>>
Expand description

Parse a WKB/EWKB blob into a geo_types geometry.

Delegates to geozero (the same reader stt-build uses), which correctly handles 2D, 3D (WKB Z/M), and SRID-prefixed EWKB inputs. Returns None for malformed bytes.