How to use @turf/boolean-disjoint - 4 common examples

To help you get started, we’ve selected a few @turf/boolean-disjoint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github osmlab / maproulette3 / src / components / HOCs / WithIntersectingOverlays / WithIntersectingOverlays.js View on Github external
includedOverlays = _filter(includedOverlays, overlay => {
          if (_isEmpty(overlay.geometry)) { // no geometry indicates global layer
            return true
          }

          return !booleanDisjoint(boundsPoly, getGeom(overlay))
        })
      }
github Turfjs / turf / packages / turf-boolean-intersects / index.ts View on Github external
flattenEach(feature2, (flatten2) => {
            if (bool === true) { return true; }
            bool = !booleanDisjoint(flatten1.geometry, flatten2.geometry);
        });
    });
github Turfjs / turf / packages / turf-boolean-valid / index.ts View on Github external
function checkPolygonAgainstOthers(poly, geom, index) {
    var polyToCheck = polygon(poly)
    for (var i = index + 1; i < geom.length; i++) {
        if (!booleanDisjoint(polyToCheck, polygon(geom[i]))) {
            if (booleanCrosses(polyToCheck, lineString(geom[i][0]))) return false
        }
    }
    return true
}

@turf/boolean-disjoint

turf boolean-disjoint module

MIT
Latest version published 3 years ago

Package Health Score

78 / 100
Full package analysis

Popular @turf/boolean-disjoint functions