{"name":"turf-overlaps","version":"1.0.2","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":"5a33a3c243ab5d70a8ec12af8685251981326473","_id":"turf-overlaps@1.0.2","_shasum":"526d1ee58fe61e00aba43a570ce524f71ae4f798","_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":"526d1ee58fe61e00aba43a570ce524f71ae4f798","tarball":"http://registry-npm.ywwl.com/turf-overlaps/download/turf-overlaps-1.0.2.tgz","integrity":"sha512-QQ5llkvf8BlEpU0piIXlMih5+ZAMLWC1MkhtdcpCkF4vhUXQdEET7W0yxaNbNeCpA9FDAdQ+kEEpp8RmnDOxsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9fjklplEdTcRVFe7MmLX6JyK2RcYq8pfFZS6zgeUd/wIgRKNUkBUpBFrQe7Z+0nPvziXsWN7uThYeqRgtXYG9EQQ="}],"size":3021,"noattachment":false,"key":"/turf-overlaps/-/turf-overlaps-1.0.2.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":1422733329963,"_cnpm_publish_time":1422733329963,"dist-tags":{"latest":"1.0.3"}}