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

Function point_roundtrip

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

Source from the content-addressed store, hash-verified

297
298 #[test]
299 fn point_roundtrip() {
300 let geom = Geometry::point(-73.9857, 40.7484);
301 let wkb = geometry_to_wkb(&geom);
302 let decoded = geometry_from_wkb(&wkb).unwrap();
303 assert_eq!(geom, decoded);
304 }
305
306 #[test]
307 fn linestring_roundtrip() {

Callers

nothing calls this directly

Calls 2

geometry_to_wkbFunction · 0.85
geometry_from_wkbFunction · 0.85

Tested by

no test coverage detected