From da43c80ac197619263563ff2cf06ef3b2731b5a9 Mon Sep 17 00:00:00 2001 From: hadrien Date: Mon, 2 Dec 2024 13:42:22 +0100 Subject: [PATCH 1/2] fix [turf-centroid] fixes the wrong results when calculating centroid of "big" polygones or polygones at high latitude. The centroid is now calculated in euclidean coordinates, and is converted back to geographical coordinates. --- packages/turf-centroid/index.ts | 38 +++++++++++++++++-- packages/turf-centroid/package.json | 1 + packages/turf-centroid/test.ts | 15 ++++++++ .../test/out/feature-collection.geojson | 2 +- .../test/out/imbalanced-polygon.geojson | 2 +- .../turf-centroid/test/out/linestring.geojson | 2 +- packages/turf-centroid/test/out/point.geojson | 2 +- .../turf-centroid/test/out/polygon.geojson | 2 +- pnpm-lock.yaml | 3 ++ 9 files changed, 58 insertions(+), 9 deletions(-) diff --git a/packages/turf-centroid/index.ts b/packages/turf-centroid/index.ts index 0a662e8066..4cac253864 100644 --- a/packages/turf-centroid/index.ts +++ b/packages/turf-centroid/index.ts @@ -1,5 +1,11 @@ import { Feature, GeoJsonProperties, Point } from "geojson"; -import { point, AllGeoJSON } from "@turf/helpers"; +import { + point, + degreesToRadians, + radiansToDegrees, + earthRadius, + AllGeoJSON, +} from "@turf/helpers"; import { coordEach } from "@turf/meta"; /** @@ -26,17 +32,41 @@ function centroid

( ): Feature { let xSum = 0; let ySum = 0; + let zSum = 0; let len = 0; coordEach( geojson, function (coord) { - xSum += coord[0]; - ySum += coord[1]; + xSum += + Math.cos(degreesToRadians(coord[0])) * + Math.cos(degreesToRadians(coord[1])) * + earthRadius; + ySum += + Math.sin(degreesToRadians(coord[0])) * + Math.cos(degreesToRadians(coord[1])) * + earthRadius; + zSum += Math.sin(degreesToRadians(coord[1])) * earthRadius; len++; }, true ); - return point([xSum / len, ySum / len], options.properties); + return point( + [ + radiansToDegrees(Math.atan2(ySum / len, xSum / len)), + radiansToDegrees( + Math.asin( + zSum / + len / + Math.sqrt( + Math.pow(xSum / len, 2) + + Math.pow(ySum / len, 2) + + Math.pow(zSum / len, 2) + ) + ) + ), + ], + options.properties + ); } export { centroid }; diff --git a/packages/turf-centroid/package.json b/packages/turf-centroid/package.json index 5ad62aa884..6f9e50e354 100644 --- a/packages/turf-centroid/package.json +++ b/packages/turf-centroid/package.json @@ -52,6 +52,7 @@ "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" }, "devDependencies": { + "@turf/circle": "workspace:^", "@types/benchmark": "^2.1.5", "@types/tape": "^4.2.32", "benchmark": "^2.1.4", diff --git a/packages/turf-centroid/test.ts b/packages/turf-centroid/test.ts index 467f33412c..0c37626cfe 100644 --- a/packages/turf-centroid/test.ts +++ b/packages/turf-centroid/test.ts @@ -7,6 +7,7 @@ import { writeJsonFileSync } from "write-json-file"; import { featureEach } from "@turf/meta"; import { featureCollection, lineString } from "@turf/helpers"; import { centroid } from "./index.js"; +import { circle } from "@turf/circle"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -43,6 +44,20 @@ test("centroid", (t) => { t.end(); }); +test("centroid -- circle consistency", (t) => { + const circ = circle([4.832, 45.7578], 4000); + const center = centroid(circ); + t.true( + Math.abs(center.geometry.coordinates[0] - 4.832) < 0.0000001, + "lon equality" + ); + t.true( + Math.abs(center.geometry.coordinates[1] - 45.7578) < 0.0000001, + "lat equality" + ); + t.end(); +}); + test("centroid -- properties", (t) => { const line = lineString([ [0, 0], diff --git a/packages/turf-centroid/test/out/feature-collection.geojson b/packages/turf-centroid/test/out/feature-collection.geojson index 9d1cbb4f03..455cd6cb04 100644 --- a/packages/turf-centroid/test/out/feature-collection.geojson +++ b/packages/turf-centroid/test/out/feature-collection.geojson @@ -8,7 +8,7 @@ }, "geometry": { "type": "Point", - "coordinates": [4.8336222767829895, 45.76051644154402] + "coordinates": [4.833622276817487, 45.76051644217321] } }, { diff --git a/packages/turf-centroid/test/out/imbalanced-polygon.geojson b/packages/turf-centroid/test/out/imbalanced-polygon.geojson index 3a257a70ad..a6dd0334c2 100644 --- a/packages/turf-centroid/test/out/imbalanced-polygon.geojson +++ b/packages/turf-centroid/test/out/imbalanced-polygon.geojson @@ -8,7 +8,7 @@ }, "geometry": { "type": "Point", - "coordinates": [4.851791984156558, 45.78143055383553] + "coordinates": [4.851791902704642, 45.78143064842905] } }, { diff --git a/packages/turf-centroid/test/out/linestring.geojson b/packages/turf-centroid/test/out/linestring.geojson index b2447abf8e..32dc1dd543 100644 --- a/packages/turf-centroid/test/out/linestring.geojson +++ b/packages/turf-centroid/test/out/linestring.geojson @@ -8,7 +8,7 @@ }, "geometry": { "type": "Point", - "coordinates": [4.860076904296875, 45.75919915723537] + "coordinates": [4.8600768820512945, 45.75919915730767] } }, { diff --git a/packages/turf-centroid/test/out/point.geojson b/packages/turf-centroid/test/out/point.geojson index 931d3d83f2..6e745eeca0 100644 --- a/packages/turf-centroid/test/out/point.geojson +++ b/packages/turf-centroid/test/out/point.geojson @@ -8,7 +8,7 @@ }, "geometry": { "type": "Point", - "coordinates": [4.831961989402771, 45.75764678012361] + "coordinates": [4.83196198940277, 45.75764678012361] } }, { diff --git a/packages/turf-centroid/test/out/polygon.geojson b/packages/turf-centroid/test/out/polygon.geojson index 5ae0c04dde..3db3267af1 100644 --- a/packages/turf-centroid/test/out/polygon.geojson +++ b/packages/turf-centroid/test/out/polygon.geojson @@ -8,7 +8,7 @@ }, "geometry": { "type": "Point", - "coordinates": [4.841194152832031, 45.75807143030368] + "coordinates": [4.841194013099296, 45.758082963072354] } }, { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e4053095ba..7b1c8773af 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1963,6 +1963,9 @@ importers: specifier: ^2.6.2 version: 2.6.2 devDependencies: + '@turf/circle': + specifier: workspace:^ + version: link:../turf-circle '@types/benchmark': specifier: ^2.1.5 version: 2.1.5 From e5b26619fa549e06a7e9bca2c7a7f64926b126ab Mon Sep 17 00:00:00 2001 From: hadrien Date: Thu, 30 Jan 2025 14:16:20 +0100 Subject: [PATCH 2/2] updates tests to match the fix made to centroid --- .../test/out/linestring.geojson | 2 +- packages/turf-distance-weight/test.ts | 6 +- .../test/out/brazil-states-bbox.json | 60 +- ...il-states-brazil-itself-as-study-area.json | 60 +- .../test/out/random-large-study-area.json | 6 +- .../test/out/random-outlier.json | 6 +- .../test/out/random.json | 6 +- .../test/out/squares.json | 118 +-- .../test/out/line.geojson | 26 +- .../test/out/multiPoint.geojson | 10 +- .../test/out/multiPolygon.geojson | 202 ++--- .../test/out/no-rotation.geojson | 2 +- .../test/out/polygon-fiji.geojson | 42 +- .../test/out/polygon-resolute-bay.geojson | 48 +- .../test/out/polygon-with-hole.geojson | 50 +- .../test/out/z-coord.geojson | 14 +- packages/turf-transform-scale/test.ts | 2 +- .../out/feature-collection-polygon.geojson | 204 ++--- .../test/out/issue-#1059.geojson | 12 +- .../test/out/issue-#895.geojson | 826 +++++++++--------- .../test/out/line.geojson | 26 +- .../test/out/polygon-fiji.geojson | 42 +- .../test/out/polygon-resolute-bay.geojson | 48 +- .../test/out/polygon.geojson | 10 +- .../test/out/z-scaling.geojson | 14 +- 25 files changed, 921 insertions(+), 921 deletions(-) diff --git a/packages/turf-center-of-mass/test/out/linestring.geojson b/packages/turf-center-of-mass/test/out/linestring.geojson index 80e9a055e9..b2e3e552c3 100644 --- a/packages/turf-center-of-mass/test/out/linestring.geojson +++ b/packages/turf-center-of-mass/test/out/linestring.geojson @@ -6,7 +6,7 @@ "properties": {}, "geometry": { "type": "Point", - "coordinates": [4.860076904296875, 45.75919915723537] + "coordinates": [4.8600768820512945, 45.75919915730767] } }, { diff --git a/packages/turf-distance-weight/test.ts b/packages/turf-distance-weight/test.ts index 3b55504c58..34b28eadfe 100644 --- a/packages/turf-distance-weight/test.ts +++ b/packages/turf-distance-weight/test.ts @@ -52,7 +52,7 @@ test("turf-distance-weight", (t) => { p: 2, alpha: 1, }); - t.equal(result[0][1], 0.5987182558007202, "change p"); + t.equal(result[0][1], 0.5987182558007197, "change p"); // test alpha result = distanceWeight(columbusJson, { @@ -70,7 +70,7 @@ test("turf-distance-weight", (t) => { alpha: 1, standardization: true, }); - t.equal(result[0][1], 0.5311565480348293, "standardization 1"); + t.equal(result[0][1], 0.531156548034828, "standardization 1"); result = distanceWeight(columbusJson, { threshold: 1, @@ -83,7 +83,7 @@ test("turf-distance-weight", (t) => { // test default result = distanceWeight(columbusJson); - t.equal(result[0][1], 1.6702346893742355, "default arguments"); + t.equal(result[0][1], 1.670234689374237, "default arguments"); t.end(); }); diff --git a/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-bbox.json b/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-bbox.json index b45d0eb231..c34f7cad70 100644 --- a/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-bbox.json +++ b/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-bbox.json @@ -555,7 +555,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-70.711838, -9.6667] + "coordinates": [-70.717217, -9.674658] } }, { @@ -565,7 +565,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-64.895682, -3.539922] + "coordinates": [-64.897527, -3.55456] } }, { @@ -575,7 +575,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-61.034973, 2.481296] + "coordinates": [-61.034091, 2.482883] } }, { @@ -585,7 +585,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-54.04728, -2.47827] + "coordinates": [-54.049543, -2.482968] } }, { @@ -595,7 +595,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-51.93955, 1.532991] + "coordinates": [-51.939246, 1.533609] } }, { @@ -605,7 +605,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-45.204508, -5.658899] + "coordinates": [-45.20158, -5.66329] } }, { @@ -615,7 +615,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-43.190225, -7.532436] + "coordinates": [-43.183772, -7.537508] } }, { @@ -625,7 +625,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-39.369317, -5.171595] + "coordinates": [-39.369889, -5.172877] } }, { @@ -635,7 +635,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-36.481008, -5.729062] + "coordinates": [-36.481186, -5.730471] } }, { @@ -645,7 +645,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-36.701498, -7.265543] + "coordinates": [-36.701202, -7.268469] } }, { @@ -655,7 +655,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-38.37127, -8.428198] + "coordinates": [-38.370655, -8.434585] } }, { @@ -665,7 +665,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-36.559011, -9.590558] + "coordinates": [-36.558896, -9.592822] } }, { @@ -675,7 +675,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-37.375799, -10.504254] + "coordinates": [-37.376642, -10.505073] } }, { @@ -685,7 +685,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-41.611885, -12.314066] + "coordinates": [-41.617537, -12.327598] } }, { @@ -695,7 +695,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-47.69331, -10.670411] + "coordinates": [-47.693462, -10.676052] } }, { @@ -705,7 +705,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-63.02676, -10.556168] + "coordinates": [-63.031682, -10.564829] } }, { @@ -715,7 +715,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-57.236215, -12.990613] + "coordinates": [-57.246128, -13.016073] } }, { @@ -725,7 +725,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-54.533546, -20.933879] + "coordinates": [-54.52497, -20.952142] } }, { @@ -735,7 +735,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-47.78985, -15.758002] + "coordinates": [-47.789948, -15.758747] } }, { @@ -745,7 +745,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-48.723366, -15.939895] + "coordinates": [-48.714117, -15.951381] } }, { @@ -755,7 +755,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-45.869014, -18.350761] + "coordinates": [-45.864153, -18.380836] } }, { @@ -765,7 +765,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-40.573733, -19.632901] + "coordinates": [-40.569849, -19.634754] } }, { @@ -775,7 +775,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-42.755674, -22.137708] + "coordinates": [-42.750291, -22.143454] } }, { @@ -785,7 +785,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-48.227816, -22.6959] + "coordinates": [-48.231165, -22.718747] } }, { @@ -795,7 +795,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-50.990053, -24.761505] + "coordinates": [-50.994551, -24.777686] } }, { @@ -805,7 +805,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-50.980368, -27.223693] + "coordinates": [-50.986482, -27.239054] } }, { @@ -815,7 +815,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-53.104413, -29.573196] + "coordinates": [-53.108835, -29.598061] } }, { @@ -830,11 +830,11 @@ "nearestNeighborAnalysis": { "units": "kilometers", "arealUnits": "kilometers²", - "observedMeanDistance": 397.83037100327755, + "observedMeanDistance": 398.11631438919727, "expectedMeanDistance": 406.3163545616098, - "nearestNeighborIndex": 0.9791148363508821, + "nearestNeighborIndex": 0.9798185820473314, "numberOfPoints": 27, - "zScore": -0.207611137308671 + "zScore": -0.20061548015842867 } }, "geometry": { diff --git a/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-brazil-itself-as-study-area.json b/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-brazil-itself-as-study-area.json index fbbfa47d38..edb441c1d3 100644 --- a/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-brazil-itself-as-study-area.json +++ b/packages/turf-nearest-neighbor-analysis/test/out/brazil-states-brazil-itself-as-study-area.json @@ -555,7 +555,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-70.711838, -9.6667] + "coordinates": [-70.717217, -9.674658] } }, { @@ -565,7 +565,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-64.895682, -3.539922] + "coordinates": [-64.897527, -3.55456] } }, { @@ -575,7 +575,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-61.034973, 2.481296] + "coordinates": [-61.034091, 2.482883] } }, { @@ -585,7 +585,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-54.04728, -2.47827] + "coordinates": [-54.049543, -2.482968] } }, { @@ -595,7 +595,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-51.93955, 1.532991] + "coordinates": [-51.939246, 1.533609] } }, { @@ -605,7 +605,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-45.204508, -5.658899] + "coordinates": [-45.20158, -5.66329] } }, { @@ -615,7 +615,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-43.190225, -7.532436] + "coordinates": [-43.183772, -7.537508] } }, { @@ -625,7 +625,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-39.369317, -5.171595] + "coordinates": [-39.369889, -5.172877] } }, { @@ -635,7 +635,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-36.481008, -5.729062] + "coordinates": [-36.481186, -5.730471] } }, { @@ -645,7 +645,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-36.701498, -7.265543] + "coordinates": [-36.701202, -7.268469] } }, { @@ -655,7 +655,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-38.37127, -8.428198] + "coordinates": [-38.370655, -8.434585] } }, { @@ -665,7 +665,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-36.559011, -9.590558] + "coordinates": [-36.558896, -9.592822] } }, { @@ -675,7 +675,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-37.375799, -10.504254] + "coordinates": [-37.376642, -10.505073] } }, { @@ -685,7 +685,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-41.611885, -12.314066] + "coordinates": [-41.617537, -12.327598] } }, { @@ -695,7 +695,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-47.69331, -10.670411] + "coordinates": [-47.693462, -10.676052] } }, { @@ -705,7 +705,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-63.02676, -10.556168] + "coordinates": [-63.031682, -10.564829] } }, { @@ -715,7 +715,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-57.236215, -12.990613] + "coordinates": [-57.246128, -13.016073] } }, { @@ -725,7 +725,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-54.533546, -20.933879] + "coordinates": [-54.52497, -20.952142] } }, { @@ -735,7 +735,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-47.78985, -15.758002] + "coordinates": [-47.789948, -15.758747] } }, { @@ -745,7 +745,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-48.723366, -15.939895] + "coordinates": [-48.714117, -15.951381] } }, { @@ -755,7 +755,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-45.869014, -18.350761] + "coordinates": [-45.864153, -18.380836] } }, { @@ -765,7 +765,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-40.573733, -19.632901] + "coordinates": [-40.569849, -19.634754] } }, { @@ -775,7 +775,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-42.755674, -22.137708] + "coordinates": [-42.750291, -22.143454] } }, { @@ -785,7 +785,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-48.227816, -22.6959] + "coordinates": [-48.231165, -22.718747] } }, { @@ -795,7 +795,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-50.990053, -24.761505] + "coordinates": [-50.994551, -24.777686] } }, { @@ -805,7 +805,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-50.980368, -27.223693] + "coordinates": [-50.986482, -27.239054] } }, { @@ -815,7 +815,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-53.104413, -29.573196] + "coordinates": [-53.108835, -29.598061] } }, { @@ -827,11 +827,11 @@ "nearestNeighborAnalysis": { "units": "kilometers", "arealUnits": "kilometers²", - "observedMeanDistance": 397.83037100327755, + "observedMeanDistance": 398.11631438919727, "expectedMeanDistance": 282.2804354834354, - "nearestNeighborIndex": 1.4093444709405756, + "nearestNeighborIndex": 1.4103574472222298, "numberOfPoints": 27, - "zScore": 4.069131206763539 + "zScore": 4.07920080264673 } }, "geometry": { diff --git a/packages/turf-nearest-neighbor-analysis/test/out/random-large-study-area.json b/packages/turf-nearest-neighbor-analysis/test/out/random-large-study-area.json index f66a328005..3846e12401 100644 --- a/packages/turf-nearest-neighbor-analysis/test/out/random-large-study-area.json +++ b/packages/turf-nearest-neighbor-analysis/test/out/random-large-study-area.json @@ -1210,11 +1210,11 @@ "nearestNeighborAnalysis": { "units": "kilometers", "arealUnits": "kilometers²", - "observedMeanDistance": 1.6516270145942438, + "observedMeanDistance": 1.6516270145942225, "expectedMeanDistance": 25.46147090834068, - "nearestNeighborIndex": 0.0648676983564686, + "nearestNeighborIndex": 0.06486769835646776, "numberOfPoints": 150, - "zScore": -21.91036291916375 + "zScore": -21.91036291916377 } }, "geometry": { diff --git a/packages/turf-nearest-neighbor-analysis/test/out/random-outlier.json b/packages/turf-nearest-neighbor-analysis/test/out/random-outlier.json index 5425cbb31f..8048f991c2 100644 --- a/packages/turf-nearest-neighbor-analysis/test/out/random-outlier.json +++ b/packages/turf-nearest-neighbor-analysis/test/out/random-outlier.json @@ -1219,11 +1219,11 @@ "nearestNeighborAnalysis": { "units": "kilometers", "arealUnits": "kilometers²", - "observedMeanDistance": 7.363991103875287, + "observedMeanDistance": 7.363991103875259, "expectedMeanDistance": 25.377020579774225, - "nearestNeighborIndex": 0.29018343901823024, + "nearestNeighborIndex": 0.29018343901822913, "numberOfPoints": 151, - "zScore": -16.686508895950315 + "zScore": -16.686508895950343 } }, "geometry": { diff --git a/packages/turf-nearest-neighbor-analysis/test/out/random.json b/packages/turf-nearest-neighbor-analysis/test/out/random.json index ca8b0b8ec9..cc0caff79e 100644 --- a/packages/turf-nearest-neighbor-analysis/test/out/random.json +++ b/packages/turf-nearest-neighbor-analysis/test/out/random.json @@ -1213,11 +1213,11 @@ "nearestNeighborAnalysis": { "units": "kilometers", "arealUnits": "kilometers²", - "observedMeanDistance": 1.6516270145942438, + "observedMeanDistance": 1.6516270145942225, "expectedMeanDistance": 1.5869473002516816, - "nearestNeighborIndex": 1.0407573171032865, + "nearestNeighborIndex": 1.0407573171032731, "numberOfPoints": 150, - "zScore": 0.9549532272331418 + "zScore": 0.9549532272328272 } }, "geometry": { diff --git a/packages/turf-nearest-neighbor-analysis/test/out/squares.json b/packages/turf-nearest-neighbor-analysis/test/out/squares.json index e38b42685d..c452be5117 100644 --- a/packages/turf-nearest-neighbor-analysis/test/out/squares.json +++ b/packages/turf-nearest-neighbor-analysis/test/out/squares.json @@ -904,7 +904,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.142619] + "coordinates": [-9.271422, 38.142622] } }, { @@ -914,7 +914,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.187585] + "coordinates": [-9.271422, 38.187588] } }, { @@ -924,7 +924,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.232551] + "coordinates": [-9.271422, 38.232554] } }, { @@ -934,7 +934,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.277517] + "coordinates": [-9.271422, 38.27752] } }, { @@ -944,7 +944,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.322483] + "coordinates": [-9.271422, 38.322486] } }, { @@ -954,7 +954,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.367449] + "coordinates": [-9.271422, 38.367452] } }, { @@ -964,7 +964,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.412415] + "coordinates": [-9.271422, 38.412419] } }, { @@ -974,7 +974,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.271422, 38.457381] + "coordinates": [-9.271422, 38.457385] } }, { @@ -984,7 +984,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.142619] + "coordinates": [-9.214281, 38.142622] } }, { @@ -994,7 +994,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.187585] + "coordinates": [-9.214281, 38.187588] } }, { @@ -1004,7 +1004,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.232551] + "coordinates": [-9.214281, 38.232554] } }, { @@ -1014,7 +1014,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.277517] + "coordinates": [-9.214281, 38.27752] } }, { @@ -1024,7 +1024,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.322483] + "coordinates": [-9.214281, 38.322486] } }, { @@ -1034,7 +1034,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.367449] + "coordinates": [-9.214281, 38.367452] } }, { @@ -1044,7 +1044,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.412415] + "coordinates": [-9.214281, 38.412419] } }, { @@ -1054,7 +1054,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.214281, 38.457381] + "coordinates": [-9.214281, 38.457385] } }, { @@ -1064,7 +1064,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.142619] + "coordinates": [-9.157141, 38.142622] } }, { @@ -1074,7 +1074,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.187585] + "coordinates": [-9.157141, 38.187588] } }, { @@ -1084,7 +1084,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.232551] + "coordinates": [-9.157141, 38.232554] } }, { @@ -1094,7 +1094,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.277517] + "coordinates": [-9.157141, 38.27752] } }, { @@ -1104,7 +1104,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.322483] + "coordinates": [-9.157141, 38.322486] } }, { @@ -1114,7 +1114,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.367449] + "coordinates": [-9.157141, 38.367452] } }, { @@ -1124,7 +1124,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.412415] + "coordinates": [-9.157141, 38.412419] } }, { @@ -1134,7 +1134,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.157141, 38.457381] + "coordinates": [-9.157141, 38.457385] } }, { @@ -1144,7 +1144,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.142619] + "coordinates": [-9.1, 38.142622] } }, { @@ -1154,7 +1154,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.187585] + "coordinates": [-9.1, 38.187588] } }, { @@ -1164,7 +1164,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.232551] + "coordinates": [-9.1, 38.232554] } }, { @@ -1174,7 +1174,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.277517] + "coordinates": [-9.1, 38.27752] } }, { @@ -1184,7 +1184,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.322483] + "coordinates": [-9.1, 38.322486] } }, { @@ -1194,7 +1194,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.367449] + "coordinates": [-9.1, 38.367452] } }, { @@ -1204,7 +1204,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.412415] + "coordinates": [-9.1, 38.412419] } }, { @@ -1214,7 +1214,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.1, 38.457381] + "coordinates": [-9.1, 38.457385] } }, { @@ -1224,7 +1224,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.142619] + "coordinates": [-9.042859, 38.142622] } }, { @@ -1234,7 +1234,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.187585] + "coordinates": [-9.042859, 38.187588] } }, { @@ -1244,7 +1244,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.232551] + "coordinates": [-9.042859, 38.232554] } }, { @@ -1254,7 +1254,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.277517] + "coordinates": [-9.042859, 38.27752] } }, { @@ -1264,7 +1264,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.322483] + "coordinates": [-9.042859, 38.322486] } }, { @@ -1274,7 +1274,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.367449] + "coordinates": [-9.042859, 38.367452] } }, { @@ -1284,7 +1284,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.412415] + "coordinates": [-9.042859, 38.412419] } }, { @@ -1294,7 +1294,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-9.042859, 38.457381] + "coordinates": [-9.042859, 38.457385] } }, { @@ -1304,7 +1304,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.142619] + "coordinates": [-8.985719, 38.142622] } }, { @@ -1314,7 +1314,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.187585] + "coordinates": [-8.985719, 38.187588] } }, { @@ -1324,7 +1324,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.232551] + "coordinates": [-8.985719, 38.232554] } }, { @@ -1334,7 +1334,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.277517] + "coordinates": [-8.985719, 38.27752] } }, { @@ -1344,7 +1344,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.322483] + "coordinates": [-8.985719, 38.322486] } }, { @@ -1354,7 +1354,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.367449] + "coordinates": [-8.985719, 38.367452] } }, { @@ -1364,7 +1364,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.412415] + "coordinates": [-8.985719, 38.412419] } }, { @@ -1374,7 +1374,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.985719, 38.457381] + "coordinates": [-8.985719, 38.457385] } }, { @@ -1384,7 +1384,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.142619] + "coordinates": [-8.928578, 38.142622] } }, { @@ -1394,7 +1394,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.187585] + "coordinates": [-8.928578, 38.187588] } }, { @@ -1404,7 +1404,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.232551] + "coordinates": [-8.928578, 38.232554] } }, { @@ -1414,7 +1414,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.277517] + "coordinates": [-8.928578, 38.27752] } }, { @@ -1424,7 +1424,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.322483] + "coordinates": [-8.928578, 38.322486] } }, { @@ -1434,7 +1434,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.367449] + "coordinates": [-8.928578, 38.367452] } }, { @@ -1444,7 +1444,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.412415] + "coordinates": [-8.928578, 38.412419] } }, { @@ -1454,7 +1454,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-8.928578, 38.457381] + "coordinates": [-8.928578, 38.457385] } }, { @@ -1469,11 +1469,11 @@ "nearestNeighborAnalysis": { "units": "kilometers", "arealUnits": "kilometers²", - "observedMeanDistance": 4.986280150858801, + "observedMeanDistance": 4.986279912733761, "expectedMeanDistance": 2.4965676693887655, - "nearestNeighborIndex": 1.9972541549733325, + "nearestNeighborIndex": 1.997254059592365, "numberOfPoints": 56, - "zScore": 14.276795896261763 + "zScore": 14.276794530777751 } }, "geometry": { diff --git a/packages/turf-transform-rotate/test/out/line.geojson b/packages/turf-transform-rotate/test/out/line.geojson index a3372f2b8c..9f6f88ca92 100644 --- a/packages/turf-transform-rotate/test/out/line.geojson +++ b/packages/turf-transform-rotate/test/out/line.geojson @@ -11,18 +11,18 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.252453, 44.514161], - [11.263107, 44.514583], - [11.27904, 44.52838], - [11.30355, 44.538077], - [11.321702, 44.532583], - [11.344144, 44.532389], - [11.360688, 44.522469], - [11.37551, 44.50308], - [11.375528, 44.492329], - [11.371706, 44.487117], - [11.37298, 44.473017], - [11.381001, 44.462359] + [11.252445, 44.514163], + [11.263099, 44.514585], + [11.279031, 44.528382], + [11.303542, 44.538078], + [11.321694, 44.532585], + [11.344136, 44.532391], + [11.36068, 44.522471], + [11.375502, 44.503082], + [11.37552, 44.492331], + [11.371698, 44.487118], + [11.372972, 44.473019], + [11.380993, 44.46236] ] } }, @@ -56,7 +56,7 @@ }, "geometry": { "type": "Point", - "coordinates": [11.333456039428711, 44.50837878425054] + "coordinates": [11.333456435397235, 44.508390324524655] } } ] diff --git a/packages/turf-transform-rotate/test/out/multiPoint.geojson b/packages/turf-transform-rotate/test/out/multiPoint.geojson index adf4f5e4dc..a6566976f5 100644 --- a/packages/turf-transform-rotate/test/out/multiPoint.geojson +++ b/packages/turf-transform-rotate/test/out/multiPoint.geojson @@ -11,10 +11,10 @@ "geometry": { "type": "MultiPoint", "coordinates": [ - [101.109995, 0.192785], - [99.828247, 0.79041], - [101.524987, 1.567546], - [99.486875, -0.610653] + [101.110084, 0.192778], + [99.828336, 0.790403], + [101.525076, 1.567539], + [99.486964, -0.610659] ] } }, @@ -40,7 +40,7 @@ }, "geometry": { "type": "Point", - "coordinates": [100.4875, 0.485] + "coordinates": [100.48754684476076, 0.4850278079246247] } } ] diff --git a/packages/turf-transform-rotate/test/out/multiPolygon.geojson b/packages/turf-transform-rotate/test/out/multiPolygon.geojson index 147ca4759f..cd9380e036 100644 --- a/packages/turf-transform-rotate/test/out/multiPolygon.geojson +++ b/packages/turf-transform-rotate/test/out/multiPolygon.geojson @@ -13,114 +13,114 @@ "coordinates": [ [ [ - [-80.483378, -34.57529], - [-80.466447, -34.579743], - [-80.460209, -34.592269], - [-80.405962, -34.603968], - [-80.388046, -34.598658], - [-80.382565, -34.582496], - [-80.406368, -34.548376], - [-80.451046, -34.522296], - [-80.476572, -34.538065], - [-80.483378, -34.57529] + [-80.484184, -34.5756], + [-80.467253, -34.580052], + [-80.461015, -34.592578], + [-80.406768, -34.604277], + [-80.388851, -34.598968], + [-80.383371, -34.582806], + [-80.407174, -34.548686], + [-80.451852, -34.522605], + [-80.477377, -34.538374], + [-80.484184, -34.5756] ] ], [ [ - [-78.972099, -33.521085], - [-78.973726, -33.531113], - [-78.956299, -33.541895], - [-78.957586, -33.560799], - [-78.964638, -33.567356], - [-78.970259, -33.567144], - [-78.974698, -33.571827], - [-78.975904, -33.57986], - [-78.97506, -33.582858], - [-78.97919, -33.588408], - [-78.980255, -33.601591], - [-78.974436, -33.602037], - [-78.974604, -33.606321], - [-78.978117, -33.606625], - [-78.980982, -33.613181], - [-78.97106, -33.614025], - [-78.965693, -33.611941], - [-78.97109, -33.609506], - [-78.973339, -33.607328], - [-78.971795, -33.601194], - [-78.964686, -33.596699], - [-78.96657, -33.59047], - [-78.97118, -33.588971], - [-78.967726, -33.579627], - [-78.956905, -33.582042], - [-78.956147, -33.578459], - [-78.959155, -33.576374], - [-78.957246, -33.569676], - [-78.946229, -33.572325], - [-78.942803, -33.56544], - [-78.942049, -33.551387], - [-78.934829, -33.547524], - [-78.916926, -33.561862], - [-78.89311, -33.542382], - [-78.84438, -33.536635], - [-78.838404, -33.522326], - [-78.850762, -33.519065], - [-78.85697, -33.514659], - [-78.875875, -33.508584], - [-78.895281, -33.518862], - [-78.895813, -33.523712], - [-78.909128, -33.527291], - [-78.915339, -33.519394], - [-78.9388, -33.517371], - [-78.942904, -33.513479], - [-78.958752, -33.515044], - [-78.972099, -33.521085] + [-78.972896, -33.521401], + [-78.974524, -33.531429], + [-78.957097, -33.542212], + [-78.958384, -33.561115], + [-78.965436, -33.567672], + [-78.971056, -33.56746], + [-78.975496, -33.572143], + [-78.976702, -33.580176], + [-78.975858, -33.583174], + [-78.979988, -33.588724], + [-78.981052, -33.601907], + [-78.975234, -33.602353], + [-78.975402, -33.606637], + [-78.978915, -33.606941], + [-78.98178, -33.613497], + [-78.971858, -33.614341], + [-78.966491, -33.612257], + [-78.971887, -33.609822], + [-78.974137, -33.607644], + [-78.972593, -33.60151], + [-78.965483, -33.597015], + [-78.967368, -33.590786], + [-78.971978, -33.589287], + [-78.968523, -33.579944], + [-78.957703, -33.582358], + [-78.956945, -33.578775], + [-78.959953, -33.57669], + [-78.958044, -33.569992], + [-78.947027, -33.572641], + [-78.943601, -33.565756], + [-78.942847, -33.551703], + [-78.935626, -33.54784], + [-78.917724, -33.562179], + [-78.893907, -33.542698], + [-78.845177, -33.536951], + [-78.839201, -33.522642], + [-78.851559, -33.519382], + [-78.857768, -33.514975], + [-78.876672, -33.508901], + [-78.896079, -33.519179], + [-78.896611, -33.524028], + [-78.909925, -33.527608], + [-78.916137, -33.51971], + [-78.939598, -33.517687], + [-78.943702, -33.513796], + [-78.95955, -33.51536], + [-78.972896, -33.521401] ] ], [ [ - [-78.970655, -33.629575], - [-78.97038, -33.635257], - [-78.966698, -33.635029], - [-78.966438, -33.633221], - [-78.964113, -33.632998], - [-78.963747, -33.635052], - [-78.964737, -33.635368], - [-78.9644, -33.637264], - [-78.959116, -33.638195], - [-78.959206, -33.640079], - [-78.950887, -33.640635], - [-78.947825, -33.638675], - [-78.945991, -33.638739], - [-78.945604, -33.640694], - [-78.944783, -33.638558], - [-78.946026, -33.637452], - [-78.943357, -33.637639], - [-78.943729, -33.6362], - [-78.94099, -33.634603], - [-78.934942, -33.633081], - [-78.934464, -33.63228], - [-78.935996, -33.631952], - [-78.938363, -33.632373], - [-78.94085, -33.633649], - [-78.941637, -33.632713], - [-78.943998, -33.631648], - [-78.946049, -33.633192], - [-78.949372, -33.632601], - [-78.950461, -33.633672], - [-78.952864, -33.632806], - [-78.954557, -33.633531], - [-78.954571, -33.632144], - [-78.956145, -33.632016], - [-78.956385, -33.630237], - [-78.961037, -33.627193], - [-78.962295, -33.627316], - [-78.963003, -33.630084], - [-78.966889, -33.630693], - [-78.968344, -33.62971], - [-78.968245, -33.628955], - [-78.969559, -33.628761], - [-78.969749, -33.629657], - [-78.970655, -33.629575] + [-78.971453, -33.629891], + [-78.971177, -33.635573], + [-78.967496, -33.635345], + [-78.967236, -33.633537], + [-78.96491, -33.633314], + [-78.964544, -33.635368], + [-78.965535, -33.635684], + [-78.965197, -33.63758], + [-78.959913, -33.638511], + [-78.960004, -33.640395], + [-78.951685, -33.640951], + [-78.948622, -33.638991], + [-78.946789, -33.639055], + [-78.946402, -33.64101], + [-78.94558, -33.638874], + [-78.946824, -33.637768], + [-78.944154, -33.637955], + [-78.944527, -33.636516], + [-78.941788, -33.634919], + [-78.935739, -33.633397], + [-78.935262, -33.632596], + [-78.936793, -33.632268], + [-78.939161, -33.632689], + [-78.941647, -33.633965], + [-78.942435, -33.633029], + [-78.944795, -33.631964], + [-78.946846, -33.633508], + [-78.95017, -33.632917], + [-78.951259, -33.633988], + [-78.953662, -33.633122], + [-78.955355, -33.633847], + [-78.955369, -33.63246], + [-78.956943, -33.632332], + [-78.957182, -33.630553], + [-78.961835, -33.627509], + [-78.963092, -33.627632], + [-78.963801, -33.6304], + [-78.967687, -33.631009], + [-78.969141, -33.630025], + [-78.969043, -33.629271], + [-78.970357, -33.629077], + [-78.970547, -33.629973], + [-78.971453, -33.629891] ] ] ] @@ -256,7 +256,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-79.08634303771343, -33.68749020845278] + "coordinates": [-79.08614093079811, -33.68870136322472] } } ] diff --git a/packages/turf-transform-rotate/test/out/no-rotation.geojson b/packages/turf-transform-rotate/test/out/no-rotation.geojson index 1036aacd82..ceca1a8ef2 100644 --- a/packages/turf-transform-rotate/test/out/no-rotation.geojson +++ b/packages/turf-transform-rotate/test/out/no-rotation.geojson @@ -94,7 +94,7 @@ }, "geometry": { "type": "Point", - "coordinates": [127.89720000000001, -27.307999999999993] + "coordinates": [127.89703134481053, -27.311814029137047] } } ] diff --git a/packages/turf-transform-rotate/test/out/polygon-fiji.geojson b/packages/turf-transform-rotate/test/out/polygon-fiji.geojson index 8e9358a363..4034fa06b7 100644 --- a/packages/turf-transform-rotate/test/out/polygon-fiji.geojson +++ b/packages/turf-transform-rotate/test/out/polygon-fiji.geojson @@ -13,30 +13,30 @@ "coordinates": [ [ [ - [-180.492063, -17.459212], - [-180.370976, -17.433132], - [-180.299414, -17.370105], - [-180.365522, -17.112142], - [-180.673219, -16.943559], - [-180.799476, -16.97502], - [-180.750256, -17.169571], - [-180.492063, -17.459212] + [179.509393, -17.459992], + [179.63048, -17.433911], + [179.702042, -17.370885], + [179.635933, -17.112922], + [179.328234, -16.94434], + [179.201977, -16.975801], + [179.251197, -17.170352], + [179.509393, -17.459992] ] ], [ [ - [-180.22799, -17.04385], - [-179.792297, -17.307707], - [-179.732114, -17.017918], - [-179.777245, -16.427649], - [-180.245198, -15.543629], - [-180.56836, -15.51301], - [-180.809159, -15.671427], - [-180.809418, -15.939503], - [-180.694654, -16.196919], - [-180.651019, -16.538667], - [-180.601828, -16.922566], - [-180.22799, -17.04385] + [179.773465, -17.044631], + [180.209161, -17.308487], + [180.269344, -17.018699], + [180.22421, -16.428431], + [179.756252, -15.544414], + [179.433089, -15.513795], + [179.192289, -15.672212], + [179.192031, -15.940287], + [179.306797, -16.197703], + [179.350433, -16.539449], + [179.399625, -16.923348], + [179.773465, -17.044631] ] ] ] @@ -88,7 +88,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-180.42572021484375, -16.69905167218912] + "coordinates": [179.57459825012916, -16.700138576222955] } } ] diff --git a/packages/turf-transform-rotate/test/out/polygon-resolute-bay.geojson b/packages/turf-transform-rotate/test/out/polygon-resolute-bay.geojson index 06a600adc8..233522e6e7 100644 --- a/packages/turf-transform-rotate/test/out/polygon-resolute-bay.geojson +++ b/packages/turf-transform-rotate/test/out/polygon-resolute-bay.geojson @@ -12,31 +12,31 @@ "type": "Polygon", "coordinates": [ [ - [-93.733309, 75.540938], - [-94.849869, 75.567104], - [-95.933141, 75.46343], - [-96.383707, 75.402789], - [-96.362684, 75.074432], - [-96.154, 74.827292], - [-95.846124, 74.687046], - [-95.151349, 74.564184], - [-94.563287, 74.700624], - [-94.154507, 74.836985], - [-93.455303, 75.035786], - [-93.27606, 75.298173], - [-93.228527, 75.411469], - [-93.411057, 75.497447], - [-93.733309, 75.540938] + [-93.737731, 75.542091], + [-94.854389, 75.56825], + [-95.937745, 75.464575], + [-96.388345, 75.403936], + [-96.367293, 75.075593], + [-96.158573, 74.828466], + [-95.850662, 74.688228], + [-95.155819, 74.565375], + [-94.567718, 74.701812], + [-94.158914, 74.838168], + [-93.459665, 75.036964], + [-93.280426, 75.29934], + [-93.232897, 75.41263], + [-93.415448, 75.498603], + [-93.737731, 75.542091] ], [ - [-94.274994, 75.381808], - [-95.14635, 75.361361], - [-95.717624, 75.198903], - [-95.491872, 74.902463], - [-95.058838, 74.786731], - [-94.122584, 75.027407], - [-93.993843, 75.266376], - [-94.274994, 75.381808] + [-94.279451, 75.382965], + [-95.150879, 75.362515], + [-95.722189, 75.200062], + [-95.496396, 74.903636], + [-95.063317, 74.787912], + [-94.127002, 75.028581], + [-93.998267, 75.26754], + [-94.279451, 75.382965] ] ] } @@ -86,7 +86,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-94.78062220982143, 75.13518489369591] + "coordinates": [-94.77737356178868, 75.13715556707157] } } ] diff --git a/packages/turf-transform-rotate/test/out/polygon-with-hole.geojson b/packages/turf-transform-rotate/test/out/polygon-with-hole.geojson index 49ef9db342..9bde3dbbec 100644 --- a/packages/turf-transform-rotate/test/out/polygon-with-hole.geojson +++ b/packages/turf-transform-rotate/test/out/polygon-with-hole.geojson @@ -18,45 +18,45 @@ "type": "Polygon", "coordinates": [ [ - [14.100752, 46.364285], - [14.100005, 46.365643], - [14.099026, 46.365657], - [14.096691, 46.368434], + [14.100751, 46.364285], + [14.100004, 46.365643], + [14.099025, 46.365657], + [14.09669, 46.368434], [14.096403, 46.369985], [14.094524, 46.37005], - [14.093946, 46.368707], - [14.091812, 46.369592], - [14.089859, 46.369686], - [14.086916, 46.367472], + [14.093945, 46.368707], + [14.091811, 46.369592], + [14.089858, 46.369686], + [14.086916, 46.367473], [14.086714, 46.366698], - [14.087289, 46.365785], + [14.087288, 46.365785], [14.087281, 46.364591], [14.084612, 46.361756], - [14.084612, 46.360867], - [14.087221, 46.360136], + [14.084611, 46.360867], + [14.08722, 46.360136], [14.087077, 46.354277], - [14.090214, 46.351215], - [14.092859, 46.352008], - [14.094079, 46.353881], - [14.094712, 46.356296], - [14.095538, 46.358053], - [14.096232, 46.359179], + [14.090213, 46.351216], + [14.092858, 46.352008], + [14.094078, 46.353882], + [14.094711, 46.356297], + [14.095537, 46.358053], + [14.096231, 46.359179], [14.095956, 46.360212], - [14.096746, 46.361333], - [14.100752, 46.364285] + [14.096745, 46.361334], + [14.100751, 46.364285] ], [ [14.092924, 46.365087], - [14.092501, 46.365529], - [14.091735, 46.365783], + [14.092501, 46.36553], + [14.091735, 46.365784], [14.090986, 46.365791], - [14.090847, 46.365684], - [14.090868, 46.36559], + [14.090846, 46.365684], + [14.090867, 46.365591], [14.090984, 46.365493], [14.091267, 46.365209], [14.09167, 46.36498], [14.091966, 46.364905], - [14.092843, 46.365034], + [14.092842, 46.365034], [14.092924, 46.365087] ] ] @@ -128,7 +128,7 @@ }, "geometry": { "type": "Point", - "coordinates": [14.092212915420532, 46.36346899882679] + "coordinates": [14.092212732972344, 46.36346919393381] } } ] diff --git a/packages/turf-transform-rotate/test/out/z-coord.geojson b/packages/turf-transform-rotate/test/out/z-coord.geojson index a00f767b58..e986bedffd 100644 --- a/packages/turf-transform-rotate/test/out/z-coord.geojson +++ b/packages/turf-transform-rotate/test/out/z-coord.geojson @@ -12,12 +12,12 @@ "type": "Polygon", "coordinates": [ [ - [123.17066, -20.595392, 10], - [122.695301, -25.749925, 10], - [126.980874, -27.382228, 10], - [129.68694, -24.888351, 10], - [128.263897, -20.766401, 10], - [123.17066, -20.595392, 10] + [123.193872, -20.608304, 10], + [122.718586, -25.762486, 10], + [127.004771, -27.394469, 10], + [129.711065, -24.90066, 10], + [128.287673, -20.779058, 10], + [123.193872, -20.608304, 10] ] ] } @@ -48,7 +48,7 @@ }, "geometry": { "type": "Point", - "coordinates": [126.158203125, -23.87759746657351] + "coordinates": [126.15532324196782, -23.907048143159262] } } ] diff --git a/packages/turf-transform-scale/test.ts b/packages/turf-transform-scale/test.ts index 5e361a388a..be4554872e 100644 --- a/packages/turf-transform-scale/test.ts +++ b/packages/turf-transform-scale/test.ts @@ -151,7 +151,7 @@ test("scale -- mutated input", (t) => { t.deepEqual( truncate(line, { precision: 1 }), lineString([ - [9.5, 8.8], + [9.5, 8.7], [12.5, 16.2], ]), "mutate = true - input should be mutated" diff --git a/packages/turf-transform-scale/test/out/feature-collection-polygon.geojson b/packages/turf-transform-scale/test/out/feature-collection-polygon.geojson index 214e07ff7a..78e8f1e554 100644 --- a/packages/turf-transform-scale/test/out/feature-collection-polygon.geojson +++ b/packages/turf-transform-scale/test/out/feature-collection-polygon.geojson @@ -14,16 +14,16 @@ "type": "Polygon", "coordinates": [ [ - [-80.878897, -33.732123], - [-80.857617, -33.755529], - [-80.864832, -33.782071], - [-80.793075, -33.852829], - [-80.756673, -33.861102], - [-80.725427, -33.839707], - [-80.71686, -33.760952], - [-80.753262, -33.675593], - [-80.816416, -33.677307], - [-80.878897, -33.732123] + [-80.878894, -33.73212], + [-80.857615, -33.755526], + [-80.864829, -33.782068], + [-80.793072, -33.852826], + [-80.75667, -33.861098], + [-80.725424, -33.839704], + [-80.716857, -33.760949], + [-80.753259, -33.67559], + [-80.816413, -33.677303], + [-80.878894, -33.73212] ] ] } @@ -42,100 +42,100 @@ "coordinates": [ [ [ - [-78.844645, -33.532541], - [-78.861115, -33.54741], - [-78.847381, -33.581716], - [-78.875523, -33.611443], - [-78.896118, -33.615445], - [-78.905043, -33.609728], - [-78.918773, -33.613158], - [-78.931817, -33.625162], - [-78.934564, -33.630877], - [-78.948982, -33.636021], - [-78.968896, -33.656595], - [-78.959971, -33.662881], - [-78.966151, -33.669739], - [-78.972331, -33.666882], - [-78.986065, -33.674882], - [-78.970961, -33.685738], - [-78.959288, -33.687452], - [-78.964779, -33.67831], - [-78.965465, -33.672596], - [-78.954478, -33.664024], - [-78.936626, -33.663453], - [-78.931132, -33.651452], - [-78.936625, -33.644594], - [-78.918087, -33.632592], - [-78.903669, -33.64688], - [-78.89749, -33.641737], - [-78.89955, -33.63545], - [-78.887192, -33.626305], - [-78.872773, -33.641165], - [-78.85767, -33.633163], - [-78.837078, -33.610872], - [-78.819915, -33.611443], - [-78.810292, -33.652024], - [-78.744384, -33.64288], - [-78.656475, -33.680024], - [-78.626964, -33.66231], - [-78.642769, -33.645166], - [-78.646899, -33.63202], - [-78.669575, -33.604012], - [-78.715571, -33.602297], - [-78.723118, -33.609728], - [-78.749895, -33.602869], - [-78.749218, -33.584003], - [-78.784923, -33.558274], - [-78.786299, -33.547982], - [-78.814445, -33.535401], - [-78.844645, -33.532541] + [-78.844655, -33.532532], + [-78.861126, -33.547401], + [-78.847392, -33.581707], + [-78.875533, -33.611434], + [-78.896128, -33.615436], + [-78.905053, -33.609719], + [-78.918783, -33.613149], + [-78.931828, -33.625153], + [-78.934574, -33.630868], + [-78.948993, -33.636012], + [-78.968906, -33.656587], + [-78.959981, -33.662873], + [-78.966162, -33.66973], + [-78.972341, -33.666873], + [-78.986075, -33.674873], + [-78.970971, -33.685729], + [-78.959298, -33.687443], + [-78.96479, -33.678301], + [-78.965476, -33.672587], + [-78.954489, -33.664015], + [-78.936636, -33.663444], + [-78.931143, -33.651443], + [-78.936635, -33.644585], + [-78.918097, -33.632583], + [-78.903679, -33.646871], + [-78.8975, -33.641728], + [-78.89956, -33.635441], + [-78.887203, -33.626296], + [-78.872784, -33.641156], + [-78.857681, -33.633155], + [-78.837089, -33.610863], + [-78.819926, -33.611434], + [-78.810303, -33.652015], + [-78.744394, -33.642871], + [-78.656485, -33.680015], + [-78.626974, -33.662301], + [-78.64278, -33.645157], + [-78.646909, -33.632011], + [-78.669585, -33.604003], + [-78.715581, -33.602288], + [-78.723129, -33.609719], + [-78.749906, -33.60286], + [-78.749228, -33.583994], + [-78.784933, -33.558265], + [-78.78631, -33.547973], + [-78.814455, -33.535392], + [-78.844655, -33.532532] ] ], [ [ - [-78.991738, -33.711591], - [-78.999123, -33.72116], - [-78.992771, -33.724301], - [-78.989852, -33.721588], - [-78.985732, -33.723445], - [-78.987965, -33.727158], - [-78.990025, -33.726729], - [-78.992086, -33.730157], - [-78.984705, -33.736726], - [-78.987452, -33.739724], - [-78.974577, -33.748578], - [-78.966851, -33.748292], - [-78.963932, -33.750148], - [-78.965993, -33.753718], - [-78.9617, -33.751005], - [-78.962215, -33.748007], - [-78.958095, -33.750862], - [-78.956721, -33.748149], - [-78.950024, -33.748149], - [-78.938006, -33.751434], - [-78.936117, -33.750577], - [-78.938177, -33.748578], - [-78.942641, -33.747007], - [-78.948479, -33.746721], - [-78.948479, -33.744437], - [-78.950882, -33.740438], - [-78.956376, -33.74101], - [-78.961011, -33.736868], - [-78.964274, -33.737582], - [-78.96702, -33.73387], - [-78.970797, -33.733441], - [-78.968908, -33.731156], - [-78.971312, -33.729443], - [-78.969251, -33.726301], - [-78.972683, -33.716875], - [-78.974914, -33.715875], - [-78.979894, -33.719731], - [-78.987104, -33.717018], - [-78.988133, -33.714019], - [-78.986931, -33.712876], - [-78.988819, -33.711305], - [-78.990365, -33.712591], - [-78.991738, -33.711591] + [-78.991749, -33.711582], + [-78.999133, -33.721151], + [-78.992782, -33.724293], + [-78.989862, -33.721579], + [-78.985742, -33.723436], + [-78.987975, -33.727149], + [-78.990035, -33.72672], + [-78.992096, -33.730148], + [-78.984715, -33.736717], + [-78.987463, -33.739716], + [-78.974588, -33.748569], + [-78.966861, -33.748283], + [-78.963943, -33.75014], + [-78.966004, -33.753709], + [-78.961711, -33.750996], + [-78.962225, -33.747998], + [-78.958105, -33.750853], + [-78.956731, -33.74814], + [-78.950035, -33.74814], + [-78.938016, -33.751425], + [-78.936128, -33.750568], + [-78.938188, -33.748569], + [-78.942652, -33.746998], + [-78.94849, -33.746713], + [-78.948489, -33.744428], + [-78.950893, -33.74043], + [-78.956387, -33.741001], + [-78.961022, -33.73686], + [-78.964284, -33.737574], + [-78.967031, -33.733861], + [-78.970808, -33.733432], + [-78.968919, -33.731147], + [-78.971322, -33.729434], + [-78.969261, -33.726292], + [-78.972693, -33.716866], + [-78.974925, -33.715866], + [-78.979904, -33.719723], + [-78.987114, -33.717009], + [-78.988144, -33.71401], + [-78.986942, -33.712867], + [-78.98883, -33.711296], + [-78.990375, -33.712582], + [-78.991749, -33.711582] ] ] ] @@ -285,7 +285,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-80.7958984375, -33.770801530340094] + "coordinates": [-80.79590138389719, -33.770804941090226] } }, { @@ -296,7 +296,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-78.91150214455344, -33.67896973235066] + "coordinates": [-78.91149167519886, -33.678978643596295] } } ] diff --git a/packages/turf-transform-scale/test/out/issue-#1059.geojson b/packages/turf-transform-scale/test/out/issue-#1059.geojson index 12664a3e57..b860a04b48 100644 --- a/packages/turf-transform-scale/test/out/issue-#1059.geojson +++ b/packages/turf-transform-scale/test/out/issue-#1059.geojson @@ -13,11 +13,11 @@ "type": "Polygon", "coordinates": [ [ - [-53.292048, 15.043169], - [69.112361, 15.043169], - [-132.621875, 89.647844], - [148.442187, 89.647844], - [-53.292048, 15.043169] + [-51.468094, 9.986801], + [67.288407, 9.986801], + [123.604654, 85.295788], + [-107.784341, 85.295788], + [-51.468094, 9.986801] ] ] } @@ -49,7 +49,7 @@ }, "geometry": { "type": "Point", - "coordinates": [7.91015625, 52.697662294134986] + "coordinates": [7.910156249999998, 57.75403007826368] } } ] diff --git a/packages/turf-transform-scale/test/out/issue-#895.geojson b/packages/turf-transform-scale/test/out/issue-#895.geojson index 7b580519c1..8582bae0f6 100644 --- a/packages/turf-transform-scale/test/out/issue-#895.geojson +++ b/packages/turf-transform-scale/test/out/issue-#895.geojson @@ -8,13 +8,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.84359383762614, 45.42809052672104], - [-122.85186614854638, 45.43811782493964], - [-122.86840636065244, 45.43811782493964], - [-122.87667867157268, 45.42809052672104], - [-122.86840856465221, 45.41806322850245], - [-122.85186394454661, 45.41806322850245], - [-122.84359383762614, 45.42809052672104] + [-122.84359383731464, 45.428092765277825], + [-122.85186614838244, 45.43812006349642], + [-122.86840636081644, 45.43812006349642], + [-122.87667867188424, 45.428092765277825], + [-122.86840856481626, 45.41806546705922], + [-122.85186394438261, 45.41806546705922], + [-122.84359383731464, 45.428092765277825] ] ] } @@ -26,13 +26,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.83532262913945, 45.47822701781403], - [-122.84773054633155, 45.49326796514193], - [-122.87254196286727, 45.49326796514193], - [-122.88494988005937, 45.47822701781403], - [-122.87254417072825, 45.463186070486124], - [-122.84772833847057, 45.463186070486124], - [-122.83532262913945, 45.47822701781403] + [-122.8353226288487, 45.47822851014389], + [-122.84773054616727, 45.49326945747179], + [-122.87254196303161, 45.49326945747179], + [-122.88494988035018, 45.47822851014389], + [-122.87254417089252, 45.46318756281599], + [-122.8477283383063, 45.46318756281599], + [-122.8353226288487, 45.47822851014389] ] ] } @@ -44,13 +44,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.84359383762614, 45.52836350890701], - [-122.85186615241241, 45.53839080712561], - [-122.86840635678641, 45.53839080712561], - [-122.87667867157268, 45.52836350890701], - [-122.86840856851524, 45.51833621068842], - [-122.85186394068364, 45.51833621068842], - [-122.84359383762614, 45.52836350890701] + [-122.84359383747483, 45.52836574733298], + [-122.85186615224785, 45.538393045551565], + [-122.86840635695103, 45.538393045551565], + [-122.87667867172405, 45.52836574733298], + [-122.86840856867985, 45.51833844911439], + [-122.85186394051902, 45.51833844911439], + [-122.84359383747483, 45.52836574733298] ] ] } @@ -62,13 +62,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.83532262913945, 45.5785], - [-122.84773055020491, 45.59354094732789], - [-122.8725419589939, 45.59354094732789], - [-122.88494988005937, 45.5785], - [-122.87254417459769, 45.5634590526721], - [-122.84772833460113, 45.5634590526721], - [-122.83532262913945, 45.5785] + [-122.83532262871279, 45.57850149223351], + [-122.84773055004007, 45.59354243956141], + [-122.87254195915881, 45.59354243956141], + [-122.88494988048603, 45.57850149223351], + [-122.87254417476254, 45.56346054490562], + [-122.84772833443634, 45.56346054490562], + [-122.83532262871279, 45.57850149223351] ] ] } @@ -80,13 +80,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.84359383762614, 45.62863649109298], - [-122.8518661562922, 45.638663789311586], - [-122.86840635290662, 45.638663789311586], - [-122.87667867157268, 45.62863649109298], - [-122.86840857239201, 45.61860919287439], - [-122.85186393680681, 45.61860919287439], - [-122.84359383762614, 45.62863649109298] + [-122.84359383714133, 45.62863872936071], + [-122.85186615612707, 45.63866602757931], + [-122.86840635307175, 45.63866602757931], + [-122.87667867205755, 45.62863872936071], + [-122.8684085725572, 45.618611431142114], + [-122.85186393664162, 45.618611431142114], + [-122.84359383714133, 45.62863872936071] ] ] } @@ -98,13 +98,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.83532262913945, 45.678772982185976], - [-122.8477305540921, 45.693813929513865], - [-122.87254195510673, 45.693813929513865], - [-122.88494988005937, 45.678772982185976], - [-122.87254417848095, 45.66373203485807], - [-122.84772833071787, 45.66373203485807], - [-122.83532262913945, 45.678772982185976] + [-122.83532262895153, 45.67877447430486], + [-122.84773055392668, 45.693815421632756], + [-122.87254195527214, 45.693815421632756], + [-122.88494988024729, 45.67877447430486], + [-122.87254417864636, 45.66373352697697], + [-122.84772833055251, 45.66373352697697], + [-122.83532262895153, 45.67877447430486] ] ] } @@ -116,13 +116,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.84359383762614, 45.728909473278954], - [-122.85186616018592, 45.73893677149755], - [-122.8684063490129, 45.73893677149755], - [-122.87667867157268, 45.728909473278954], - [-122.86840857628272, 45.71888217506035], - [-122.8518639329161, 45.71888217506035], - [-122.84359383762614, 45.728909473278954] + [-122.84359383738013, 45.728911711361036], + [-122.85186616002022, 45.73893900957963], + [-122.8684063491786, 45.73893900957963], + [-122.8766786718187, 45.728911711361036], + [-122.86840857644847, 45.71888441314243], + [-122.8518639327504, 45.71888441314243], + [-122.84359383738013, 45.728911711361036] ] ] } @@ -134,13 +134,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.77328856548962, 45.45315877226753], - [-122.78569648171549, 45.46819971959543], - [-122.81050790018361, 45.46819971959543], - [-122.82291581640948, 45.45315877226753], - [-122.81051010611316, 45.43811782493964], - [-122.785694275786, 45.43811782493964], - [-122.77328856548962, 45.45315877226753] + [-122.77328856537645, 45.45316026461863], + [-122.78569648155133, 45.46820121194652], + [-122.81050790034777, 45.46820121194652], + [-122.82291581652271, 45.45316026461863], + [-122.81051010627732, 45.438119317290735], + [-122.78569427562184, 45.438119317290735], + [-122.77328856537645, 45.45316026461863] ] ] } @@ -152,13 +152,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.78155977397626, 45.50329526336053], - [-122.78983208779476, 45.513322561579116], - [-122.80637229410439, 45.513322561579116], - [-122.8146446079229, 45.50329526336053], - [-122.80637450389833, 45.49326796514193], - [-122.78982987800077, 45.49326796514193], - [-122.78155977397626, 45.50329526336053] + [-122.78155977371586, 45.50329750182176], + [-122.78983208763032, 45.51332480004036], + [-122.80637229426878, 45.51332480004036], + [-122.8146446081833, 45.50329750182176], + [-122.80637450406277, 45.49327020360317], + [-122.78982987783638, 45.49327020360317], + [-122.78155977371586, 45.50329750182176] ] ] } @@ -170,13 +170,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.77328856548962, 45.553431754453506], - [-122.78569648558539, 45.5684727017814], - [-122.81050789631371, 45.5684727017814], - [-122.82291581640948, 45.553431754453506], - [-122.81051010997913, 45.53839080712561], - [-122.78569427191997, 45.53839080712561], - [-122.77328856548962, 45.553431754453506] + [-122.77328856532904, 45.55343324671282], + [-122.78569648542071, 45.56847419404072], + [-122.81050789647844, 45.56847419404072], + [-122.82291581657012, 45.55343324671282], + [-122.81051011014387, 45.538392299384924], + [-122.78569427175523, 45.538392299384924], + [-122.77328856532904, 45.55343324671282] ] ] } @@ -188,13 +188,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.78155977397626, 45.60356824554649], - [-122.78983209167109, 45.613595543765086], - [-122.80637229022801, 45.613595543765086], - [-122.8146446079229, 45.60356824554649], - [-122.8063745077717, 45.59354094732789], - [-122.78982987412746, 45.59354094732789], - [-122.78155977397626, 45.60356824554649] + [-122.78155977356994, 45.603570483856345], + [-122.78983209150613, 45.61359778207494], + [-122.80637229039303, 45.61359778207494], + [-122.81464460832933, 45.603570483856345], + [-122.80637450793671, 45.59354318563775], + [-122.78982987396239, 45.59354318563775], + [-122.78155977356994, 45.603570483856345] ] ] } @@ -206,13 +206,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.77328856548962, 45.653704736639476], - [-122.78569648946916, 45.66874568396738], - [-122.81050789243, 45.66874568396738], - [-122.82291581640948, 45.653704736639476], - [-122.81051011385898, 45.638663789311586], - [-122.78569426804017, 45.638663789311586], - [-122.77328856548962, 45.653704736639476] + [-122.77328856525196, 45.653706228788735], + [-122.78569648930386, 45.66874717611664], + [-122.8105078925953, 45.66874717611664], + [-122.8229158166472, 45.653706228788735], + [-122.81051011402423, 45.63866528146083], + [-122.78569426787487, 45.63866528146083], + [-122.77328856525196, 45.653706228788735] ] ] } @@ -224,13 +224,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.78155977397626, 45.70384122773246], - [-122.78983209556134, 45.71386852595106], - [-122.80637228633776, 45.71386852595106], - [-122.8146446079229, 45.70384122773246], - [-122.80637451165887, 45.693813929513865], - [-122.78982987024023, 45.693813929513865], - [-122.78155977397626, 45.70384122773246] + [-122.78155977389713, 45.70384346586353], + [-122.78983209539575, 45.71387076408213], + [-122.80637228650335, 45.71387076408213], + [-122.81464460800197, 45.70384346586353], + [-122.80637451182446, 45.69381616764493], + [-122.78982987007464, 45.69381616764493], + [-122.78155977389713, 45.70384346586353] ] ] } @@ -242,13 +242,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71125450183973, 45.42809052672104], - [-122.72366241710034, 45.44313147404894], - [-122.74847383749909, 45.44313147404894], - [-122.76088175275964, 45.42809052672104], - [-122.74847604149892, 45.413049579393146], - [-122.72366021310046, 45.413049579393146], - [-122.71125450183973, 45.42809052672104] + [-122.71125450143916, 45.428092019092226], + [-122.72366241693635, 45.44313296642012], + [-122.74847383766308, 45.44313296642012], + [-122.76088175316028, 45.428092019092226], + [-122.74847604166297, 45.41305107176433], + [-122.72366021293647, 45.41305107176433], + [-122.71125450143916, 45.428092019092226] ] ] } @@ -260,13 +260,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71952571032642, 45.47822701781403], - [-122.72779802317797, 45.48825431603263], - [-122.74433823142147, 45.48825431603263], - [-122.75261054427301, 45.47822701781403], - [-122.74434043928227, 45.46819971959543], - [-122.72779581531711, 45.46819971959543], - [-122.71952571032642, 45.47822701781403] + [-122.71952571010502, 45.47822925630883], + [-122.72779802301375, 45.488256554527425], + [-122.74433823158569, 45.488256554527425], + [-122.75261054449442, 45.47822925630883], + [-122.7443404394466, 45.468201958090226], + [-122.72779581515283, 45.468201958090226], + [-122.71952571010502, 45.47822925630883] ] ] } @@ -278,13 +278,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71125450183973, 45.52836350890701], - [-122.72366242096678, 45.54340445623491], - [-122.7484738336326, 45.54340445623491], - [-122.76088175275964, 45.52836350890701], - [-122.74847604536154, 45.513322561579116], - [-122.72366020923789, 45.513322561579116], - [-122.71125450183973, 45.52836350890701] + [-122.71125450162918, 45.52836500119099], + [-122.72366242080221, 45.54340594851888], + [-122.74847383379722, 45.54340594851888], + [-122.76088175297025, 45.52836500119099], + [-122.7484760455261, 45.513324053863094], + [-122.72366020907339, 45.513324053863094], + [-122.71125450162918, 45.52836500119099] ] ] } @@ -296,13 +296,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71952571032642, 45.5785], - [-122.72779802705082, 45.588527298218594], - [-122.74433822754855, 45.588527298218594], - [-122.75261054427301, 45.5785], - [-122.74434044315217, 45.5684727017814], - [-122.72779581144721, 45.5684727017814], - [-122.71952571032642, 45.5785] + [-122.71952571014651, 45.57850223835027], + [-122.72779802688603, 45.58852953656888], + [-122.7443382277134, 45.58852953656888], + [-122.75261054445292, 45.57850223835027], + [-122.74434044331707, 45.56847494013168], + [-122.72779581128236, 45.56847494013168], + [-122.71952571014651, 45.57850223835027] ] ] } @@ -314,13 +314,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71125450183973, 45.62863649109298], - [-122.72366242484702, 45.64367743842088], - [-122.74847382975236, 45.64367743842088], - [-122.76088175275964, 45.62863649109298], - [-122.74847604923787, 45.613595543765086], - [-122.72366020536151, 45.613595543765086], - [-122.71125450183973, 45.62863649109298] + [-122.71125450162123, 45.62863798327147], + [-122.72366242468195, 45.643678930599364], + [-122.74847382991749, 45.643678930599364], + [-122.76088175297821, 45.62863798327147], + [-122.748476049403, 45.61359703594358], + [-122.72366020519644, 45.61359703594358], + [-122.71125450162123, 45.62863798327147] ] ] } @@ -332,13 +332,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71952571032642, 45.678772982185976], - [-122.7277980309376, 45.68880028040457], - [-122.74433822366177, 45.68880028040457], - [-122.75261054427301, 45.678772982185976], - [-122.74434044703594, 45.66874568396738], - [-122.72779580756344, 45.66874568396738], - [-122.71952571032642, 45.678772982185976] + [-122.71952571015817, 45.67877522036431], + [-122.72779803077219, 45.688802518582904], + [-122.74433822382719, 45.688802518582904], + [-122.75261054444127, 45.67877522036431], + [-122.74434044720135, 45.668747922145705], + [-122.72779580739808, 45.668747922145705], + [-122.71952571015817, 45.67877522036431] ] ] } @@ -350,13 +350,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.71125450183973, 45.728909473278954], - [-122.72366242874125, 45.74395042060685], - [-122.74847382585818, 45.74395042060685], - [-122.76088175275964, 45.728909473278954], - [-122.74847605312812, 45.71386852595106], - [-122.72366020147132, 45.71386852595106], - [-122.71125450183973, 45.728909473278954] + [-122.71125450163294, 45.728910965333675], + [-122.72366242857555, 45.743951912661565], + [-122.74847382602388, 45.743951912661565], + [-122.7608817529665, 45.728910965333675], + [-122.74847605329381, 45.713870018005785], + [-122.72366020130562, 45.713870018005785], + [-122.71125450163294, 45.728910965333675] ] ] } @@ -368,13 +368,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.65749164667659, 45.45315877226753], - [-122.66576395856202, 45.463186070486124], - [-122.68230416873769, 45.463186070486124], - [-122.69057648062318, 45.45315877226753], - [-122.68230637466712, 45.44313147404894], - [-122.66576175263265, 45.44313147404894], - [-122.65749164667659, 45.45315877226753] + [-122.65749164642489, 45.45316101079417], + [-122.66576395839786, 45.463188309012764], + [-122.6823041689018, 45.463188309012764], + [-122.69057648087482, 45.45316101079417], + [-122.68230637483128, 45.44313371257557], + [-122.66576175246843, 45.44313371257557], + [-122.65749164642489, 45.45316101079417] ] ] } @@ -386,13 +386,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.6492204381899, 45.50329526336053], - [-122.66162835634907, 45.51833621068842], - [-122.6864397709507, 45.51833621068842], - [-122.69884768910981, 45.50329526336053], - [-122.68644198074475, 45.48825431603263], - [-122.66162614655502, 45.48825431603263], - [-122.6492204381899, 45.50329526336053] + [-122.64922043779109, 45.50329675566802], + [-122.66162835618456, 45.51833770299591], + [-122.68643977111515, 45.51833770299591], + [-122.69884768950857, 45.50329675566802], + [-122.68644198090914, 45.488255808340114], + [-122.66162614639057, 45.488255808340114], + [-122.64922043779109, 45.50329675566802] ] ] } @@ -404,13 +404,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.65749164667659, 45.553431754453506], - [-122.66576396243147, 45.5634590526721], - [-122.68230416486824, 45.5634590526721], - [-122.69057648062318, 45.553431754453506], - [-122.68230637853355, 45.54340445623491], - [-122.66576174876616, 45.54340445623491], - [-122.65749164667659, 45.553431754453506] + [-122.65749164647639, 45.55343399284248], + [-122.6657639622668, 45.563461291061074], + [-122.68230416503292, 45.563461291061074], + [-122.69057648082332, 45.55343399284248], + [-122.68230637869829, 45.54340669462388], + [-122.66576174860137, 45.54340669462388], + [-122.65749164647639, 45.55343399284248] ] ] } @@ -422,13 +422,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.6492204381899, 45.60356824554649], - [-122.66162836022585, 45.61860919287439], - [-122.68643976707392, 45.61860919287439], - [-122.69884768910981, 45.60356824554649], - [-122.68644198461766, 45.588527298218594], - [-122.66162614268211, 45.588527298218594], - [-122.6492204381899, 45.60356824554649] + [-122.64922043804017, 45.60356973775306], + [-122.66162836006083, 45.61861068508096], + [-122.68643976723888, 45.61861068508096], + [-122.69884768925965, 45.60356973775306], + [-122.68644198478262, 45.588528790425165], + [-122.6616261425171, 45.588528790425165], + [-122.64922043804017, 45.60356973775306] ] ] } @@ -440,13 +440,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.65749164667659, 45.653704736639476], - [-122.66576396631478, 45.66373203485807], - [-122.68230416098498, 45.66373203485807], - [-122.69057648062318, 45.653704736639476], - [-122.68230638241386, 45.64367743842088], - [-122.66576174488591, 45.64367743842088], - [-122.65749164667659, 45.653704736639476] + [-122.65749164655716, 45.65370697486337], + [-122.66576396614948, 45.663734273081964], + [-122.68230416115023, 45.663734273081964], + [-122.6905764807425, 45.65370697486337], + [-122.68230638257916, 45.64367967664477], + [-122.66576174472061, 45.64367967664477], + [-122.65749164655716, 45.65370697486337] ] ] } @@ -458,13 +458,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.6492204381899, 45.70384122773246], - [-122.66162836411655, 45.71888217506035], - [-122.68643976318316, 45.71888217506035], - [-122.69884768910981, 45.70384122773246], - [-122.68644198850438, 45.68880028040457], - [-122.66162613879533, 45.68880028040457], - [-122.6492204381899, 45.70384122773246] + [-122.64922043791375, 45.70384271981984], + [-122.66162836395097, 45.71888366714773], + [-122.68643976334874, 45.71888366714773], + [-122.69884768938596, 45.70384271981984], + [-122.68644198866991, 45.68880177249195], + [-122.6616261386298, 45.68880177249195], + [-122.64922043791375, 45.70384271981984] ] ] } @@ -476,13 +476,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.5954575830267, 45.42809052672104], - [-122.60372989394699, 45.43811782493964], - [-122.620270106053, 45.43811782493964], - [-122.62854241697329, 45.42809052672104], - [-122.62027231005277, 45.41806322850245], - [-122.60372768994722, 45.41806322850245], - [-122.5954575830267, 45.42809052672104] + [-122.59545758271531, 45.428092765277825], + [-122.603729893783, 45.43812006349642], + [-122.62027010621699, 45.43812006349642], + [-122.62854241728479, 45.428092765277825], + [-122.62027231021682, 45.41806546705922], + [-122.60372768978317, 45.41806546705922], + [-122.59545758271531, 45.428092765277825] ] ] } @@ -494,13 +494,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.58718637454007, 45.47822701781403], - [-122.59959429173216, 45.49326796514193], - [-122.62440570826783, 45.49326796514193], - [-122.63681362545992, 45.47822701781403], - [-122.6244079161288, 45.463186070486124], - [-122.59959208387119, 45.463186070486124], - [-122.58718637454007, 45.47822701781403] + [-122.58718637424931, 45.47822851014389], + [-122.59959429156783, 45.49326945747179], + [-122.62440570843216, 45.49326945747179], + [-122.63681362575073, 45.47822851014389], + [-122.62440791629308, 45.46318756281599], + [-122.59959208370691, 45.46318756281599], + [-122.58718637424931, 45.47822851014389] ] ] } @@ -512,13 +512,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.5954575830267, 45.52836350890701], - [-122.60372989781297, 45.53839080712561], - [-122.62027010218702, 45.53839080712561], - [-122.62854241697329, 45.52836350890701], - [-122.62027231391579, 45.51833621068842], - [-122.6037276860842, 45.51833621068842], - [-122.5954575830267, 45.52836350890701] + [-122.59545758287538, 45.52836574733298], + [-122.6037298976484, 45.538393045551565], + [-122.62027010235158, 45.538393045551565], + [-122.6285424171246, 45.52836574733298], + [-122.62027231408041, 45.51833844911439], + [-122.60372768591958, 45.51833844911439], + [-122.59545758287538, 45.52836574733298] ] ] } @@ -530,13 +530,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.58718637454007, 45.5785], - [-122.59959429560547, 45.59354094732789], - [-122.62440570439452, 45.59354094732789], - [-122.63681362545992, 45.5785], - [-122.62440791999825, 45.5634590526721], - [-122.59959208000174, 45.5634590526721], - [-122.58718637454007, 45.5785] + [-122.58718637411334, 45.57850149223351], + [-122.59959429544062, 45.59354243956141], + [-122.62440570455936, 45.59354243956141], + [-122.63681362588659, 45.57850149223351], + [-122.6244079201631, 45.56346054490562], + [-122.5995920798369, 45.56346054490562], + [-122.58718637411334, 45.57850149223351] ] ] } @@ -548,13 +548,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.5954575830267, 45.62863649109298], - [-122.60372990169276, 45.638663789311586], - [-122.62027009830723, 45.638663789311586], - [-122.62854241697329, 45.62863649109298], - [-122.62027231779257, 45.61860919287439], - [-122.60372768220736, 45.61860919287439], - [-122.5954575830267, 45.62863649109298] + [-122.59545758254188, 45.62863872936071], + [-122.60372990152769, 45.63866602757931], + [-122.62027009847236, 45.63866602757931], + [-122.6285424174581, 45.62863872936071], + [-122.62027231795776, 45.618611431142114], + [-122.60372768204223, 45.618611431142114], + [-122.59545758254188, 45.62863872936071] ] ] } @@ -566,13 +566,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.58718637454007, 45.678772982185976], - [-122.59959429949265, 45.693813929513865], - [-122.62440570050728, 45.693813929513865], - [-122.63681362545992, 45.678772982185976], - [-122.6244079238815, 45.66373203485807], - [-122.59959207611848, 45.66373203485807], - [-122.58718637454007, 45.678772982185976] + [-122.58718637435214, 45.67877447430486], + [-122.59959429932724, 45.693815421632756], + [-122.62440570067275, 45.693815421632756], + [-122.63681362564785, 45.67877447430486], + [-122.62440792404692, 45.66373352697697], + [-122.59959207595307, 45.66373352697697], + [-122.58718637435214, 45.67877447430486] ] ] } @@ -584,13 +584,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.5954575830267, 45.728909473278954], - [-122.60372990558653, 45.73893677149755], - [-122.62027009441351, 45.73893677149755], - [-122.62854241697329, 45.728909473278954], - [-122.62027232168327, 45.71888217506035], - [-122.60372767831666, 45.71888217506035], - [-122.5954575830267, 45.728909473278954] + [-122.59545758263283, 45.728911711361036], + [-122.60372990542078, 45.73893900957963], + [-122.62027009457915, 45.73893900957963], + [-122.62854241736716, 45.728911711361036], + [-122.62027232184903, 45.71888441314243], + [-122.6037276781509, 45.71888441314243], + [-122.59545758263283, 45.728911711361036] ] ] } @@ -602,13 +602,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.52515231089023, 45.45315877226753], - [-122.5375602271161, 45.46819971959543], - [-122.56237164558422, 45.46819971959543], - [-122.57477956181009, 45.45315877226753], - [-122.56237385151371, 45.43811782493964], - [-122.53755802118656, 45.43811782493964], - [-122.52515231089023, 45.45315877226753] + [-122.525152310777, 45.45316026461863], + [-122.53756022695194, 45.46820121194652], + [-122.56237164574839, 45.46820121194652], + [-122.57477956192326, 45.45316026461863], + [-122.56237385167788, 45.43811931729073], + [-122.53755802102239, 45.43811931729073], + [-122.525152310777, 45.45316026461863] ] ] } @@ -620,13 +620,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.53342351937687, 45.50329526336053], - [-122.54169583319538, 45.513322561579116], - [-122.55823603950495, 45.513322561579116], - [-122.56650835332346, 45.50329526336053], - [-122.55823824929894, 45.49326796514193], - [-122.54169362340139, 45.49326796514193], - [-122.53342351937687, 45.50329526336053] + [-122.53342351911641, 45.50329750182176], + [-122.54169583303093, 45.51332480004036], + [-122.5582360396694, 45.51332480004036], + [-122.56650835358391, 45.50329750182176], + [-122.55823824946333, 45.49327020360317], + [-122.54169362323694, 45.49327020360317], + [-122.53342351911641, 45.50329750182176] ] ] } @@ -638,13 +638,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.52515231089023, 45.553431754453506], - [-122.537560230986, 45.5684727017814], - [-122.56237164171432, 45.5684727017814], - [-122.57477956181009, 45.553431754453506], - [-122.56237385537975, 45.53839080712561], - [-122.53755801732058, 45.53839080712561], - [-122.52515231089023, 45.553431754453506] + [-122.5251523107296, 45.55343324671282], + [-122.53756023082127, 45.56847419404072], + [-122.562371641879, 45.56847419404072], + [-122.57477956197073, 45.55343324671282], + [-122.56237385554448, 45.538392299384924], + [-122.53755801715585, 45.538392299384924], + [-122.5251523107296, 45.55343324671282] ] ] } @@ -656,13 +656,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.53342351937687, 45.60356824554649], - [-122.54169583707164, 45.613595543765086], - [-122.55823603562862, 45.613595543765086], - [-122.56650835332346, 45.60356824554649], - [-122.55823825317225, 45.59354094732789], - [-122.54169361952802, 45.59354094732789], - [-122.53342351937687, 45.60356824554649] + [-122.53342351897038, 45.603570483856345], + [-122.54169583690668, 45.61359778207494], + [-122.55823603579358, 45.61359778207494], + [-122.56650835372977, 45.603570483856345], + [-122.55823825333732, 45.59354318563775], + [-122.541693619363, 45.59354318563775], + [-122.53342351897038, 45.603570483856345] ] ] } @@ -674,13 +674,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.52515231089023, 45.653704736639476], - [-122.53756023486972, 45.66874568396738], - [-122.56237163783055, 45.66874568396738], - [-122.57477956181009, 45.653704736639476], - [-122.56237385925954, 45.638663789311586], - [-122.53755801344073, 45.638663789311586], - [-122.52515231089023, 45.653704736639476] + [-122.52515231065252, 45.653706228788735], + [-122.53756023470442, 45.66874717611664], + [-122.56237163799585, 45.66874717611664], + [-122.57477956204775, 45.653706228788735], + [-122.56237385942484, 45.63866528146083], + [-122.53755801327549, 45.63866528146083], + [-122.52515231065252, 45.653706228788735] ] ] } @@ -692,13 +692,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.53342351937687, 45.70384122773246], - [-122.54169584096195, 45.71386852595106], - [-122.55823603173837, 45.71386852595106], - [-122.56650835332346, 45.70384122773246], - [-122.55823825705949, 45.693813929513865], - [-122.54169361564084, 45.693813929513865], - [-122.53342351937687, 45.70384122773246] + [-122.53342351900221, 45.70384346586352], + [-122.54169584079636, 45.713870764082124], + [-122.55823603190396, 45.713870764082124], + [-122.56650835369811, 45.70384346586352], + [-122.55823825722507, 45.693816167644925], + [-122.5416936154752, 45.693816167644925], + [-122.53342351900221, 45.70384346586352] ] ] } @@ -710,13 +710,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.46311824724035, 45.42809052672104], - [-122.4755261625009, 45.44313147404894], - [-122.50033758289965, 45.44313147404894], - [-122.51274549816026, 45.42809052672104], - [-122.50033978689953, 45.413049579393146], - [-122.47552395850101, 45.413049579393146], - [-122.46311824724035, 45.42809052672104] + [-122.46311824683971, 45.428092019092226], + [-122.4755261623369, 45.44313296642012], + [-122.5003375830637, 45.44313296642012], + [-122.51274549856083, 45.428092019092226], + [-122.50033978706352, 45.41305107176433], + [-122.47552395833702, 45.41305107176433], + [-122.46311824683971, 45.428092019092226] ] ] } @@ -728,13 +728,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.47138945572698, 45.47822701781403], - [-122.47966176857852, 45.48825431603263], - [-122.49620197682202, 45.48825431603263], - [-122.50447428967357, 45.47822701781403], - [-122.49620418468288, 45.46819971959543], - [-122.47965956071772, 45.46819971959543], - [-122.47138945572698, 45.47822701781403] + [-122.47138945550557, 45.47822925630883], + [-122.4796617684143, 45.488256554527425], + [-122.4962019769863, 45.488256554527425], + [-122.50447428989497, 45.47822925630883], + [-122.49620418484722, 45.468201958090226], + [-122.47965956055339, 45.468201958090226], + [-122.47138945550557, 45.47822925630883] ] ] } @@ -746,13 +746,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.46311824724035, 45.52836350890701], - [-122.47552616636739, 45.54340445623491], - [-122.50033757903321, 45.54340445623491], - [-122.51274549816026, 45.52836350890701], - [-122.5003397907621, 45.513322561579116], - [-122.47552395463845, 45.513322561579116], - [-122.46311824724035, 45.52836350890701] + [-122.46311824702974, 45.52836500119099], + [-122.47552616620283, 45.54340594851888], + [-122.50033757919778, 45.54340594851888], + [-122.5127454983708, 45.52836500119099], + [-122.50033979092666, 45.513324053863094], + [-122.47552395447394, 45.513324053863094], + [-122.46311824702974, 45.52836500119099] ] ] } @@ -764,13 +764,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.47138945572698, 45.5785], - [-122.47966177245144, 45.588527298218594], - [-122.49620197294911, 45.588527298218594], - [-122.50447428967357, 45.5785], - [-122.49620418855278, 45.5684727017814], - [-122.47965955684782, 45.5684727017814], - [-122.47138945572698, 45.5785] + [-122.47138945554707, 45.57850223835027], + [-122.47966177228659, 45.58852953656888], + [-122.49620197311395, 45.58852953656888], + [-122.50447428985353, 45.57850223835027], + [-122.49620418871763, 45.56847494013168], + [-122.47965955668292, 45.56847494013168], + [-122.47138945554707, 45.57850223835027] ] ] } @@ -782,13 +782,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.46311824724035, 45.62863649109298], - [-122.47552617024763, 45.64367743842088], - [-122.50033757515291, 45.64367743842088], - [-122.51274549816026, 45.62863649109298], - [-122.50033979463842, 45.613595543765086], - [-122.47552395076212, 45.613595543765086], - [-122.46311824724035, 45.62863649109298] + [-122.46311824702178, 45.62863798327147], + [-122.4755261700825, 45.643678930599364], + [-122.5003375753181, 45.643678930599364], + [-122.51274549837876, 45.62863798327147], + [-122.50033979480361, 45.61359703594358], + [-122.475523950597, 45.61359703594358], + [-122.46311824702178, 45.62863798327147] ] ] } @@ -800,13 +800,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.47138945572698, 45.678772982185976], - [-122.47966177633816, 45.68880028040457], - [-122.49620196906238, 45.68880028040457], - [-122.50447428967357, 45.678772982185976], - [-122.4962041924365, 45.66874568396738], - [-122.47965955296411, 45.66874568396738], - [-122.47138945572698, 45.678772982185976] + [-122.47138945555872, 45.67877522036431], + [-122.4796617761728, 45.688802518582904], + [-122.4962019692278, 45.688802518582904], + [-122.50447428984182, 45.67877522036431], + [-122.49620419260197, 45.668747922145705], + [-122.47965955279864, 45.668747922145705], + [-122.47138945555872, 45.67877522036431] ] ] } @@ -818,13 +818,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.46311824724035, 45.728909473278954], - [-122.4755261741418, 45.74395042060685], - [-122.50033757125874, 45.74395042060685], - [-122.51274549816026, 45.728909473278954], - [-122.50033979852867, 45.71386852595106], - [-122.47552394687187, 45.71386852595106], - [-122.46311824724035, 45.728909473278954] + [-122.46311824703355, 45.728910965333675], + [-122.4755261739761, 45.743951912661565], + [-122.50033757142444, 45.743951912661565], + [-122.51274549836705, 45.728910965333675], + [-122.50033979869437, 45.713870018005785], + [-122.47552394670618, 45.713870018005785], + [-122.46311824703355, 45.728910965333675] ] ] } @@ -836,13 +836,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.40935539207715, 45.45315877226753], - [-122.41762770396258, 45.463186070486124], - [-122.43416791413824, 45.463186070486124], - [-122.44244022602373, 45.45315877226753], - [-122.43417012006768, 45.44313147404894], - [-122.4176254980332, 45.44313147404894], - [-122.40935539207715, 45.45315877226753] + [-122.40935539182544, 45.453161010794176], + [-122.41762770379842, 45.46318830901277], + [-122.4341679143024, 45.46318830901277], + [-122.44244022627538, 45.453161010794176], + [-122.43417012023184, 45.44313371257557], + [-122.41762549786898, 45.44313371257557], + [-122.40935539182544, 45.453161010794176] ] ] } @@ -854,13 +854,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.40108418359046, 45.50329526336053], - [-122.41349210174963, 45.51833621068842], - [-122.43830351635125, 45.51833621068842], - [-122.45071143451037, 45.50329526336053], - [-122.43830572614536, 45.48825431603263], - [-122.41348989195552, 45.48825431603263], - [-122.40108418359046, 45.50329526336053] + [-122.4010841831917, 45.50329675566802], + [-122.41349210158518, 45.51833770299591], + [-122.4383035165157, 45.51833770299591], + [-122.45071143490918, 45.50329675566802], + [-122.4383057263097, 45.488255808340114], + [-122.41348989179119, 45.488255808340114], + [-122.4010841831917, 45.50329675566802] ] ] } @@ -872,13 +872,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.40935539207715, 45.553431754453506], - [-122.41762770783203, 45.5634590526721], - [-122.4341679102688, 45.5634590526721], - [-122.44244022602373, 45.553431754453506], - [-122.43417012393411, 45.54340445623491], - [-122.41762549416671, 45.54340445623491], - [-122.40935539207715, 45.553431754453506] + [-122.40935539187694, 45.55343399284248], + [-122.41762770766735, 45.563461291061074], + [-122.43416791043347, 45.563461291061074], + [-122.44244022622388, 45.55343399284248], + [-122.43417012409884, 45.54340669462388], + [-122.41762549400198, 45.54340669462388], + [-122.40935539187694, 45.55343399284248] ] ] } @@ -890,13 +890,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.40108418359046, 45.60356824554649], - [-122.4134921056264, 45.61860919287439], - [-122.43830351247448, 45.61860919287439], - [-122.45071143451037, 45.60356824554649], - [-122.43830573001821, 45.588527298218594], - [-122.41348988808267, 45.588527298218594], - [-122.40108418359046, 45.60356824554649] + [-122.40108418344073, 45.60356973775306], + [-122.41349210546139, 45.61861068508096], + [-122.43830351263944, 45.61861068508096], + [-122.45071143466026, 45.60356973775306], + [-122.43830573018317, 45.588528790425165], + [-122.41348988791765, 45.588528790425165], + [-122.40108418344073, 45.60356973775306] ] ] } @@ -908,13 +908,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.40935539207715, 45.653704736639476], - [-122.41762771171534, 45.66373203485807], - [-122.43416790638548, 45.66373203485807], - [-122.44244022602373, 45.653704736639476], - [-122.43417012781441, 45.64367743842088], - [-122.41762549028647, 45.64367743842088], - [-122.40935539207715, 45.653704736639476] + [-122.40935539180987, 45.65370697486337], + [-122.41762771155004, 45.66373427308197], + [-122.43416790655078, 45.66373427308197], + [-122.44244022629096, 45.65370697486337], + [-122.43417012797971, 45.64367967664477], + [-122.41762549012111, 45.64367967664477], + [-122.40935539180987, 45.65370697486337] ] ] } @@ -926,13 +926,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.40108418359046, 45.70384122773246], - [-122.41349210951711, 45.71888217506035], - [-122.43830350858377, 45.71888217506035], - [-122.45071143451037, 45.70384122773246], - [-122.43830573390494, 45.68880028040457], - [-122.41348988419588, 45.68880028040457], - [-122.40108418359046, 45.70384122773246] + [-122.40108418331431, 45.70384271981984], + [-122.41349210935152, 45.71888366714773], + [-122.43830350874936, 45.71888366714773], + [-122.45071143478651, 45.70384271981984], + [-122.43830573407047, 45.68880177249195], + [-122.41348988403035, 45.68880177249195], + [-122.40108418331431, 45.70384271981984] ] ] } @@ -944,13 +944,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.34732132842726, 45.42809052672104], - [-122.3555936393476, 45.43811782493964], - [-122.37213385145355, 45.43811782493964], - [-122.3804061623739, 45.42809052672104], - [-122.37213605545332, 45.41806322850245], - [-122.35559143534783, 45.41806322850245], - [-122.34732132842726, 45.42809052672104] + [-122.34732132811575, 45.428092765277825], + [-122.35559363918355, 45.43812006349642], + [-122.3721338516176, 45.43812006349642], + [-122.38040616268529, 45.428092765277825], + [-122.37213605561737, 45.41806546705922], + [-122.35559143518378, 45.41806546705922], + [-122.34732132811575, 45.428092765277825] ] ] } @@ -962,13 +962,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.33905011994062, 45.47822701781403], - [-122.35145803713272, 45.49326796514193], - [-122.37626945366844, 45.49326796514193], - [-122.38867737086053, 45.47822701781403], - [-122.37627166152936, 45.463186070486124], - [-122.3514558292718, 45.463186070486124], - [-122.33905011994062, 45.47822701781403] + [-122.33905011964987, 45.47822851014389], + [-122.35145803696844, 45.49326945747179], + [-122.37626945383278, 45.49326945747179], + [-122.38867737115135, 45.47822851014389], + [-122.37627166169369, 45.46318756281599], + [-122.35145582910752, 45.46318756281599], + [-122.33905011964987, 45.47822851014389] ] ] } @@ -980,13 +980,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.34732132842726, 45.52836350890701], - [-122.35559364321352, 45.53839080712561], - [-122.37213384758763, 45.53839080712561], - [-122.3804061623739, 45.52836350890701], - [-122.3721360593164, 45.51833621068842], - [-122.35559143148475, 45.51833621068842], - [-122.34732132842726, 45.52836350890701] + [-122.347321328276, 45.52836574733298], + [-122.35559364304902, 45.538393045551565], + [-122.37213384775214, 45.538393045551565], + [-122.38040616252522, 45.52836574733298], + [-122.37213605948102, 45.51833844911439], + [-122.35559143132019, 45.51833844911439], + [-122.347321328276, 45.52836574733298] ] ] } @@ -998,13 +998,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.33905011994062, 45.5785], - [-122.35145804100608, 45.59354094732789], - [-122.37626944979507, 45.59354094732789], - [-122.38867737086053, 45.5785], - [-122.3762716653988, 45.5634590526721], - [-122.35145582540235, 45.5634590526721], - [-122.33905011994062, 45.5785] + [-122.33905011951396, 45.57850149223351], + [-122.35145804084118, 45.59354243956141], + [-122.37626944995998, 45.59354243956141], + [-122.3886773712872, 45.57850149223351], + [-122.3762716655637, 45.56346054490562], + [-122.35145582523751, 45.56346054490562], + [-122.33905011951396, 45.57850149223351] ] ] } @@ -1016,13 +1016,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.34732132842726, 45.62863649109298], - [-122.35559364709337, 45.638663789311586], - [-122.37213384370779, 45.638663789311586], - [-122.3804061623739, 45.62863649109298], - [-122.37213606319318, 45.61860919287439], - [-122.35559142760798, 45.61860919287439], - [-122.34732132842726, 45.62863649109298] + [-122.3473213279425, 45.62863872936071], + [-122.35559364692824, 45.63866602757931], + [-122.37213384387292, 45.63866602757931], + [-122.38040616285872, 45.62863872936071], + [-122.37213606335837, 45.618611431142114], + [-122.35559142744285, 45.618611431142114], + [-122.3473213279425, 45.62863872936071] ] ] } @@ -1034,13 +1034,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.33905011994062, 45.678772982185976], - [-122.35145804489332, 45.693813929513865], - [-122.37626944590784, 45.693813929513865], - [-122.38867737086053, 45.678772982185976], - [-122.37627166928212, 45.66373203485807], - [-122.35145582151904, 45.66373203485807], - [-122.33905011994062, 45.678772982185976] + [-122.33905011975276, 45.67877447430486], + [-122.3514580447279, 45.693815421632756], + [-122.37626944607331, 45.693815421632756], + [-122.38867737104852, 45.67877447430486], + [-122.37627166944753, 45.66373352697697], + [-122.35145582135368, 45.66373352697697], + [-122.33905011975276, 45.67877447430486] ] ] } @@ -1052,13 +1052,13 @@ "type": "Polygon", "coordinates": [ [ - [-122.34732132842726, 45.728909473278954], - [-122.35559365098709, 45.73893677149755], - [-122.37213383981407, 45.73893677149755], - [-122.3804061623739, 45.728909473278954], - [-122.37213606708389, 45.71888217506035], - [-122.35559142371727, 45.71888217506035], - [-122.34732132842726, 45.728909473278954] + [-122.34732132803344, 45.728911711361036], + [-122.35559365082145, 45.73893900957963], + [-122.37213383997977, 45.73893900957963], + [-122.38040616276777, 45.728911711361036], + [-122.3721360672497, 45.71888441314243], + [-122.35559142355152, 45.71888441314243], + [-122.34732132803344, 45.728911711361036] ] ] } diff --git a/packages/turf-transform-scale/test/out/line.geojson b/packages/turf-transform-scale/test/out/line.geojson index 2ee1c208a8..f5209a1c14 100644 --- a/packages/turf-transform-scale/test/out/line.geojson +++ b/packages/turf-transform-scale/test/out/line.geojson @@ -11,18 +11,18 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.222188, 44.472567], - [11.235574, 44.478813], - [11.241747, 44.505261], - [11.263371, 44.530966], - [11.292726, 44.533536], - [11.322082, 44.545284], - [11.354014, 44.541246], - [11.393669, 44.52399], - [11.404996, 44.510035], - [11.405509, 44.501221], - [11.421984, 44.483589], - [11.443609, 44.474037] + [11.222188, 44.472562], + [11.235574, 44.478807], + [11.241747, 44.505255], + [11.263371, 44.53096], + [11.292726, 44.53353], + [11.322082, 44.545279], + [11.354014, 44.54124], + [11.393669, 44.523984], + [11.404996, 44.510029], + [11.405509, 44.501215], + [11.421984, 44.483583], + [11.443609, 44.474031] ] } }, @@ -57,7 +57,7 @@ }, "geometry": { "type": "Point", - "coordinates": [11.333456039428711, 44.50837878425054] + "coordinates": [11.333456435397235, 44.508390324524655] } } ] diff --git a/packages/turf-transform-scale/test/out/polygon-fiji.geojson b/packages/turf-transform-scale/test/out/polygon-fiji.geojson index 54bd87672c..01de6ee64d 100644 --- a/packages/turf-transform-scale/test/out/polygon-fiji.geojson +++ b/packages/turf-transform-scale/test/out/polygon-fiji.geojson @@ -12,30 +12,30 @@ "coordinates": [ [ [ - [-178.837931, -16.825884], - [-178.893337, -16.594384], - [-179.025403, -16.457524], - [-179.563423, -16.583858], - [-179.914534, -17.172869], - [-179.848385, -17.414518], - [-179.441628, -17.319978], - [-178.837931, -16.825884] + [181.161746, -16.824797], + [181.106341, -16.593298], + [180.974275, -16.456437], + [180.436256, -16.582771], + [180.085146, -17.171782], + [180.151294, -17.413431], + [180.55805, -17.318891], + [181.161746, -16.824797] ] ], [ [ - [-179.706468, -16.320614], - [-179.158732, -15.487589], - [-179.762152, -15.371458], - [-180.990633, -15.45592], - [-182.836137, -16.352213], - [-182.904034, -16.973128], - [-182.575668, -17.435523], - [-182.014812, -17.435523], - [-181.475635, -17.214906], - [-180.760995, -17.130827], - [-179.958593, -17.036216], - [-179.706468, -16.320614] + [180.293212, -16.319527], + [180.840947, -15.486502], + [180.237529, -15.370371], + [179.009051, -15.454833], + [177.163552, -16.351126], + [177.095654, -16.972041], + [177.424019, -17.434436], + [177.984873, -17.434436], + [178.524049, -17.213819], + [179.238687, -17.12974], + [180.041087, -17.035129], + [180.293212, -16.319527] ] ] ] @@ -86,7 +86,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-180.42572021484375, -16.69905167218912] + "coordinates": [179.57459825012916, -16.700138576222955] } } ] diff --git a/packages/turf-transform-scale/test/out/polygon-resolute-bay.geojson b/packages/turf-transform-scale/test/out/polygon-resolute-bay.geojson index f7b0ad3f36..1e6bb160a7 100644 --- a/packages/turf-transform-scale/test/out/polygon-resolute-bay.geojson +++ b/packages/turf-transform-scale/test/out/polygon-resolute-bay.geojson @@ -12,31 +12,31 @@ "type": "Polygon", "coordinates": [ [ - [-95.789976, 76.321052], - [-97.95473, 75.867761], - [-99.066725, 75.19844], - [-99.396055, 74.887663], - [-97.101854, 74.308888], - [-95.09917, 73.961793], - [-93.650646, 73.852692], - [-91.633938, 73.954529], - [-91.468654, 74.466945], - [-91.632949, 74.894755], - [-91.701695, 75.562468], - [-93.207694, 76.101968], - [-93.932121, 76.321052], - [-94.88936, 76.389249], - [-95.789976, 76.321052] + [-95.794946, 76.318096], + [-97.959403, 75.864805], + [-99.07119, 75.195484], + [-99.400445, 74.884707], + [-97.106383, 74.305932], + [-95.103835, 73.958837], + [-93.655428, 73.849736], + [-91.63892, 73.951573], + [-91.473734, 74.463989], + [-91.638086, 74.891799], + [-91.706943, 75.559512], + [-93.21289, 76.099012], + [-93.937284, 76.318096], + [-94.894435, 76.386293], + [-95.794946, 76.318096] ], [ - [-95.611777, 75.798595], - [-96.998061, 75.37039], - [-96.8515, 74.823783], - [-94.451781, 74.398772], - [-92.921949, 74.391589], - [-92.86369, 75.244135], - [-94.290262, 75.722364], - [-95.611777, 75.798595] + [-95.616675, 75.795639], + [-97.002753, 75.367434], + [-96.856125, 74.820827], + [-94.45657, 74.395816], + [-92.92688, 74.388633], + [-92.868767, 75.241179], + [-94.295281, 75.719408], + [-95.616675, 75.795639] ] ] } @@ -87,7 +87,7 @@ }, "geometry": { "type": "Point", - "coordinates": [-94.78062220982143, 75.13518489369591] + "coordinates": [-94.77737356178868, 75.13715556707157] } } ] diff --git a/packages/turf-transform-scale/test/out/polygon.geojson b/packages/turf-transform-scale/test/out/polygon.geojson index effd41a26c..2e45304659 100644 --- a/packages/turf-transform-scale/test/out/polygon.geojson +++ b/packages/turf-transform-scale/test/out/polygon.geojson @@ -12,10 +12,10 @@ "type": "Polygon", "coordinates": [ [ - [1.799105, 29.9], - [2.150671, 29.9], - [2.049534, 30.2], - [1.799105, 29.9] + [1.794564, 29.907345], + [2.146143, 29.907345], + [2.044995, 30.207345], + [1.794564, 29.907345] ] ] } @@ -45,7 +45,7 @@ }, "geometry": { "type": "Point", - "coordinates": [2, 30] + "coordinates": [1.9949600521736441, 30.00816109020039] } } ] diff --git a/packages/turf-transform-scale/test/out/z-scaling.geojson b/packages/turf-transform-scale/test/out/z-scaling.geojson index d999b3ac64..6bbd12a696 100644 --- a/packages/turf-transform-scale/test/out/z-scaling.geojson +++ b/packages/turf-transform-scale/test/out/z-scaling.geojson @@ -12,12 +12,12 @@ "type": "Polygon", "coordinates": [ [ - [115.36303, -23.89655, 23], - [124.629212, -32.18332, 25.3], - [134.23767, -27.752333, 27.6], - [133.195438, -19.709263, 29.9], - [123.388452, -15.846522, 32.2], - [115.36303, -23.89655, 23] + [115.36837, -23.858264, 23], + [124.633381, -32.145034, 25.3], + [134.240152, -27.714047, 27.6], + [133.198197, -19.670977, 29.9], + [123.392428, -15.808236, 32.2], + [115.36837, -23.858264, 23] ] ] } @@ -49,7 +49,7 @@ }, "geometry": { "type": "Point", - "coordinates": [126.158203125, -23.87759746657351] + "coordinates": [126.15532324196782, -23.907048143159262] } } ]