pub fn as_binary(blob: &[u8]) -> Result<Vec<u8>>Expand description
Convert an EWKB blob to ISO WKB bytes (strips SRID).
ยงExample
use sqlitegis::core::functions::io::{geom_from_text, as_binary};
use sqlitegis::core::ewkb::extract_srid;
let blob = geom_from_text("POINT(1 2)", Some(4326)).unwrap();
let wkb = as_binary(&blob).unwrap();
// ISO WKB has no SRID
assert_eq!(extract_srid(&wkb), None);