{"name":"turf-overlaps","version":"1.0.1","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","intersect"],"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":"ad3bc2d73a916ec3bd87b2544bbd2a670d223c56","_id":"turf-overlaps@1.0.1","_shasum":"e2e2c02f712027abb0bef4379c57711b36cdddcf","_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":"e2e2c02f712027abb0bef4379c57711b36cdddcf","tarball":"http://registry-npm.ywwl.com/turf-overlaps/download/turf-overlaps-1.0.1.tgz","integrity":"sha512-5i7/oqwOBaXOtLVK4XXRNL51xFTGRX9Rbz1AtSthBgV/jTvEpjxfM1P+Hp3Pst4KMT8ImEUnm4ebF69ezXZjBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqbkURY/T8jyC05/POISOI33zwT6PAh2fT1kJU76GUVQIhAMfzzZOyKkodsz3u0AhcWPsTpX1qLB6BXfJHbv6ReX+1"}],"size":3022,"noattachment":false,"key":"/turf-overlaps/-/turf-overlaps-1.0.1.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":1422730565284,"_cnpm_publish_time":1422730565284,"dist-tags":{"latest":"1.0.3"}}