{"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":{},"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","publish_time":1401714317502,"_cnpm_publish_time":1401714317502,"dist-tags":{"latest":"1.0.3"}}