{"name":"@turf/linestring-to-polygon","version":"5.0.0","keywords":["turf","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/linestring-to-polygon@5.0.0","contributors":[{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"d8c33d879fcbc71224fd6a69d41978562d2005e8","tarball":"http://registry-npm.ywwl.com/@turf/linestring-to-polygon/download/@turf/linestring-to-polygon-5.0.0.tgz","integrity":"sha512-aa04/85COcQ/XxmM7e1yBtnKxtca5Ag4zehI28P6kIHR2NbpOFsG/l2SKFcYoImydJ+2PedoE6zf3YJUNLItCQ==","signatures":[{"sig":"MEUCIQC998snF5RBX/M0wXUJkQTYE+Q+6kFRWNTA8TxDn7UcQQIgZi6FIGJyOpYDjsZClF/0WUYnsVi2TV0jrZtasVWw79Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fJsCRA9TVsSAnZWagAAT0kP/0vw1zZ4/UPusVr7H6bc\noSUY1OhI4nMEDkpeEqtGGPtHwmkgdxlFJ4ozv95Da7SofP65th9Kp64VoWpb\nRJHF1WpJtK8+hgsi8tiqSPjchuKvljSvhWgupK487cfEh5Pu/myb9eGsRB84\nDXIzM+BLv3Iz/z9KAP/ej3IIjMLLPbeCYqCduVZUVV6saswBjUeN1ld9zD/b\ntSqZ3/pYNfhvbJsKLTYXzgJCvrkugkUrPyMcLcAhpKhnZYpibpFO05vV6gjt\nQ3Y2jSVeotq8R/H0rze9S18QpSpYUt0AxfiFPWIiHPqXx1dUStA0TXKH0HAJ\n61asFQ6gNBsVrlVefLlnfBPKrrx7i/FfW2A1IkSHZtEa/v4qdiMSITZawLiv\nnNBPznAqsI/HZtwJmGLehnBPaZKWzF1hDsOWT3JRCEWz52MHqA5ZoMpe/qOG\nuWWbcrQKtptc7fN7lxhjcupcKketyHt5KLQFmr/NVwIfLEueEb/ms3eDd3ZZ\nPRra3cpOjAD8qoQdyqXZT24sfq4kqhl3kw+CIfeeA0sY3IJkwmeK2pnddJeU\nEFmDhQ0vCvjpR/1JIFPEpZDnH/ptKF0t6Hf1MvliVQjDFN+Ui3U0i8LZA0/v\naNafuGZW6hR6U3TYfguALvKaAtckv6OApnPnJnC9dGRSgM23MukLH1JSMlL8\ncKK5\r\n=r6r7\r\n-----END PGP SIGNATURE-----\r\n","size":3704,"noattachment":false,"key":"/@turf/linestring-to-polygon/-/@turf/linestring-to-polygon-5.0.0.tgz"},"main":"main","_from":".","files":["index.js","index.d.ts","main.js"],"types":"index.d.ts","module":"index","_shasum":"d8c33d879fcbc71224fd6a69d41978562d2005e8","scripts":{"test":"node -r @std/esm test.js","bench":"node -r @std/esm bench.js","pretest":"rollup -c ../../rollup.config.js","posttest":"uglifyjs main.js -o main.min.js"},"@std/esm":{"cjs":true,"esm":"js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"deprecated":"Module has been renamed to @turf/line-to-polygon","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf linestring-to-polygon module","directories":{},"jsnext:main":"index","_nodeVersion":"6.11.2","dependencies":{"@turf/bbox":"5.0.0","@turf/helpers":"5.0.0","@turf/invariant":"5.0.0"},"devDependencies":{"tape":"*","rollup":"*","@std/esm":"*","benchmark":"*","uglify-js":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/linestring-to-polygon-5.0.0.tgz_1506915597820_0.48079848219640553","host":"s3://npm-registry-packages"},"readme":"# @turf/linestring-to-polygon\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## lineStringToPolygon\n\nConverts (Multi)LineString(s) to Polygon(s).\n\n**Parameters**\n\n-   `lines` **([FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects) \\| [Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;([LineString](http://geojson.org/geojson-spec.html#linestring) \\| [MultiLineString](http://geojson.org/geojson-spec.html#multilinestring))>)** Features to convert\n-   `properties` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)?** translates GeoJSON properties to Feature\n-   `autoComplete` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** auto complete linestrings (matches first & last coordinates) (optional, default `true`)\n-   `orderCoords` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sorts linestrings to place outer ring at the first position of the coordinates (optional, default `true`)\n\n**Examples**\n\n```javascript\nvar line = turf.lineString([[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]);\n\nvar polygon = turf.lineStringToPolygon(line);\n\n//addToMap\nvar addToMap = [polygon];\n```\n\nReturns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;([Polygon](http://geojson.org/geojson-spec.html#polygon) \\| [MultiPolygon](http://geojson.org/geojson-spec.html#multipolygon))>** converted to Polygons\n\n<!-- This file is automatically generated. Please don't edit it directly:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/linestring-to-polygon\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1506915597894,"maintainers":[{"email":"james@smallsaucepan.com","name":"smallsaucepan"},{"email":"morganherlocker@gmail.com","name":"morgan.herlocker"},{"email":"tim.j.welch@gmail.com","name":"twelch"},{"email":"jamesmilner22@hotmail.com","name":"jamesmilneruk"},{"email":"rowanwins@yahoo.com.au","name":"rowanwins"},{"email":"tom@macwright.com","name":"tmcw"},{"email":"morgan.herlocker@gmail.com","name":"morganherlocker"},{"email":"tim.channell@gmail.com","name":"tcql"},{"email":"mdfedderly@mdfedderly.com","name":"mdfedderly"}],"_cnpm_publish_time":1506915597894,"dist-tags":{"latest":"5.0.0","lerna-temp":"4.7.1"}}