booleanDisjoint()
给定两个要素,如果两个要素不相交,返回true。
var point = turf.point([2, 2]);
var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
turf.booleanDisjoint(line, point);
//=true
参数
参数名 | 类型 | 描述 |
---|---|---|
feature1 | Feature | Geometry | |
feature2 | Feature | Geometry |
返回值
boolean