turf-overlaps
find whether spatial features overlap
overlap(poly1, poly2)
Takes two Linestring, Polygon or MultiPolygon features and finds whether they overlap.
Parameters
parameter | type | description |
---|---|---|
poly1 |
Feature | the first Feature, containing LineString, Polygon or MultiPolygon geometry |
poly2 |
Feature | the second Feature, containing LineString, Polygon or MultiPolygon geometry |
Example
var poly1 = turf; var poly2 = turf; var overlapping = ; // true
Installation
$ npm install --save turf-overlaps
Usage
overlaps = ; var is_overlapping = ;
Tests
$ npm test
Todo
- Add tests for MultiPolygon
- Add tests for testing overlaps for non-homogenous types (LineString vs Polygon, etc)