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

Function is_valid

nodedb-spatial/src/validate.rs:25–27  ·  view source on GitHub ↗

Whether a geometry is valid (no issues).

(geom: &Geometry)

Source from the content-addressed store, hash-verified

23
24/// Whether a geometry is valid (no issues).
25pub fn is_valid(geom: &Geometry) -> bool {
26 validate_geometry(geom).is_empty()
27}
28
29fn validate_recursive(geom: &Geometry, issues: &mut Vec<String>) {
30 match geom {

Callers 1

eval_geo_functionFunction · 0.85

Calls 2

validate_geometryFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected