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

Function st_within

nodedb-spatial/src/predicates/mod.rs:17–19  ·  view source on GitHub ↗

ST_Within(a, b) — A is fully within B. Equivalent to ST_Contains(b, a).

(a: &Geometry, b: &Geometry)

Source from the content-addressed store, hash-verified

15
16/// ST_Within(a, b) — A is fully within B. Equivalent to ST_Contains(b, a).
17pub fn st_within(a: &Geometry, b: &Geometry) -> bool {
18 st_contains(b, a)
19}
20
21/// ST_Disjoint(a, b) — no shared space. Inverse of ST_Intersects.
22pub fn st_disjoint(a: &Geometry, b: &Geometry) -> bool {

Callers 2

spatial_joinFunction · 0.85
apply_predicateFunction · 0.85

Calls 1

st_containsFunction · 0.85

Tested by

no test coverage detected