Deserialize a Geometry from WKB bytes. Returns `None` if the bytes are malformed or truncated.
(data: &[u8])
| 38 | /// |
| 39 | /// Returns `None` if the bytes are malformed or truncated. |
| 40 | pub fn geometry_from_wkb(data: &[u8]) -> Option<Geometry> { |
| 41 | let mut cursor = 0; |
| 42 | read_geometry(data, &mut cursor) |
| 43 | } |
| 44 | |
| 45 | /// Extract bounding box from WKB without full deserialization. |
| 46 | /// |