{"name":"@turf/linestring-to-polygon","version":"4.2.0","keywords":["turf","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/linestring-to-polygon@4.2.0","contributors":[{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"9f3c98ce3b6b8a5d459dfcf232d47e865e0365ed","tarball":"http://registry-npm.ywwl.com/@turf/linestring-to-polygon/download/@turf/linestring-to-polygon-4.2.0.tgz","integrity":"sha512-gk2+/xSbjgCq3F1u2UKKWy1tjEy4jGdsWQVvaWF13QBD02xFj09UFCz8YatOqGkrPL+vmN4tj5i7ANjlbp9iGg==","signatures":[{"sig":"MEQCIHtE92RXOSqRsV4b9fVYuNY8U56mWYmVfOnXpHgbOgCIAiAsVloFdw5qMh04vbvYZvyGc4OTYiqxSdzwJzoWwojoIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3480,"noattachment":false,"key":"/@turf/linestring-to-polygon/-/@turf/linestring-to-polygon-4.2.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"9f3c98ce3b6b8a5d459dfcf232d47e865e0365ed","scripts":{"test":"node test.js","bench":"node bench.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":"4.2.0","description":"turf linestring-to-polygon module","directories":{},"_nodeVersion":"7.9.0","dependencies":{"@turf/bbox":"^4.2.0","@turf/helpers":"^4.2.0","@turf/invariant":"^4.2.0"},"devDependencies":{"tape":"^4.6.3","benchmark":"^2.1.3","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linestring-to-polygon-4.2.0.tgz_1493588841959_0.10141720878891647","host":"packages-12-west.internal.npmjs.com"},"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":1493588842234,"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":1493588842234,"dist-tags":{"latest":"5.0.0","lerna-temp":"4.7.1"}}