{"name":"@turf/polygonize","version":"6.2.0-alpha.2","keywords":["turf","geojson","gis","polygonize"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/polygonize@6.2.0-alpha.2","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":"975c46e101f89f9ff1efe18e48a451c91f983273","tarball":"http://registry-npm.ywwl.com/@turf/polygonize/download/@turf/polygonize-6.2.0-alpha.2.tgz","fileCount":7,"integrity":"sha512-kNovEpY04iZgX+k6IsyRbSkU+EiXQDWhx2FlhzQboLo+0lxkTEkZyD5W2KKlBvqAO8XTD7j3uNw7KgwV9bhemQ==","signatures":[{"sig":"MEQCIElkZJRp609x6pUah2e5b4fWm8iDw3vuQIsIzHSY4AKcAiBKBHPhC7DSAsufZf8nVbzujJPSFk8BU1bFehhR7HRcdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHRNCRA9TVsSAnZWagAAfP0P+wbhA8QSeBjAonSQzybZ\nzja6/MeaAiQ5trQIXJr6hIwXhy57XpKRoYrqL+BKtwrlyXQZA7EZbF676GpE\n8+s4z9hu6QPwmibstw29cweErGwi1SMrnVY24ULPwg0O6+AE/+ScgrxNFx6f\no+2pOQdh61Krwje1jcHBh70tXGyikd2rYNI7i0R+PbkWIzNjTgYE1hOvFguI\nD13XMg2HJY6HShozV4zEU6CB4lAmdJN//ywBhm+4OmON1oGzfuSuvMhVDXGw\nRqXR1uc5+7SZiGSrha+c0Q4Q7XhIBfRunzeTYQC2kVsrxcOUKOtMefLDu0se\nenzjJa0cV2teZLq+fOPQI7cQLeiCjrJ/tpaPEXKXb9kdkHy3Y2R8dR7wb+GD\nWml1dWTN3SHfA3AIj6rAaG7UL/0YW311hd4OwE4IJ9oGVrGvcQhlPt9gnoOP\nN0rLt7qXdFOeIaXmxN04ZLNmOclvVqaBWhDdyg1IzoMKjAYPDVgzddcKlgpD\n9mi14yemNs2WhNGOBPGEu8/HDLU7OvA8Cca0RndkqCzzJwERnJgWoQ5zIGMC\nwcrNJd+huIiGWyHPmLLFu7ObAoIxTYDofDAlJZQvBT1uRyhsR7N/OCS8qF0a\n2QR7Dc7B0goz5dvQgCXClnyHJIKEUMFT986jnAt7Dq8zDzsPxEGKtxL7o8ns\ncrVl\r\n=LXzk\r\n-----END PGP SIGNATURE-----\r\n","size":10038,"noattachment":false,"key":"/@turf/polygonize/-/@turf/polygonize-6.2.0-alpha.2.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","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.2","@turf/helpers":"^6.2.0-alpha.2","@turf/envelope":"^6.2.0-alpha.2","@turf/invariant":"^6.2.0-alpha.2","@turf/boolean-point-in-polygon":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/polygonize_6.2.0-alpha.2_1594651724773_0.02659251151385922","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":1594651724883,"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":1594651724883,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}