{"name":"@turf/dissolve","version":"7.0.0-alpha.1","keywords":["turf","dissolve","gis","geojson","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/dissolve@7.0.0-alpha.1","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"1656640cdf81bf44e818b56921f00967ab4f12a9","tarball":"http://registry-npm.ywwl.com/@turf/dissolve/download/@turf/dissolve-7.0.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-/TFVox1LNOop5sz/5lCdYYly2KMPJOjoU8AR4qhaaC8z1+myM0WRJcpDo42kh+zRSpVKemzEwlXJjutiZcrp/w==","signatures":[{"sig":"MEUCIQDf4PoWaffy0YYIsuxE0lByt/vOUJV8N1fZM3NCKbx6jgIgYoiyHwzc21awzunqjZf1Nms0jp1ineHmMmdzFvvAgpk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10796,"size":3416,"noattachment":false,"key":"/@turf/dissolve/-/@turf/dissolve-7.0.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{".":{"types":"./index.d.ts","import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"cf7a0c507b017ca066acffd0ce23bda5b393fb5a","scripts":{"docs":"tsx ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"tsx bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","test:tape":"tsx test.js"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v19.6.1+arm64 (darwin)","description":"turf dissolve module","directories":{},"sideEffects":false,"_nodeVersion":"19.6.1","dependencies":{"@turf/meta":"^7.0.0-alpha.1","@turf/flatten":"^7.0.0-alpha.1","@turf/helpers":"^7.0.0-alpha.1","@turf/invariant":"^7.0.0-alpha.1","polygon-clipping":"^0.15.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"*","tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/dissolve_7.0.0-alpha.1_1695080764295_0.475083015034403","host":"s3://npm-registry-packages"},"readme":"# @turf/dissolve\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## dissolve\n\nDissolves a FeatureCollection of [polygon][1] features, filtered by an optional property name:value.\nNote that [mulitpolygon][2] features within the collection are not supported\n\n### Parameters\n\n*   `featureCollection` **[FeatureCollection][3]<[Polygon][4]>** input feature collection to be dissolved\n*   `options` **[Object][5]** Optional parameters (optional, default `{}`)\n\n    *   `options.propertyName` **[string][6]?** features with the same `propertyName` value will be dissolved.\n\n### Examples\n\n```javascript\nvar features = turf.featureCollection([\n  turf.polygon([[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]], {combine: 'yes'}),\n  turf.polygon([[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]], {combine: 'yes'}),\n  turf.polygon([[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]], {combine: 'no'}),\n]);\n\nvar dissolved = turf.dissolve(features, {propertyName: 'combine'});\n\n//addToMap\nvar addToMap = [features, dissolved]\n```\n\nReturns **[FeatureCollection][3]<[Polygon][4]>** a FeatureCollection containing the dissolved polygons\n\n[1]: polygon\n\n[2]: mulitpolygon\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String\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/dissolve\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":1695080764449,"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":1695080764449,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}