{"name":"@turf/linestring-to-polygon","version":"4.7.3","keywords":["turf","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/linestring-to-polygon@4.7.3","contributors":[{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"f45fef8c544d8b288f5ba58c2bae349a18fb597f","tarball":"http://registry-npm.ywwl.com/@turf/linestring-to-polygon/download/@turf/linestring-to-polygon-4.7.3.tgz","integrity":"sha512-RIvf9FOu7rUX19UsoCItamYDkO9k+sk8PrShfMF6ph8ecyT0qjX6Ec5Zoe0TTMuNNKfAbzdO1NEWgVU8HcopUQ==","signatures":[{"sig":"MEUCIDhj2lekxOU0D8OIcnN9mGjsRmpCFy0hf7Ly0QeN0C4CAiEApBEAWgT3j/lOPrClBrY6+3tH7kaXO/GCMm4qQTRwQgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3402,"noattachment":false,"key":"/@turf/linestring-to-polygon/-/@turf/linestring-to-polygon-4.7.3.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"f45fef8c544d8b288f5ba58c2bae349a18fb597f","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":"3.10.10","description":"turf linestring-to-polygon module","directories":{},"_nodeVersion":"6.11.2","dependencies":{"@turf/bbox":"^4.7.3","@turf/helpers":"^4.7.3","@turf/invariant":"^4.7.3"},"devDependencies":{"tape":"^4.6.3","benchmark":"^2.1.4","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/linestring-to-polygon-4.7.3.tgz_1505222509052_0.48036878486163914","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":1505222509138,"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":1505222509138,"dist-tags":{"latest":"5.0.0","lerna-temp":"4.7.1"}}