{"name":"turf-overlaps","version":"1.0.3","description":"find whether spatial features overlap","main":"index.js","scripts":{"test":"node test/test.js","doc":"dox -r < index.js | doxme --readme > README.md"},"repository":{"type":"git","url":"git://github.com/tchannel/turf-overlaps.git"},"keywords":["turf","gis","overlap"],"author":{"name":"Tim Channell"},"license":"ISC","bugs":{"url":"https://github.com/tchannel/turf-overlaps/issues"},"homepage":"https://github.com/tchannel/turf-overlaps","devDependencies":{"benchmark":"^1.0.0","glob":"~4.3.1","tape":"~3.0.3","dox":"^0.6.1","doxme":"^1.4.2"},"dependencies":{"turf-is-clockwise":"^1.0.0"},"gitHead":"586909bcb0c2b2b3cbf53bda3736d417fd8197b2","_id":"turf-overlaps@1.0.3","_shasum":"4711c91466853af03b3ce962585aeca9fc2325f5","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"tcql","email":"tim.channell@gmail.com"},"maintainers":[{"name":"tcql","email":"tim.channell@gmail.com"}],"dist":{"shasum":"4711c91466853af03b3ce962585aeca9fc2325f5","tarball":"http://registry-npm.ywwl.com/turf-overlaps/download/turf-overlaps-1.0.3.tgz","integrity":"sha512-LESQE6sbu76on/rTc/QEKvWfTwBMmZdb1YX0vQNeCSs0m7a1yXJIniVU1MBljueNNu4tNYibDrgN32QWdvrpTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGI9KwuL99W3Flg1l+2fwjTbCBRIyucVPFmK87rpWaccAiEAmuBPOFHz5yjPAHfuNU/fxf7L6c208B5X+HFBxjP+FYI="}],"size":2996,"noattachment":false,"key":"/turf-overlaps/-/turf-overlaps-1.0.3.tgz"},"directories":{},"readme":"# turf-overlaps\n\nfind whether spatial features overlap\n\n\n### `overlap(poly1, poly2)`\n\nTakes two Linestring, Polygon or MultiPolygon features and finds whether they overlap.\n\n\n### Parameters\n\n| parameter | type    | description        |\n| --------- | ------- | ------------------ |\n| `poly1`   | Feature | the first Feature, containing LineString, Polygon or MultiPolygon geometry  |\n| `poly2`   | Feature | the second Feature, containing LineString, Polygon or MultiPolygon geometry |\n\n\n### Example\n\n```js\nvar poly1 = turf.polygon([[\n  [0, 0],\n  [0, 2],\n  [2, 2],\n  [2, 0],\n  [0, 0]\n]]);\n\nvar poly2 = turf.polygon([[\n  [1, 1],\n  [1, 3],\n  [3, 3],\n  [3, 1],\n  [1, 1]\n]]);\n\nvar overlapping = overlaps(poly1, poly2);\n\n// true\n```\n\n## Installation\n\n```sh\n$ npm install --save turf-overlaps\n```\n\n## Usage\n\n```js\noverlaps = require('turf-overlaps');\n\nvar is_overlapping = overlap(poly1, poly2);\n```\n\n\n## Tests\n\n```sh\n$ npm test\n```\n\n## Todo\n\n- Add tests for MultiPolygon\n- Add tests for testing overlaps for non-homogenous types (LineString vs Polygon, etc)\n","publish_time":1422733768943,"_cnpm_publish_time":1422733768943,"dist-tags":{"latest":"1.0.3"}}