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

Function point_to_polygon_outside

nodedb-spatial/src/predicates/distance.rs:322–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn point_to_polygon_outside() {
323 let d = st_distance(&Geometry::point(2.0, 0.5), &square());
324 // 1 degree longitude at equator ≈ 111 km.
325 assert!(d > 100_000.0, "got {d}");
326 }
327
328 #[test]
329 fn point_to_linestring() {

Callers

nothing calls this directly

Calls 2

st_distanceFunction · 0.85
squareFunction · 0.70

Tested by

no test coverage detected