Atlaslog
Atlaslog / Turf.js / API reference / booleanDisjoint
Turf.js · API reference

booleanDisjoint

Quick answer

booleanDisjoint returns true when two geometries share no point at all, making it the logical inverse of booleanIntersects. It handles Point, LineString, Polygon and their multi variants, including polygon holes. Use it as a cheap rejection test before expensive overlay operations.

Last verified 2026-11-03 · Turf.js 7.x · Cite this page
turf. booleanDisjoint ( feature1 , feature2 , options ?) → boolean
Key points
Example
var parcel = turf.polygon([[
  [116.38, 39.90],
  [116.42, 39.90],
  [116.42, 39.94],
  [116.38, 39.94],
  [116.38, 39.90]
]]);

var point = turf.point([116.50, 39.92]);

console.log(turf.booleanDisjoint(parcel, point));   // true
console.log(turf.booleanDisjoint(parcel, parcel));  // false
var candidates = buildings.features.filter(function (b) {
  return !turf.booleanDisjoint(b, roadBuffer, {
    ignoreSelfIntersections: false
  });
});
Notes
Runnable examplesChinese originalAll API references
English edition written for Atlaslog. Code is taken from the original Chinese page and runs unchanged.
Cite this page

Atlaslog (2026). booleanDisjoint. https://www.jingweizhi.com/en/turf/api/boolean-disjoint.html (accessed 2026-11-03).