{"_id":"turf-polygon","_rev":"1030683","name":"turf-polygon","description":"turf polygon module","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"}],"time":{"modified":"2024-09-10T16:57:58.000Z","created":"2014-04-02T02:53:10.010Z","1.0.3":"2015-02-06T21:42:46.310Z","1.0.2":"2015-02-02T02:45:09.288Z","1.0.1":"2015-01-06T22:36:47.599Z","1.0.0":"2014-12-11T15:29:01.972Z","0.1.1":"2014-06-02T13:05:17.502Z","0.1.0":"2014-04-02T02:53:10.010Z"},"users":{},"author":{"name":"morganherlocker"},"repository":{"type":"git","url":"https://github.com/Turfjs/turf-polygon.git"},"versions":{"1.0.3":{"name":"turf-polygon","version":"1.0.3","description":"turf polygon module","main":"index.js","scripts":{"test":"tape test.js","doc":"dox -r < index.js | doxme --readme > README.md"},"repository":{"type":"git","url":"https://github.com/Turfjs/turf-polygon.git"},"keywords":["gis","geojson","turf","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-polygon/issues"},"homepage":"https://github.com/Turfjs/turf-polygon","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","dox":"^0.6.1","doxme":"^1.4.3"},"gitHead":"53b55207abdb3f6b275c6c8ec407dd59650e1fc3","_id":"turf-polygon@1.0.3","_shasum":"671dd34849864509281af18e236f67a7448c6363","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"671dd34849864509281af18e236f67a7448c6363","tarball":"http://registry-npm.ywwl.com/turf-polygon/download/turf-polygon-1.0.3.tgz","integrity":"sha512-zpyHEUcnhGI02QjL/OJapQXkZSTCCbY5aErWt5P40iF5lbVAof+fZJKL9XJVAmTbrJ4FK2yH0gsxox99VSu7cQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjTwZf78HR26lpLeVZmQfd/KVqFcsN9dQCTw5bQidJWAiApEFrG2M5eT+QBaDWqkILXD0akIu9uceNWgV801YaGyg=="}],"size":2919,"noattachment":false,"key":"/turf-polygon/-/turf-polygon-1.0.3.tgz"},"directories":{},"publish_time":1423258966310,"_cnpm_publish_time":1423258966310},"1.0.2":{"name":"turf-polygon","version":"1.0.2","description":"turf polygon module","main":"index.js","scripts":{"test":"tape test.js","doc":"dox -r < index.js | doxme --readme > README.md"},"repository":{"type":"git","url":"https://github.com/Turfjs/turf-polygon.git"},"keywords":["gis","geojson","turf","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-polygon/issues"},"homepage":"https://github.com/Turfjs/turf-polygon","devDependencies":{"benchmark":"^1.0.0","tape":"^3.0.3","dox":"^0.6.1","doxme":"^1.4.2"},"gitHead":"df0c1b9adf0af906320681c8eeabf5332c4154ac","_id":"turf-polygon@1.0.2","_shasum":"cf3175eef47dcc2fe1d626cd94552fea88489124","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.36","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"cf3175eef47dcc2fe1d626cd94552fea88489124","tarball":"http://registry-npm.ywwl.com/turf-polygon/download/turf-polygon-1.0.2.tgz","integrity":"sha512-sseW0x8fJNY40tKM1lzXWLSbYsxcBHZjvIiyzK8limiRR/c37OICVFFFktrimqz3qn5OoVNBryofCQssP3SZsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWhd3yu21HXsx+za/hxw7BR56aJ27xxqTgTaibM2QaKAiAq3m/MZnLkblNVg7o88JHSC5GJy4dxp480vNysi8Md6A=="}],"size":2904,"noattachment":false,"key":"/turf-polygon/-/turf-polygon-1.0.2.tgz"},"directories":{},"publish_time":1422845109288,"_cnpm_publish_time":1422845109288},"1.0.1":{"name":"turf-polygon","version":"1.0.1","description":"turf polygon module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-polygon.git"},"keywords":["gis","geojson","turf","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-polygon/issues"},"homepage":"https://github.com/morganherlocker/turf-polygon","devDependencies":{"benchmark":"^1.0.0","tape":"^3.0.3"},"gitHead":"513f75ca4b4a36f7853981540dc0bff3d7450f59","_id":"turf-polygon@1.0.1","_shasum":"38113a35d2c065aa67e3dbefb24409e1bee8f035","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.35","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"38113a35d2c065aa67e3dbefb24409e1bee8f035","tarball":"http://registry-npm.ywwl.com/turf-polygon/download/turf-polygon-1.0.1.tgz","integrity":"sha512-dD0jFSHnFIuuIDcxIYx5RJkkPXBe1YcUihy/7qXlhvZRirf3Z1e3h0na8uBRAQFzQ2JFr8xX3E2Ei2tvEI65tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEY2r0MGiaT0j8EnRMrqyxr18pd6fJdGOmIWsVUoZ92wIhAI74DBYDxA4tPyI3TDh1if7HIAW9KwD+imSFHcUSMl3A"}],"size":2786,"noattachment":false,"key":"/turf-polygon/-/turf-polygon-1.0.1.tgz"},"directories":{},"publish_time":1420583807599,"_cnpm_publish_time":1420583807599},"1.0.0":{"name":"turf-polygon","version":"1.0.0","description":"turf polygon module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-polygon.git"},"keywords":["gis","geojson","turf","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-polygon/issues"},"homepage":"https://github.com/morganherlocker/turf-polygon","devDependencies":{"benchmark":"^1.0.0","tape":"^3.0.3"},"gitHead":"ff4d5ad242a4367f05824cd6771f532464ad07cd","_id":"turf-polygon@1.0.0","_shasum":"d854773d62b32d05764e3c6df2dfb2e7f09e20c4","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"d854773d62b32d05764e3c6df2dfb2e7f09e20c4","tarball":"http://registry-npm.ywwl.com/turf-polygon/download/turf-polygon-1.0.0.tgz","integrity":"sha512-0pcO7cO6OAG4EiHN919r/y9RJHDjlB18URKJrPzQZZ+QV3BJ33+xK8RxvyW6ix1ZVDcKk9ApuQeQO/3aP57p4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDurx/IiOqIStui9+6UmUBoyga/oSbmWCtJYO0caFyqAgIhAMYPDxR4Ne+Kx3uWumFfp0pCOIqC2prRYmagDljHFwVS"}],"size":2211,"noattachment":false,"key":"/turf-polygon/-/turf-polygon-1.0.0.tgz"},"directories":{},"publish_time":1418311741972,"_cnpm_publish_time":1418311741972},"0.1.1":{"name":"turf-polygon","version":"0.1.1","description":"turf polygon module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-polygon.git"},"keywords":["gis","geojson","turf","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-polygon/issues"},"homepage":"https://github.com/morganherlocker/turf-polygon","devDependencies":{"tape":""},"_id":"turf-polygon@0.1.1","dist":{"shasum":"656c391e02aff61cd19ed8a69bb46004a4b52448","tarball":"http://registry-npm.ywwl.com/turf-polygon/download/turf-polygon-0.1.1.tgz","integrity":"sha512-xTxcwJ5+PRTiLSBwHKlLgdouXgMVeGW0dSw+HZ9GxEUKng0OZQ5vtS1uxUCk5iYP1F4NLcUwMuTW5rYNesJ01g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIpzilozAe3P1+j3a75o6Hk8YyHG57tjN2jy3w/nBpFAiBm80hevph9D0rbgT+ITYtsrL2Z3XJsWCpmc52srurFNA=="}],"size":2058,"noattachment":false,"key":"/turf-polygon/-/turf-polygon-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"directories":{},"publish_time":1401714317502,"_cnpm_publish_time":1401714317502},"0.1.0":{"name":"turf-polygon","version":"0.1.0","description":"turf polygon module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-polygon.git"},"keywords":["gis","geojson","turf","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-polygon/issues"},"homepage":"https://github.com/morganherlocker/turf-polygon","devDependencies":{"tape":""},"_id":"turf-polygon@0.1.0","dist":{"shasum":"31e71a5d0af4ade65848ecb0ec1f1b8678ca3eed","tarball":"http://registry-npm.ywwl.com/turf-polygon/download/turf-polygon-0.1.0.tgz","integrity":"sha512-eU6HQ7XQ6BJkTJriIFcx8GipJcw26gX3UKhSA1b5E1Pc1JnDQS6yDE4zcBIGklfqe9clxtW+L9EuzfaAamHjMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvCysUJEFmu9NeNjuuu2PGqZrrLMjVVgwu7qDavhzOMAIgJRKHwR018kfAkS2txgxwGsEn/rL/YzBA6QYH3sodVYM="}],"size":1800,"noattachment":false,"key":"/turf-polygon/-/turf-polygon-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"directories":{},"publish_time":1396407190010,"_cnpm_publish_time":1396407190010}},"readme":"# turf-polygon\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-polygon.png)](http://travis-ci.org/Turfjs/turf-polygon)\n\nturf polygon module\n\n\n### `turf.polygon(rings, properties)`\n\nTakes an array of LinearRings and optionally an Object with properties and returns a GeoJSON Polygon feature.\n\n\n### Parameters\n\n| parameter    | type                   | description                     |\n| ------------ | ---------------------- | ------------------------------- |\n| `rings`      | Array.<Array.<Number>> | - an array of LinearRings       |\n| `properties` | Object                 | - an optional properties object |\n\n\n### Example\n\n```js\nvar polygon = turf.polygon([[\n [-2.275543, 53.464547],\n [-2.275543, 53.489271],\n [-2.215118, 53.489271],\n [-2.215118, 53.464547],\n [-2.275543, 53.464547]\n]], { name: 'poly1', population: 400});\n\n//=polygon\n\n//=polygon.properties\n```\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-polygon\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n","_attachments":{},"homepage":"https://github.com/Turfjs/turf-polygon","bugs":{"url":"https://github.com/Turfjs/turf-polygon/issues"},"license":"MIT"}