Serialize a Geometry to WKB (little-endian).
(geom: &Geometry)
| 29 | |
| 30 | /// Serialize a Geometry to WKB (little-endian). |
| 31 | pub fn geometry_to_wkb(geom: &Geometry) -> Vec<u8> { |
| 32 | let mut buf = Vec::with_capacity(64); |
| 33 | write_geometry(&mut buf, geom); |
| 34 | buf |
| 35 | } |
| 36 | |
| 37 | /// Deserialize a Geometry from WKB bytes. |
| 38 | /// |