all these changes

This commit is contained in:
Jake Kasper
2026-04-09 13:19:47 -05:00
parent e83a51a051
commit 65315f36d1
39102 changed files with 7932979 additions and 567 deletions

20
frontend/node_modules/@turf/dissolve/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 TurfJS
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

96
frontend/node_modules/@turf/dissolve/README.md generated vendored Normal file
View File

@@ -0,0 +1,96 @@
# @turf/dissolve
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## dissolve
Dissolves a FeatureCollection of [polygon][1] features, filtered by an optional property name:value.
Note that [mulitpolygon][2] features within the collection are not supported
**Parameters**
- `featureCollection` **[FeatureCollection][3]&lt;[Polygon][4]>** input feature collection to be dissolved
- `options` **[Object][5]** Optional parameters (optional, default `{}`)
- `options.propertyName` **[string][6]?** features with equals 'propertyName' in `properties` will be merged
**Examples**
```javascript
var features = turf.featureCollection([
turf.polygon(
[
[
[0, 0],
[0, 1],
[1, 1],
[1, 0],
[0, 0],
],
],
{ combine: "yes" }
),
turf.polygon(
[
[
[0, -1],
[0, 0],
[1, 0],
[1, -1],
[0, -1],
],
],
{ combine: "yes" }
),
turf.polygon(
[
[
[1, -1],
[1, 0],
[2, 0],
[2, -1],
[1, -1],
],
],
{ combine: "no" }
),
]);
var dissolved = turf.dissolve(features, { propertyName: "combine" });
//addToMap
var addToMap = [features, dissolved];
```
Returns **[FeatureCollection][3]&lt;[Polygon][4]>** a FeatureCollection containing the dissolved polygons
[1]: polygon
[2]: mulitpolygon
[3]: https://tools.ietf.org/html/rfc7946#section-3.3
[4]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
<!-- This file is automatically generated. Please don't edit it directly:
if you find an error, edit the source file (likely index.js), and re-run
./scripts/generate-readmes in the turf project. -->
---
This module is part of the [Turfjs project](http://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.
### Installation
Install this module individually:
```sh
$ npm install @turf/dissolve
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

81
frontend/node_modules/@turf/dissolve/dist/es/index.js generated vendored Executable file
View File

@@ -0,0 +1,81 @@
import { isObject, multiPolygon, featureCollection } from '@turf/helpers';
import { collectionOf } from '@turf/invariant';
import { featureEach } from '@turf/meta';
import flatten from '@turf/flatten';
import polygonClipping from 'polygon-clipping';
/**
* Dissolves a FeatureCollection of {@link polygon} features, filtered by an optional property name:value.
* Note that {@link mulitpolygon} features within the collection are not supported
*
* @name dissolve
* @param {FeatureCollection<Polygon>} featureCollection input feature collection to be dissolved
* @param {Object} [options={}] Optional parameters
* @param {string} [options.propertyName] features with the same `propertyName` value will be dissolved.
* @returns {FeatureCollection<Polygon>} a FeatureCollection containing the dissolved polygons
* @example
* var features = turf.featureCollection([
* turf.polygon([[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]], {combine: 'yes'}),
* turf.polygon([[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]], {combine: 'yes'}),
* turf.polygon([[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]], {combine: 'no'}),
* ]);
*
* var dissolved = turf.dissolve(features, {propertyName: 'combine'});
*
* //addToMap
* var addToMap = [features, dissolved]
*/
function dissolve(fc, options) {
// Optional parameters
options = options || {};
if (!isObject(options)) throw new Error("options is invalid");
var propertyName = options.propertyName;
// Input validation
collectionOf(fc, "Polygon", "dissolve");
// Main
var outFeatures = [];
if (!options.propertyName) {
return flatten(
multiPolygon(
polygonClipping.union.apply(
null,
fc.features.map(function (f) {
return f.geometry.coordinates;
})
)
)
);
} else {
var uniquePropertyVals = {};
featureEach(fc, function (feature) {
if (
!Object.prototype.hasOwnProperty.call(
uniquePropertyVals,
feature.properties[propertyName]
)
) {
uniquePropertyVals[feature.properties[propertyName]] = [];
}
uniquePropertyVals[feature.properties[propertyName]].push(feature);
});
var vals = Object.keys(uniquePropertyVals);
for (var i = 0; i < vals.length; i++) {
var mp = multiPolygon(
polygonClipping.union.apply(
null,
uniquePropertyVals[vals[i]].map(function (f) {
return f.geometry.coordinates;
})
)
);
mp.properties[propertyName] = vals[i];
outFeatures.push(mp);
}
}
return flatten(featureCollection(outFeatures));
}
export default dissolve;

View File

@@ -0,0 +1 @@
{"type":"module"}

89
frontend/node_modules/@turf/dissolve/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,89 @@
'use strict';
var helpers = require('@turf/helpers');
var invariant = require('@turf/invariant');
var meta = require('@turf/meta');
var flatten = require('@turf/flatten');
var polygonClipping = require('polygon-clipping');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var flatten__default = /*#__PURE__*/_interopDefaultLegacy(flatten);
var polygonClipping__default = /*#__PURE__*/_interopDefaultLegacy(polygonClipping);
/**
* Dissolves a FeatureCollection of {@link polygon} features, filtered by an optional property name:value.
* Note that {@link mulitpolygon} features within the collection are not supported
*
* @name dissolve
* @param {FeatureCollection<Polygon>} featureCollection input feature collection to be dissolved
* @param {Object} [options={}] Optional parameters
* @param {string} [options.propertyName] features with the same `propertyName` value will be dissolved.
* @returns {FeatureCollection<Polygon>} a FeatureCollection containing the dissolved polygons
* @example
* var features = turf.featureCollection([
* turf.polygon([[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]], {combine: 'yes'}),
* turf.polygon([[[0, -1], [0, 0], [1, 0], [1, -1], [0,-1]]], {combine: 'yes'}),
* turf.polygon([[[1,-1],[1, 0], [2, 0], [2, -1], [1, -1]]], {combine: 'no'}),
* ]);
*
* var dissolved = turf.dissolve(features, {propertyName: 'combine'});
*
* //addToMap
* var addToMap = [features, dissolved]
*/
function dissolve(fc, options) {
// Optional parameters
options = options || {};
if (!helpers.isObject(options)) throw new Error("options is invalid");
var propertyName = options.propertyName;
// Input validation
invariant.collectionOf(fc, "Polygon", "dissolve");
// Main
var outFeatures = [];
if (!options.propertyName) {
return flatten__default['default'](
helpers.multiPolygon(
polygonClipping__default['default'].union.apply(
null,
fc.features.map(function (f) {
return f.geometry.coordinates;
})
)
)
);
} else {
var uniquePropertyVals = {};
meta.featureEach(fc, function (feature) {
if (
!Object.prototype.hasOwnProperty.call(
uniquePropertyVals,
feature.properties[propertyName]
)
) {
uniquePropertyVals[feature.properties[propertyName]] = [];
}
uniquePropertyVals[feature.properties[propertyName]].push(feature);
});
var vals = Object.keys(uniquePropertyVals);
for (var i = 0; i < vals.length; i++) {
var mp = helpers.multiPolygon(
polygonClipping__default['default'].union.apply(
null,
uniquePropertyVals[vals[i]].map(function (f) {
return f.geometry.coordinates;
})
)
);
mp.properties[propertyName] = vals[i];
outFeatures.push(mp);
}
}
return flatten__default['default'](helpers.featureCollection(outFeatures));
}
module.exports = dissolve;
module.exports.default = dissolve;

11
frontend/node_modules/@turf/dissolve/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import { FeatureCollection, Polygon } from "@turf/helpers";
/**
* http://turfjs.org/docs.html#dissolve
*/
export default function dissolve(
featureCollection: FeatureCollection<Polygon>,
options?: {
propertyName?: string;
}
): FeatureCollection<Polygon>;

63
frontend/node_modules/@turf/dissolve/package.json generated vendored Normal file
View File

@@ -0,0 +1,63 @@
{
"name": "@turf/dissolve",
"version": "6.5.0",
"description": "turf dissolve module",
"author": "Turf Authors",
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf",
"repository": {
"type": "git",
"url": "git://github.com/Turfjs/turf.git"
},
"funding": "https://opencollective.com/turf",
"publishConfig": {
"access": "public"
},
"keywords": [
"turf",
"dissolve",
"gis",
"geojson",
"polygon"
],
"main": "dist/js/index.js",
"module": "dist/es/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
},
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist",
"index.d.ts"
],
"scripts": {
"bench": "node -r esm bench.js",
"build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
"docs": "node ../../scripts/generate-readmes",
"test": "npm-run-all test:*",
"test:tape": "node -r esm test.js"
},
"devDependencies": {
"benchmark": "*",
"load-json-file": "*",
"npm-run-all": "*",
"rollup": "*",
"tape": "*",
"write-json-file": "*"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/meta": "^6.5.0",
"polygon-clipping": "^0.15.3"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}