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

Function point_roundtrip

nodedb-spatial/src/wkt.rs:271–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269
270 #[test]
271 fn point_roundtrip() {
272 let geom = Geometry::point(-73.9857, 40.7484);
273 let wkt = geometry_to_wkt(&geom);
274 assert!(wkt.starts_with("POINT("));
275 let parsed = geometry_from_wkt(&wkt).unwrap();
276 assert_eq!(geom, parsed);
277 }
278
279 #[test]
280 fn linestring_roundtrip() {

Callers

nothing calls this directly

Calls 2

geometry_to_wktFunction · 0.85
geometry_from_wktFunction · 0.85

Tested by

no test coverage detected