MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / linestring_roundtrip

Function linestring_roundtrip

nodedb-spatial/src/wkb.rs:307–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305
306 #[test]
307 fn linestring_roundtrip() {
308 let geom = Geometry::line_string(vec![[0.0, 0.0], [1.0, 1.0], [2.0, 0.0]]);
309 let wkb = geometry_to_wkb(&geom);
310 let decoded = geometry_from_wkb(&wkb).unwrap();
311 assert_eq!(geom, decoded);
312 }
313
314 #[test]
315 fn polygon_roundtrip() {

Callers

nothing calls this directly

Calls 2

geometry_to_wkbFunction · 0.85
geometry_from_wkbFunction · 0.85

Tested by

no test coverage detected