@turf/boolean-disjoint
Advanced tools
Comparing version 5.1.5 to 5.1.6
@@ -94,2 +94,7 @@ import booleanPointInPolygon from '@turf/boolean-point-in-polygon'; | ||
function isLineInPoly(polygon, lineString) { | ||
for (var i = 0; i < lineString.coordinates.length; i++) { | ||
if (booleanPointInPolygon(lineString.coordinates[i], polygon)) { | ||
return true; | ||
} | ||
} | ||
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon)); | ||
@@ -123,2 +128,6 @@ if (doLinesIntersect.features.length > 0) { | ||
} | ||
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2)); | ||
if (doLinesIntersect.features.length > 0) { | ||
return true; | ||
} | ||
return false; | ||
@@ -125,0 +134,0 @@ } |
@@ -94,2 +94,7 @@ import booleanPointInPolygon from '@turf/boolean-point-in-polygon'; | ||
function isLineInPoly(polygon, lineString) { | ||
for (var i = 0; i < lineString.coordinates.length; i++) { | ||
if (booleanPointInPolygon(lineString.coordinates[i], polygon)) { | ||
return true; | ||
} | ||
} | ||
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon)); | ||
@@ -123,2 +128,6 @@ if (doLinesIntersect.features.length > 0) { | ||
} | ||
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2)); | ||
if (doLinesIntersect.features.length > 0) { | ||
return true; | ||
} | ||
return false; | ||
@@ -125,0 +134,0 @@ } |
@@ -98,2 +98,7 @@ 'use strict'; | ||
function isLineInPoly(polygon, lineString) { | ||
for (var i = 0; i < lineString.coordinates.length; i++) { | ||
if (booleanPointInPolygon(lineString.coordinates[i], polygon)) { | ||
return true; | ||
} | ||
} | ||
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon)); | ||
@@ -127,2 +132,6 @@ if (doLinesIntersect.features.length > 0) { | ||
} | ||
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2)); | ||
if (doLinesIntersect.features.length > 0) { | ||
return true; | ||
} | ||
return false; | ||
@@ -129,0 +138,0 @@ } |
{ | ||
"name": "@turf/boolean-disjoint", | ||
"version": "5.1.5", | ||
"version": "5.1.6", | ||
"description": "turf boolean-disjoint module", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -50,1 +50,6 @@ # @turf/boolean-disjoint | ||
``` | ||
### Diagrams | ||
![esri-disjoint](diagrams/esri-disjoint.gif) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20322
488
54