{"name":"@turf/polygonize","version":"6.2.0-alpha.1","keywords":["turf","geojson","gis","polygonize"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/polygonize@6.2.0-alpha.1","contributors":[{"name":"Nicolas Cisco","email":"@nickcis"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"9894d2f86d09b763c3b4bbee2f41314f7e601c7a","tarball":"http://registry-npm.ywwl.com/@turf/polygonize/download/@turf/polygonize-6.2.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-VqHrg6YNu50xFDQUBjKWw4WMOYITQJ6iQWQLnA8ITewZnr9KyLXy63xndJQaAZZgpi/+ft9Zg0rR6Z4+A6tS/w==","signatures":[{"sig":"MEQCIAXglyN4KTFXNemLRUB+YCmvbl8hxJ+qLiUr/9M7EvWnAiB3xciIcrV+zR21AZQNrySUM6q5IuA8WV4RVU58o5uZlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82561,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUKeCRA9TVsSAnZWagAA/iIQAJV8IqKe0m9R8Atfk2j/\nKhnVv3Gsx3b2aKJjTpY6QYgRg/AxgnjA/cOz++684Ot2QGxVVGAWXrNqdoaY\nfumsuPV+RS+hmJ87Od7Vmqx8ywC4vUra6s4H7P320ul6US8fpgSBWIWqu895\nHwseuVXw81El78rklOY+QgRZ+6yB3v+KotUB2Slx7AgIZmhjgrR2XIsM5DXq\nW0xC4zLW+voKb1NTIVeu844tBJYsssq6hksEQJyMMiQNPJOuYUywUzfV2JHc\nIgUkEKjKj6elKFvSaJozNdRpr2xE64I5xFEp2KVNHnf0yelc7zr1e8zfqqnP\nIhi2Y5HcPYUqUJ0T6a8/n6pf/Lk4NDEi8SwjZXin016bpPS1uO9AAvxqjwTV\nZoNfhI6S+B9RAcFd1C+AOZRRyKU+m8uVbfE6LcSWyKVeomdr49tOdp+OjHE+\nLl/9oScvVfdCEkTzhXobyCSe3kEVOs+skksUG1m6Km1ISBA1CY5hRNnJfQsg\nC0cs+f/f3u+WYnJozzutPf3RFXHQnrD6ZndxVUitKr/x0fKqlnS7kthjPVcV\nX5/Zi6nImZj8v7neAy0CnM7AQQaIKM7l7LUdWa1+TfEzlkVvatbtQzvE2eEs\nuXgchmXv5hGV7ZSfLaC8APwU9qdutwCWLKbe/4Tiujl5pKHfG2GzpSCH2nYu\nYWjU\r\n=T6Qr\r\n-----END PGP SIGNATURE-----\r\n","size":10032,"noattachment":false,"key":"/@turf/polygonize/-/@turf/polygonize-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"node -r esm test.js","test:types":"tsc --noEmit types.ts"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf polygonize module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.1","@turf/helpers":"^6.2.0-alpha.1","@turf/envelope":"^6.2.0-alpha.1","@turf/invariant":"^6.2.0-alpha.1","@turf/boolean-point-in-polygon":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/polygonize_6.2.0-alpha.1_1585267357549_0.55992380916179","host":"s3://npm-registry-packages"},"readme":"# @turf/polygonize\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## polygonize\n\nPolygonizes [(Multi)LineString(s)][1] into [Polygons][2].\n\nImplementation of GEOSPolygonize function (`geos::operation::polygonize::Polygonizer`).\n\nPolygonizes a set of lines that represents edges in a planar graph. Edges must be correctly\nnoded, i.e., they must only meet at their endpoints.\n\nThe implementation correctly handles:\n\n*   Dangles: edges which have one or both ends which are not incident on another edge endpoint.\n*   Cut Edges (bridges): edges that are connected at both ends but which do not form part of a polygon.\n\n### Parameters\n\n*   `geoJson` **([FeatureCollection][3] | [Geometry][4] | [Feature][5]<([LineString][1] | [MultiLineString][6])>)** Lines in order to polygonize\n\n<!---->\n\n*   Throws **[Error][7]** if geoJson is invalid.\n\nReturns **[FeatureCollection][3]<[Polygon][2]>** Polygons created\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3.1.5\n\n[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/polygonize\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1585267357826,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1585267357826,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}