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

Function union_points

nodedb-spatial/src/operations.rs:356–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354
355 #[test]
356 fn union_points() {
357 let a = Geometry::point(1.0, 2.0);
358 let b = Geometry::point(3.0, 4.0);
359 let u = st_union(&a, &b);
360 if let Geometry::MultiPoint { coordinates } = &u {
361 assert_eq!(coordinates.len(), 2);
362 } else {
363 panic!("expected MultiPoint, got {:?}", u.geometry_type());
364 }
365 }
366
367 #[test]
368 fn union_polygons() {

Callers

nothing calls this directly

Calls 1

st_unionFunction · 0.85

Tested by

no test coverage detected