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