From 018f4477440ea51bfd4ed1d5d272930874006f75 Mon Sep 17 00:00:00 2001 From: Dmitriy Yakovlev Date: Sun, 11 Oct 2020 22:25:26 -0700 Subject: [PATCH] Use Azimuthal Equidistant projection for buffer, fix lnglat issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The existing buffer code has three problems: - it uses two different projections depending on the latitude of the input geometry. This results in an error discontinuity at 50N. - it switches projections only for the northern hemisphere. - it mistakenly reverses the lonlat center, which has the eventual result of rotating the projection to a skewed center. The third problem is one of the causes of `buffer`'s size issues. At latitudes above 50N, the projection distorts input distances due to not being rotated to the correct input geometry center. At latitudes below 50N, the Mercator projection does not receive a correction for the input distance. If using the Mercator projection, the actual distance used as an input to JSTS BufferOp should be distance / cos((lat * π) / 180). [1] As recommended in the original[2] exploration that prompted the fix introduced in #938, this patch switches the buffer prep code to consistently using the Azimuthal Equidistant projection rather than switching between Mercator and Transverse Mercator. When centered on the input geometry, this projection should produce less distortion in all directions for input geometries of reasonable size compared to a cylindrical one. I took the opportunity to optimize slightly; buffering now calls `center` only once, and we don't need to `bbox` the input geom at all. [1] https://gis.stackexchange.com/a/347573 [2] /~https://github.com/w8r/moscow-rings#solution --- packages/turf-buffer/index.js | 52 +- .../out/feature-collection-points.geojson | 712 ++++++------- .../out/geometry-collection-points.geojson | 520 +++++----- .../turf-buffer/test/out/issue-#783.geojson | 426 ++++---- .../test/out/issue-#801-Ecuador.geojson | 274 ++--- .../turf-buffer/test/out/issue-#801.geojson | 276 ++--- .../turf-buffer/test/out/issue-#815.geojson | 208 ++-- .../turf-buffer/test/out/issue-#900.geojson | 964 +++++++++--------- .../turf-buffer/test/out/issue-#916.geojson | 248 +++-- .../turf-buffer/test/out/linestring.geojson | 236 ++--- .../test/out/multi-linestring.geojson | 748 +++++++------- .../turf-buffer/test/out/multi-point.geojson | 352 +++---- .../test/out/multi-polygon.geojson | 452 ++++---- .../test/out/negative-buffer.geojson | 32 +- .../test/out/north-latitude-points.geojson | 164 +-- .../test/out/northern-polygon.geojson | 164 +-- packages/turf-buffer/test/out/point.geojson | 128 +-- .../test/out/polygon-with-holes.geojson | 184 ++-- 18 files changed, 3068 insertions(+), 3072 deletions(-) diff --git a/packages/turf-buffer/index.js b/packages/turf-buffer/index.js index 4666c81053..c87c8b4592 100644 --- a/packages/turf-buffer/index.js +++ b/packages/turf-buffer/index.js @@ -1,9 +1,7 @@ import center from '@turf/center'; -import turfBbox from '@turf/bbox'; import { BufferOp, GeoJSONReader, GeoJSONWriter } from 'turf-jsts'; -import { toWgs84, toMercator } from '@turf/projection'; import { geomEach, featureEach } from '@turf/meta'; -import { geoTransverseMercator } from 'd3-geo'; +import { geoAzimuthalEquidistant } from 'd3-geo'; import { feature, featureCollection, radiansToLength, lengthToRadians, earthRadius } from '@turf/helpers'; /** @@ -94,19 +92,12 @@ function bufferFeature(geojson, radius, units, steps) { return featureCollection(results); } - // Project GeoJSON to Transverse Mercator projection (convert to Meters) - var projected; - var bbox = turfBbox(geojson); - var needsTransverseMercator = bbox[1] > 50 && bbox[3] > 50; - - if (needsTransverseMercator) { - projected = { - type: geometry.type, - coordinates: projectCoords(geometry.coordinates, defineProjection(geometry)) - }; - } else { - projected = toMercator(geometry); - } + // Project GeoJSON to Azimuthal Equidistant projection (convert to Meters) + var projection = defineProjection(geometry); + var projected = { + type: geometry.type, + coordinates: projectCoords(geometry.coordinates, projection) + }; // JSTS buffer operation var reader = new GeoJSONReader(); @@ -120,17 +111,12 @@ function bufferFeature(geojson, radius, units, steps) { if (coordsIsNaN(buffered.coordinates)) return undefined; // Unproject coordinates (convert to Degrees) - var result; - if (needsTransverseMercator) { - result = { - type: buffered.type, - coordinates: unprojectCoords(buffered.coordinates, defineProjection(geometry)) - }; - } else { - result = toWgs84(buffered); - } + var result = { + type: buffered.type, + coordinates: unprojectCoords(buffered.coordinates, projection) + }; - return (result.geometry) ? result : feature(result, properties); + return feature(result, properties); } /** @@ -176,19 +162,17 @@ function unprojectCoords(coords, proj) { } /** - * Define Transverse Mercator projection + * Define Azimuthal Equidistant projection * * @private * @param {Geometry|Feature} geojson Base projection on center of GeoJSON - * @returns {GeoProjection} D3 Geo Transverse Mercator Projection + * @returns {GeoProjection} D3 Geo Azimuthal Equidistant Projection */ function defineProjection(geojson) { - var coords = center(geojson).geometry.coordinates.reverse(); - var rotate = coords.map(function (coord) { return -coord; }); - return geoTransverseMercator() - .center(coords) - .rotate(rotate) - .scale(earthRadius); + const coords = center(geojson).geometry.coordinates; + const rotation = [-coords[0], -coords[1]]; + return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius); } + export default buffer; diff --git a/packages/turf-buffer/test/out/feature-collection-points.geojson b/packages/turf-buffer/test/out/feature-collection-points.geojson index 8dfef9f8f8..38509bd94f 100644 --- a/packages/turf-buffer/test/out/feature-collection-points.geojson +++ b/packages/turf-buffer/test/out/feature-collection-points.geojson @@ -15,472 +15,472 @@ [ [ [ - 135.722849, - -25 + 135.797556, + -24.973 ], [ - 135.70896, - -25.127742 + 135.775825, + -24.832695 ], [ - 135.667826, - -25.250449 + 135.724418, + -24.698874 ], [ - 135.601027, - -25.363426 + 135.645385, + -24.576649 ], [ - 135.511132, - -25.462365 + 135.541804, + -24.470675 ], [ - 135.401593, - -25.543502 + 135.41766, + -24.384981 ], [ - 135.276622, - -25.603756 + 135.27769, + -24.322819 ], [ - 135.141021, - -25.640845 + 135.127207, + -24.286549 ], [ - 135, - -25.653366 + 134.971906, + -24.277547 ], [ - 134.858979, - -25.640845 + 134.817657, + -24.296161 ], [ - 134.723378, - -25.603756 + 134.670296, + -24.34169 ], [ - 134.598407, - -25.543502 + 134.535409, + -24.412415 ], [ - 134.488868, - -25.462365 + 134.418137, + -24.505659 ], [ - 134.398973, - -25.363426 + 134.322976, + -24.617882 ], [ - 134.332174, - -25.250449 + 134.253614, + -24.744813 ], [ - 134.29104, - -25.127742 + 134.212779, + -24.881605 ], [ - 134.277151, - -25 + 134.202129, + -25.02302 ], [ - 134.29104, - -24.872125 + 134.222174, + -25.163624 ], [ - 134.332174, - -24.74904 + 134.272241, + -25.298 ], [ - 134.398973, - -24.635496 + 134.350485, + -25.420951 ], [ - 134.488868, - -24.535888 + 134.453948, + -25.527712 ], [ - 134.598407, - -24.454083 + 134.578662, + -25.614134 ], [ - 134.723378, - -24.393263 + 134.719804, + -25.676853 ], [ - 134.858979, - -24.355795 + 134.871883, + -25.713426 ], [ - 135, - -24.343141 + 135.02896, + -25.72243 ], [ - 135.141021, - -24.355795 + 135.184895, + -25.703518 ], [ - 135.276622, - -24.393263 + 135.333597, + -25.657434 ], [ - 135.401593, - -24.454083 + 135.469273, + -25.585982 ], [ - 135.511132, - -24.535888 + 135.586664, + -25.491951 ], [ - 135.601027, - -24.635496 + 135.681254, + -25.379001 ], [ - 135.667826, - -24.74904 + 135.749443, + -25.251512 ], [ - 135.70896, - -24.872125 + 135.788683, + -25.114417 ], [ - 135.722849, - -25 + 135.797556, + -24.973 ] ] ], [ [ [ - 130.722849, - -20 + 130.76985, + -19.998205 ], [ - 130.70896, - -20.13246 + 130.754356, + -19.8571 ], [ - 130.667826, - -20.259725 + 130.709956, + -19.721545 ], [ - 130.601027, - -20.37692 + 130.638423, + -19.596727 ], [ - 130.511132, - -20.479569 + 130.542549, + -19.487409 ], [ - 130.401593, - -20.56376 + 130.42603, + -19.397753 ], [ - 130.276622, - -20.626289 + 130.293328, + -19.331168 ], [ - 130.141021, - -20.664782 + 130.149498, + -19.29018 ], [ 130, - -20.677777 + -19.276342 ], [ - 129.858979, - -20.664782 + 129.850502, + -19.29018 ], [ - 129.723378, - -20.626289 + 129.706672, + -19.331168 ], [ - 129.598407, - -20.56376 + 129.57397, + -19.397753 ], [ - 129.488868, - -20.479569 + 129.457451, + -19.487409 ], [ - 129.398973, - -20.37692 + 129.361577, + -19.596727 ], [ - 129.332174, - -20.259725 + 129.290044, + -19.721545 ], [ - 129.29104, - -20.13246 + 129.245644, + -19.8571 ], [ - 129.277151, - -20 + 129.23015, + -19.998205 ], [ - 129.29104, - -19.867428 + 129.244236, + -20.139447 ], [ - 129.332174, - -19.739846 + 129.287441, + -20.275391 ], [ - 129.398973, - -19.622176 + 129.358176, + -20.400791 ], [ - 129.488868, - -19.518966 + 129.453771, + -20.510796 ], [ - 129.598407, - -19.434214 + 129.570569, + -20.601138 ], [ - 129.723378, - -19.371209 + 129.704069, + -20.668306 ], [ - 129.858979, - -19.332399 + 129.849093, + -20.709684 ], [ 130, - -19.319292 + -20.723658 ], [ - 130.141021, - -19.332399 + 130.150907, + -20.709684 ], [ - 130.276622, - -19.371209 + 130.295931, + -20.668306 ], [ - 130.401593, - -19.434214 + 130.429431, + -20.601138 ], [ - 130.511132, - -19.518966 + 130.546229, + -20.510796 ], [ - 130.601027, - -19.622176 + 130.641824, + -20.400791 ], [ - 130.667826, - -19.739846 + 130.712559, + -20.275391 ], [ - 130.70896, - -19.867428 + 130.755764, + -20.139447 ], [ - 130.722849, - -20 + 130.76985, + -19.998205 ] ] ], [ [ [ - 125.5, - -24.527577 + 125.500752, + -24.441189 ], [ - 125.598407, - -24.454083 + 125.464591, + -24.412415 ], [ - 125.723378, - -24.393263 + 125.329704, + -24.34169 ], [ - 125.858979, - -24.355795 + 125.182343, + -24.296161 ], [ - 126, - -24.343141 + 125.028094, + -24.277547 ], [ - 126.141021, - -24.355795 + 124.872793, + -24.286549 ], [ - 126.276622, - -24.393263 + 124.72231, + -24.322819 ], [ - 126.401593, - -24.454083 + 124.58234, + -24.384981 ], [ - 126.511132, - -24.535888 + 124.458196, + -24.470675 ], [ - 126.601027, - -24.635496 + 124.354615, + -24.576649 ], [ - 126.667826, - -24.74904 + 124.275582, + -24.698874 ], [ - 126.70896, - -24.872125 + 124.224175, + -24.832695 ], [ - 126.722849, - -25 + 124.202444, + -24.973 ], [ - 126.70896, - -25.127742 + 124.211317, + -25.114417 ], [ - 126.667826, - -25.250449 + 124.250557, + -25.251512 ], [ - 126.601027, - -25.363426 + 124.318746, + -25.379001 ], [ - 126.511132, - -25.462365 + 124.413336, + -25.491951 ], [ - 126.401593, - -25.543502 + 124.530727, + -25.585982 ], [ - 126.276622, - -25.603756 + 124.666403, + -25.657434 ], [ - 126.141021, - -25.640845 + 124.815105, + -25.703518 ], [ - 126, - -25.653366 + 124.97104, + -25.72243 ], [ - 125.858979, - -25.640845 + 125.128117, + -25.713426 ], [ - 125.723378, - -25.603756 + 125.280196, + -25.676853 ], [ - 125.598407, - -25.543502 + 125.421338, + -25.614134 ], [ - 125.5, - -25.470613 + 125.498948, + -25.56038 ], [ - 125.401593, - -25.543502 + 125.535415, + -25.589163 ], [ - 125.276622, - -25.603756 + 125.671669, + -25.659783 ], [ - 125.141021, - -25.640845 + 125.820744, + -25.704942 ], [ - 125, - -25.653366 + 125.97683, + -25.722872 ], [ - 124.858979, - -25.640845 + 126.13383, + -25.712869 ], [ - 124.723378, - -25.603756 + 126.285606, + -25.675319 ], [ - 124.598407, - -25.543502 + 126.426234, + -25.611685 ], [ - 124.488868, - -25.462365 + 126.550243, + -25.524447 ], [ - 124.398973, - -25.363426 + 126.65284, + -25.417 ], [ - 124.332174, - -25.250449 + 126.730094, + -25.293518 ], [ - 124.29104, - -25.127742 + 126.779087, + -25.158788 ], [ - 124.277151, - -25 + 126.798017, + -25.018017 ], [ - 124.29104, - -24.872125 + 126.786254, + -24.876627 ], [ - 124.332174, - -24.74904 + 126.74435, + -24.740051 ], [ - 124.398973, - -24.635496 + 126.674003, + -24.613516 ], [ - 124.488868, - -24.535888 + 126.577979, + -24.501853 ], [ - 124.598407, - -24.454083 + 126.459993, + -24.40931 ], [ - 124.723378, - -24.393263 + 126.324569, + -24.339401 ], [ - 124.858979, - -24.355795 + 126.176863, + -24.294774 ], [ - 125, - -24.343141 + 126.022477, + -24.277114 ], [ - 125.141021, - -24.355795 + 125.867248, + -24.287084 ], [ - 125.276622, - -24.393263 + 125.717046, + -24.324304 ], [ - 125.401593, - -24.454083 + 125.577555, + -24.387361 ], [ - 125.5, - -24.527577 + 125.500752, + -24.441189 ] ] ] @@ -500,136 +500,136 @@ "coordinates": [ [ [ - 130.722849, - -27.5 + 130.815827, + -27.497621 ], [ - 130.70896, - -27.625016 + 130.799128, + -27.356539 ], [ - 130.667826, - -27.745093 + 130.751842, + -27.221049 ], [ - 130.601027, - -27.85564 + 130.675881, + -27.096326 ], [ - 130.511132, - -27.952442 + 130.574227, + -26.987119 ], [ - 130.401593, - -28.031821 + 130.450806, + -26.897575 ], [ - 130.276622, - -28.090767 + 130.310336, + -26.831084 ], [ - 130.141021, - -28.127049 + 130.15815, + -26.790158 ], [ 130, - -28.139298 + -26.776342 ], [ - 129.858979, - -28.127049 + 129.84185, + -26.790158 ], [ - 129.723378, - -28.090767 + 129.689664, + -26.831084 ], [ - 129.598407, - -28.031821 + 129.549194, + -26.897575 ], [ - 129.488868, - -27.952442 + 129.425773, + -26.987119 ], [ - 129.398973, - -27.85564 + 129.324119, + -27.096326 ], [ - 129.332174, - -27.745093 + 129.248158, + -27.221049 ], [ - 129.29104, - -27.625016 + 129.200872, + -27.356539 ], [ - 129.277151, - -27.5 + 129.184173, + -27.497621 ], [ - 129.29104, - -27.374842 + 129.198819, + -27.638884 ], [ - 129.332174, - -27.25436 + 129.244365, + -27.77489 ], [ - 129.398973, - -27.143207 + 129.319164, + -27.900385 ], [ - 129.488868, - -27.04569 + 129.420409, + -28.010502 ], [ - 129.598407, - -26.965597 + 129.544238, + -28.100956 ], [ - 129.723378, - -26.906045 + 129.68587, + -28.16822 ], [ - 129.858979, - -26.869358 + 129.839797, + -28.209661 ], [ 130, - -26.856967 + -28.223658 ], [ - 130.141021, - -26.869358 + 130.160203, + -28.209661 ], [ - 130.276622, - -26.906045 + 130.31413, + -28.16822 ], [ - 130.401593, - -26.965597 + 130.455762, + -28.100956 ], [ - 130.511132, - -27.04569 + 130.579591, + -28.010502 ], [ - 130.601027, - -27.143207 + 130.680836, + -27.900385 ], [ - 130.667826, - -27.25436 + 130.755635, + -27.77489 ], [ - 130.70896, - -27.374842 + 130.801181, + -27.638884 ], [ - 130.722849, - -27.5 + 130.815827, + -27.497621 ] ] ] @@ -648,136 +648,136 @@ "coordinates": [ [ [ - 126.722849, - -24.5 + 126.795254, + -24.497917 ], [ - 126.70896, - -24.628258 + 126.7791, + -24.356824 ], [ - 126.667826, - -24.751463 + 126.733111, + -24.221301 ], [ - 126.601027, - -24.864901 + 126.659135, + -24.096529 ], [ - 126.511132, - -24.964246 + 126.560068, + -23.987266 ], [ - 126.401593, - -25.045715 + 126.439734, + -23.897666 ], [ - 126.276622, - -25.106218 + 126.302737, + -23.831126 ], [ - 126.141021, - -25.14346 + 126.154285, + -23.790169 ], [ 126, - -25.156033 + -23.776342 ], [ - 125.858979, - -25.14346 + 125.845715, + -23.790169 ], [ - 125.723378, - -25.106218 + 125.697263, + -23.831126 ], [ - 125.598407, - -25.045715 + 125.560266, + -23.897666 ], [ - 125.488868, - -24.964246 + 125.439932, + -23.987266 ], [ - 125.398973, - -24.864901 + 125.340865, + -24.096529 ], [ - 125.332174, - -24.751463 + 125.266889, + -24.221301 ], [ - 125.29104, - -24.628258 + 125.2209, + -24.356824 ], [ - 125.277151, - -24.5 + 125.204746, + -24.497917 ], [ - 125.29104, - -24.371611 + 125.219148, + -24.639169 ], [ - 125.332174, - -24.248033 + 125.263653, + -24.775144 ], [ - 125.398973, - -24.134036 + 125.336636, + -24.900591 ], [ - 125.488868, - -24.034034 + 125.435355, + -25.010651 ], [ - 125.598407, - -23.951906 + 125.556036, + -25.101049 ], [ - 125.723378, - -23.890845 + 125.694026, + -25.168263 ], [ - 125.858979, - -23.85323 + 125.843963, + -25.209673 ], [ 126, - -23.840526 + -25.223658 ], [ - 126.141021, - -23.85323 + 126.156037, + -25.209673 ], [ - 126.276622, - -23.890845 + 126.305974, + -25.168263 ], [ - 126.401593, - -23.951906 + 126.443964, + -25.101049 ], [ - 126.511132, - -24.034034 + 126.564645, + -25.010651 ], [ - 126.601027, - -24.134036 + 126.663364, + -24.900591 ], [ - 126.667826, - -24.248033 + 126.736347, + -24.775144 ], [ - 126.70896, - -24.371611 + 126.780852, + -24.639169 ], [ - 126.722849, - -24.5 + 126.795254, + -24.497917 ] ] ] diff --git a/packages/turf-buffer/test/out/geometry-collection-points.geojson b/packages/turf-buffer/test/out/geometry-collection-points.geojson index cff6091e40..88a77a01e5 100644 --- a/packages/turf-buffer/test/out/geometry-collection-points.geojson +++ b/packages/turf-buffer/test/out/geometry-collection-points.geojson @@ -15,408 +15,408 @@ [ [ [ - 135.722849, - -25 + 135.797556, + -24.973 ], [ - 135.70896, - -25.127742 + 135.775825, + -24.832695 ], [ - 135.667826, - -25.250449 + 135.724418, + -24.698874 ], [ - 135.601027, - -25.363426 + 135.645385, + -24.576649 ], [ - 135.511132, - -25.462365 + 135.541804, + -24.470675 ], [ - 135.401593, - -25.543502 + 135.41766, + -24.384981 ], [ - 135.276622, - -25.603756 + 135.27769, + -24.322819 ], [ - 135.141021, - -25.640845 + 135.127207, + -24.286549 ], [ - 135, - -25.653366 + 134.971906, + -24.277547 ], [ - 134.858979, - -25.640845 + 134.817657, + -24.296161 ], [ - 134.723378, - -25.603756 + 134.670296, + -24.34169 ], [ - 134.598407, - -25.543502 + 134.535409, + -24.412415 ], [ - 134.488868, - -25.462365 + 134.418137, + -24.505659 ], [ - 134.398973, - -25.363426 + 134.322976, + -24.617882 ], [ - 134.332174, - -25.250449 + 134.253614, + -24.744813 ], [ - 134.29104, - -25.127742 + 134.212779, + -24.881605 ], [ - 134.277151, - -25 + 134.202129, + -25.02302 ], [ - 134.29104, - -24.872125 + 134.222174, + -25.163624 ], [ - 134.332174, - -24.74904 + 134.272241, + -25.298 ], [ - 134.398973, - -24.635496 + 134.350485, + -25.420951 ], [ - 134.488868, - -24.535888 + 134.453948, + -25.527712 ], [ - 134.598407, - -24.454083 + 134.578662, + -25.614134 ], [ - 134.723378, - -24.393263 + 134.719804, + -25.676853 ], [ - 134.858979, - -24.355795 + 134.871883, + -25.713426 ], [ - 135, - -24.343141 + 135.02896, + -25.72243 ], [ - 135.141021, - -24.355795 + 135.184895, + -25.703518 ], [ - 135.276622, - -24.393263 + 135.333597, + -25.657434 ], [ - 135.401593, - -24.454083 + 135.469273, + -25.585982 ], [ - 135.511132, - -24.535888 + 135.586664, + -25.491951 ], [ - 135.601027, - -24.635496 + 135.681254, + -25.379001 ], [ - 135.667826, - -24.74904 + 135.749443, + -25.251512 ], [ - 135.70896, - -24.872125 + 135.788683, + -25.114417 ], [ - 135.722849, - -25 + 135.797556, + -24.973 ] ] ], [ [ [ - 130.722849, - -20 + 130.76985, + -19.998205 ], [ - 130.70896, - -20.13246 + 130.754356, + -19.8571 ], [ - 130.667826, - -20.259725 + 130.709956, + -19.721545 ], [ - 130.601027, - -20.37692 + 130.638423, + -19.596727 ], [ - 130.511132, - -20.479569 + 130.542549, + -19.487409 ], [ - 130.401593, - -20.56376 + 130.42603, + -19.397753 ], [ - 130.276622, - -20.626289 + 130.293328, + -19.331168 ], [ - 130.141021, - -20.664782 + 130.149498, + -19.29018 ], [ 130, - -20.677777 + -19.276342 ], [ - 129.858979, - -20.664782 + 129.850502, + -19.29018 ], [ - 129.723378, - -20.626289 + 129.706672, + -19.331168 ], [ - 129.598407, - -20.56376 + 129.57397, + -19.397753 ], [ - 129.488868, - -20.479569 + 129.457451, + -19.487409 ], [ - 129.398973, - -20.37692 + 129.361577, + -19.596727 ], [ - 129.332174, - -20.259725 + 129.290044, + -19.721545 ], [ - 129.29104, - -20.13246 + 129.245644, + -19.8571 ], [ - 129.277151, - -20 + 129.23015, + -19.998205 ], [ - 129.29104, - -19.867428 + 129.244236, + -20.139447 ], [ - 129.332174, - -19.739846 + 129.287441, + -20.275391 ], [ - 129.398973, - -19.622176 + 129.358176, + -20.400791 ], [ - 129.488868, - -19.518966 + 129.453771, + -20.510796 ], [ - 129.598407, - -19.434214 + 129.570569, + -20.601138 ], [ - 129.723378, - -19.371209 + 129.704069, + -20.668306 ], [ - 129.858979, - -19.332399 + 129.849093, + -20.709684 ], [ 130, - -19.319292 + -20.723658 ], [ - 130.141021, - -19.332399 + 130.150907, + -20.709684 ], [ - 130.276622, - -19.371209 + 130.295931, + -20.668306 ], [ - 130.401593, - -19.434214 + 130.429431, + -20.601138 ], [ - 130.511132, - -19.518966 + 130.546229, + -20.510796 ], [ - 130.601027, - -19.622176 + 130.641824, + -20.400791 ], [ - 130.667826, - -19.739846 + 130.712559, + -20.275391 ], [ - 130.70896, - -19.867428 + 130.755764, + -20.139447 ], [ - 130.722849, - -20 + 130.76985, + -19.998205 ] ] ], [ [ [ - 125.722849, - -25 + 125.797871, + -25.02302 ], [ - 125.70896, - -25.127742 + 125.787221, + -24.881605 ], [ - 125.667826, - -25.250449 + 125.746386, + -24.744813 ], [ - 125.601027, - -25.363426 + 125.677024, + -24.617882 ], [ - 125.511132, - -25.462365 + 125.581863, + -24.505659 ], [ - 125.401593, - -25.543502 + 125.464591, + -24.412415 ], [ - 125.276622, - -25.603756 + 125.329704, + -24.34169 ], [ - 125.141021, - -25.640845 + 125.182343, + -24.296161 ], [ - 125, - -25.653366 + 125.028094, + -24.277547 ], [ - 124.858979, - -25.640845 + 124.872793, + -24.286549 ], [ - 124.723378, - -25.603756 + 124.72231, + -24.322819 ], [ - 124.598407, - -25.543502 + 124.58234, + -24.384981 ], [ - 124.488868, - -25.462365 + 124.458196, + -24.470675 ], [ - 124.398973, - -25.363426 + 124.354615, + -24.576649 ], [ - 124.332174, - -25.250449 + 124.275582, + -24.698874 ], [ - 124.29104, - -25.127742 + 124.224175, + -24.832695 ], [ - 124.277151, - -25 + 124.202444, + -24.973 ], [ - 124.29104, - -24.872125 + 124.211317, + -25.114417 ], [ - 124.332174, - -24.74904 + 124.250557, + -25.251512 ], [ - 124.398973, - -24.635496 + 124.318746, + -25.379001 ], [ - 124.488868, - -24.535888 + 124.413336, + -25.491951 ], [ - 124.598407, - -24.454083 + 124.530727, + -25.585982 ], [ - 124.723378, - -24.393263 + 124.666403, + -25.657434 ], [ - 124.858979, - -24.355795 + 124.815105, + -25.703518 ], [ - 125, - -24.343141 + 124.97104, + -25.72243 ], [ - 125.141021, - -24.355795 + 125.128117, + -25.713426 ], [ - 125.276622, - -24.393263 + 125.280196, + -25.676853 ], [ - 125.401593, - -24.454083 + 125.421338, + -25.614134 ], [ - 125.511132, - -24.535888 + 125.546052, + -25.527712 ], [ - 125.601027, - -24.635496 + 125.649515, + -25.420951 ], [ - 125.667826, - -24.74904 + 125.727759, + -25.298 ], [ - 125.70896, - -24.872125 + 125.777826, + -25.163624 ], [ - 125.722849, - -25 + 125.797871, + -25.02302 ] ] ] @@ -436,136 +436,136 @@ "coordinates": [ [ [ - 130.722849, - -27.5 + 130.815827, + -27.497621 ], [ - 130.70896, - -27.625016 + 130.799128, + -27.356539 ], [ - 130.667826, - -27.745093 + 130.751842, + -27.221049 ], [ - 130.601027, - -27.85564 + 130.675881, + -27.096326 ], [ - 130.511132, - -27.952442 + 130.574227, + -26.987119 ], [ - 130.401593, - -28.031821 + 130.450806, + -26.897575 ], [ - 130.276622, - -28.090767 + 130.310336, + -26.831084 ], [ - 130.141021, - -28.127049 + 130.15815, + -26.790158 ], [ 130, - -28.139298 + -26.776342 ], [ - 129.858979, - -28.127049 + 129.84185, + -26.790158 ], [ - 129.723378, - -28.090767 + 129.689664, + -26.831084 ], [ - 129.598407, - -28.031821 + 129.549194, + -26.897575 ], [ - 129.488868, - -27.952442 + 129.425773, + -26.987119 ], [ - 129.398973, - -27.85564 + 129.324119, + -27.096326 ], [ - 129.332174, - -27.745093 + 129.248158, + -27.221049 ], [ - 129.29104, - -27.625016 + 129.200872, + -27.356539 ], [ - 129.277151, - -27.5 + 129.184173, + -27.497621 ], [ - 129.29104, - -27.374842 + 129.198819, + -27.638884 ], [ - 129.332174, - -27.25436 + 129.244365, + -27.77489 ], [ - 129.398973, - -27.143207 + 129.319164, + -27.900385 ], [ - 129.488868, - -27.04569 + 129.420409, + -28.010502 ], [ - 129.598407, - -26.965597 + 129.544238, + -28.100956 ], [ - 129.723378, - -26.906045 + 129.68587, + -28.16822 ], [ - 129.858979, - -26.869358 + 129.839797, + -28.209661 ], [ 130, - -26.856967 + -28.223658 ], [ - 130.141021, - -26.869358 + 130.160203, + -28.209661 ], [ - 130.276622, - -26.906045 + 130.31413, + -28.16822 ], [ - 130.401593, - -26.965597 + 130.455762, + -28.100956 ], [ - 130.511132, - -27.04569 + 130.579591, + -28.010502 ], [ - 130.601027, - -27.143207 + 130.680836, + -27.900385 ], [ - 130.667826, - -27.25436 + 130.755635, + -27.77489 ], [ - 130.70896, - -27.374842 + 130.801181, + -27.638884 ], [ - 130.722849, - -27.5 + 130.815827, + -27.497621 ] ] ] diff --git a/packages/turf-buffer/test/out/issue-#783.geojson b/packages/turf-buffer/test/out/issue-#783.geojson index b484488da3..c2d5ec085c 100644 --- a/packages/turf-buffer/test/out/issue-#783.geojson +++ b/packages/turf-buffer/test/out/issue-#783.geojson @@ -14,168 +14,168 @@ "coordinates": [ [ [ - 4.946688, - 52.509481 + 4.946663, + 52.509462 ], [ - 4.946741, - 52.50946 + 4.946723, + 52.509438 ], [ - 4.947205, - 52.509314 + 4.947187, + 52.509292 ], [ - 4.947217, - 52.50931 + 4.9472, + 52.509288 ], [ - 4.947287, - 52.50929 + 4.94727, + 52.509268 ], [ - 4.947357, - 52.509276 + 4.947349, + 52.509252 ], [ - 4.947691, - 52.509232 + 4.947683, + 52.509208 ], [ - 4.947754, - 52.509227 + 4.947753, + 52.509203 ], [ - 4.947817, - 52.50923 + 4.947824, + 52.509206 ], [ - 4.947878, - 52.50924 + 4.947892, + 52.509218 ], [ - 4.947935, - 52.509257 + 4.947955, + 52.509237 ], [ - 4.947985, - 52.50928 + 4.948012, + 52.509263 ], [ - 4.948027, - 52.509309 + 4.948059, + 52.509295 ], [ - 4.948059, - 52.509342 + 4.948095, + 52.509332 ], [ - 4.948081, - 52.509378 + 4.948119, + 52.509372 ], [ - 4.94809, - 52.509416 + 4.94813, + 52.509415 ], [ - 4.948088, - 52.509455 + 4.948127, + 52.509458 ], [ - 4.948074, - 52.509492 + 4.948111, + 52.5095 ], [ - 4.948048, - 52.509527 + 4.948082, + 52.509539 ], [ - 4.948012, - 52.509559 + 4.948042, + 52.509574 ], [ - 4.947966, - 52.509585 + 4.947991, + 52.509604 ], [ - 4.947913, - 52.509606 + 4.947931, + 52.509628 ], [ - 4.947483, - 52.509742 + 4.947501, + 52.509764 ], [ - 4.947457, - 52.50975 + 4.947472, + 52.509772 ], [ - 4.946862, - 52.5099 + 4.946877, + 52.509922 ], [ - 4.946802, - 52.509911 + 4.94681, + 52.509934 ], [ 4.94674, - 52.509915 + 52.509939 ], [ - 4.946677, - 52.509912 + 4.94667, + 52.509935 ], [ - 4.946616, - 52.509901 + 4.946602, + 52.509924 ], [ - 4.94656, - 52.509884 + 4.946539, + 52.509904 ], [ - 4.94651, - 52.509861 + 4.946484, + 52.509878 ], [ - 4.946469, - 52.509832 + 4.946437, + 52.509846 ], [ - 4.946437, - 52.509799 + 4.946401, + 52.509809 ], [ - 4.946416, - 52.509763 + 4.946378, + 52.509769 ], [ - 4.946406, - 52.509725 + 4.946367, + 52.509726 ], [ - 4.946409, - 52.509687 + 4.94637, + 52.509684 ], [ - 4.946423, - 52.50965 + 4.946386, + 52.509642 ], [ - 4.946449, - 52.509615 + 4.946415, + 52.509603 ], [ - 4.946485, - 52.509583 + 4.946455, + 52.509568 ], [ - 4.946531, - 52.509557 + 4.946506, + 52.509538 ], [ - 4.946688, - 52.509481 + 4.946663, + 52.509462 ] ] ] @@ -194,136 +194,136 @@ "coordinates": [ [ [ - 4.946985, - 52.509846 + 4.947105, + 52.509714 ], [ - 4.946938, - 52.509873 + 4.947098, + 52.509758 ], [ - 4.946884, - 52.509894 + 4.947077, + 52.5098 ], [ - 4.946823, - 52.509908 + 4.947043, + 52.509839 ], [ - 4.946759, - 52.509914 + 4.946997, + 52.509873 ], [ - 4.946695, - 52.509913 + 4.946941, + 52.509901 ], [ - 4.946632, - 52.509905 + 4.946877, + 52.509922 ], [ - 4.946572, - 52.509888 + 4.946808, + 52.509935 ], [ - 4.94652, - 52.509866 + 4.946736, + 52.509939 ], [ - 4.946475, - 52.509837 + 4.946664, + 52.509935 ], [ - 4.946441, - 52.509804 + 4.946595, + 52.509922 ], [ - 4.946418, - 52.509767 + 4.946531, + 52.509901 ], [ - 4.946407, - 52.509728 + 4.946475, + 52.509873 ], [ - 4.946409, - 52.509689 + 4.946429, + 52.509839 ], [ - 4.946423, - 52.50965 + 4.946395, + 52.5098 ], [ - 4.946449, - 52.509614 + 4.946374, + 52.509758 ], [ - 4.946487, - 52.509582 + 4.946367, + 52.509714 ], [ - 4.946534, - 52.509555 + 4.946374, + 52.50967 ], [ - 4.946588, - 52.509534 + 4.946395, + 52.509628 ], [ - 4.946649, - 52.50952 + 4.946429, + 52.509589 ], [ - 4.946713, - 52.509514 + 4.946475, + 52.509555 ], [ - 4.946777, - 52.509515 + 4.946531, + 52.509527 ], [ - 4.94684, - 52.509523 + 4.946595, + 52.509506 ], [ - 4.9469, - 52.50954 + 4.946664, + 52.509493 ], [ - 4.946952, - 52.509562 + 4.946736, + 52.509489 ], [ - 4.946997, - 52.509591 + 4.946808, + 52.509493 ], [ - 4.947031, - 52.509624 + 4.946877, + 52.509506 ], [ - 4.947054, - 52.509661 + 4.946941, + 52.509527 ], [ - 4.947065, - 52.5097 + 4.946997, + 52.509555 ], [ - 4.947063, - 52.509739 + 4.947043, + 52.509589 ], [ - 4.947049, - 52.509778 + 4.947077, + 52.509628 ], [ - 4.947023, - 52.509814 + 4.947098, + 52.50967 ], [ - 4.946985, - 52.509846 + 4.947105, + 52.509714 ] ] ] @@ -342,136 +342,136 @@ "coordinates": [ [ [ - 4.94801, - 52.50956 + 4.94813, + 52.509428 ], [ - 4.947963, - 52.509587 + 4.948123, + 52.509472 ], [ - 4.947909, - 52.509608 + 4.948102, + 52.509514 ], [ - 4.947848, - 52.509622 + 4.948068, + 52.509553 ], [ - 4.947784, - 52.509628 + 4.948022, + 52.509587 ], [ - 4.94772, - 52.509627 + 4.947966, + 52.509615 ], [ - 4.947657, - 52.509619 + 4.947902, + 52.509636 ], [ - 4.947597, - 52.509602 + 4.947833, + 52.509649 ], [ - 4.947545, - 52.50958 + 4.947761, + 52.509653 ], [ - 4.9475, - 52.509551 + 4.947689, + 52.509649 ], [ - 4.947466, - 52.509518 + 4.94762, + 52.509636 ], [ - 4.947443, - 52.509481 + 4.947556, + 52.509615 ], [ - 4.947432, - 52.509442 + 4.9475, + 52.509587 ], [ - 4.947434, - 52.509403 + 4.947454, + 52.509553 ], [ - 4.947448, - 52.509364 + 4.94742, + 52.509514 ], [ - 4.947474, - 52.509328 + 4.947399, + 52.509472 ], [ - 4.947512, - 52.509296 + 4.947392, + 52.509428 ], [ - 4.947559, - 52.509269 + 4.947399, + 52.509384 ], [ - 4.947613, - 52.509248 + 4.94742, + 52.509342 ], [ - 4.947674, - 52.509234 + 4.947454, + 52.509303 ], [ - 4.947738, - 52.509228 + 4.9475, + 52.509269 ], [ - 4.947802, - 52.509229 + 4.947556, + 52.509241 ], [ - 4.947865, - 52.509237 + 4.94762, + 52.50922 ], [ - 4.947925, - 52.509254 + 4.947689, + 52.509207 ], [ - 4.947977, - 52.509276 + 4.947761, + 52.509203 ], [ - 4.948022, - 52.509305 + 4.947833, + 52.509207 ], [ - 4.948056, - 52.509338 + 4.947902, + 52.50922 ], [ - 4.948079, - 52.509375 + 4.947966, + 52.509241 ], [ - 4.94809, - 52.509414 + 4.948022, + 52.509269 ], [ - 4.948088, - 52.509453 + 4.948068, + 52.509303 ], [ - 4.948074, - 52.509492 + 4.948102, + 52.509342 ], [ - 4.948048, - 52.509528 + 4.948123, + 52.509384 ], [ - 4.94801, - 52.50956 + 4.94813, + 52.509428 ] ] ] diff --git a/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson b/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson index 127500a93e..208098fdd0 100644 --- a/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson +++ b/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson @@ -14,135 +14,135 @@ "coordinates": [ [ [ - -78.495206, + -78.49519, -0.222456 ], [ - -78.495484, - -0.225277 + -78.495468, + -0.219633 ], [ - -78.496307, - -0.227989 + -78.496292, + -0.216918 ], [ - -78.497643, - -0.230488 + -78.497629, + -0.214416 ], [ - -78.499441, - -0.232679 + -78.499429, + -0.212222 ], [ - -78.501631, - -0.234477 + -78.501622, + -0.210422 ], [ - -78.504131, - -0.235813 + -78.504125, + -0.209085 ], [ - -78.506843, - -0.236636 + -78.50684, + -0.208261 ], [ -78.509663, - -0.236913 + -0.207983 ], [ - -78.512484, - -0.236636 + -78.512487, + -0.208261 ], [ - -78.515196, - -0.235813 + -78.515202, + -0.209085 ], [ - -78.517695, - -0.234477 + -78.517704, + -0.210422 ], [ - -78.519886, - -0.232679 + -78.519897, + -0.212222 ], [ - -78.521684, - -0.230488 + -78.521697, + -0.214416 ], [ - -78.52302, - -0.227989 + -78.523035, + -0.216918 ], [ - -78.523843, - -0.225277 + -78.523859, + -0.219633 ], [ - -78.52412, + -78.524137, -0.222456 ], [ - -78.523843, - -0.219636 + -78.523859, + -0.22528 ], [ - -78.52302, - -0.216924 + -78.523035, + -0.227995 ], [ - -78.521684, - -0.214425 + -78.521697, + -0.230497 ], [ - -78.519886, - -0.212234 + -78.519897, + -0.232691 ], [ - -78.517695, - -0.210436 + -78.517704, + -0.23449 ], [ - -78.515196, - -0.2091 + -78.515202, + -0.235828 ], [ - -78.512484, - -0.208277 + -78.512487, + -0.236652 ], [ -78.509663, - -0.208 + -0.23693 ], [ - -78.506843, - -0.208277 + -78.50684, + -0.236652 ], [ - -78.504131, - -0.2091 + -78.504125, + -0.235828 ], [ - -78.501631, - -0.210436 + -78.501622, + -0.23449 ], [ - -78.499441, - -0.212234 + -78.499429, + -0.232691 ], [ - -78.497643, - -0.214425 + -78.497629, + -0.230497 ], [ - -78.496307, - -0.216924 + -78.496292, + -0.227995 ], [ - -78.495484, - -0.219636 + -78.495468, + -0.22528 ], [ - -78.495206, + -78.49519, -0.222456 ] ] @@ -162,156 +162,156 @@ "coordinates": [ [ [ - -78.52224, - -0.215287 + -78.522254, + -0.215278 ], [ - -78.522229, - -0.215268 + -78.52338, + -0.217771 ], [ - -78.52059, - -0.212958 + -78.524018, + -0.22043 ], [ - -78.518532, - -0.211013 + -78.524144, + -0.223163 ], [ - -78.516134, - -0.209506 + -78.523753, + -0.22587 ], [ - -78.513489, - -0.208495 + -78.52286, + -0.228455 ], [ - -78.510697, - -0.20802 + -78.521497, + -0.230826 ], [ - -78.507866, - -0.208097 + -78.519712, + -0.232898 ], [ - -78.505105, - -0.208725 + -78.51757, + -0.234598 ], [ - -78.505081, - -0.208733 + -78.515145, + -0.235864 ], [ - -78.502569, - -0.209846 + -78.512526, + -0.236651 ], [ - -78.500313, - -0.211413 + -78.512499, + -0.236657 ], [ - -78.498394, - -0.213379 + -78.50982, + -0.236937 ], [ - -78.496882, - -0.215672 + -78.507136, + -0.236716 ], [ - -78.495831, - -0.21821 + -78.504539, + -0.236001 ], [ - -78.495279, - -0.220901 + -78.50212, + -0.234818 ], [ - -78.495245, - -0.223648 + -78.499961, + -0.233207 ], [ - -78.495732, - -0.226351 + -78.498139, + -0.231224 ], [ - -78.496722, - -0.228914 + -78.496715, + -0.228937 ], [ - -78.49673, - -0.22893 + -78.496707, + -0.228921 ], [ - -78.498152, - -0.231214 + -78.495717, + -0.226356 ], [ - -78.499972, - -0.233195 + -78.495229, + -0.223649 ], [ - -78.502128, - -0.234804 + -78.495263, + -0.220899 ], [ - -78.504545, - -0.235986 + -78.495815, + -0.218205 ], [ - -78.507139, - -0.2367 + -78.496868, + -0.215664 ], [ - -78.50982, - -0.236921 + -78.498382, + -0.213369 ], [ - -78.512496, - -0.236641 + -78.500303, + -0.211401 ], [ - -78.512523, - -0.236635 + -78.502561, + -0.209832 ], [ - -78.515139, - -0.235849 + -78.505076, + -0.208718 ], [ - -78.517561, - -0.234584 + -78.5051, + -0.20871 ], [ - -78.519701, - -0.232887 + -78.507864, + -0.208081 ], [ - -78.521484, - -0.230816 + -78.510698, + -0.208003 ], [ - -78.522846, - -0.228448 + -78.513493, + -0.208479 ], [ - -78.523737, - -0.225866 + -78.516142, + -0.209491 ], [ - -78.524127, - -0.223162 + -78.518542, + -0.211 ], [ - -78.524002, - -0.220433 + -78.520602, + -0.212948 ], [ - -78.523365, - -0.217776 + -78.522243, + -0.21526 ], [ - -78.52224, - -0.215287 + -78.522254, + -0.215278 ] ] ] diff --git a/packages/turf-buffer/test/out/issue-#801.geojson b/packages/turf-buffer/test/out/issue-#801.geojson index 9ff81928d5..c24e34a760 100644 --- a/packages/turf-buffer/test/out/issue-#801.geojson +++ b/packages/turf-buffer/test/out/issue-#801.geojson @@ -16,152 +16,152 @@ "coordinates": [ [ [ - 5.82622, - 50.759174 + 5.825459, + 50.760621 ], [ - 5.822487, - 50.758114 + 5.821286, + 50.759436 ], [ - 5.819163, - 50.756605 + 5.81757, + 50.757749 ], [ - 5.816379, - 50.754708 + 5.814458, + 50.755629 ], [ - 5.814248, - 50.752498 + 5.812076, + 50.753159 ], [ - 5.812855, - 50.750064 + 5.810518, + 50.750439 ], [ - 5.812254, - 50.747504 + 5.809846, + 50.747577 ], [ - 5.81247, - 50.74492 + 5.810088, + 50.744688 ], [ - 5.812475, - 50.744897 + 5.810093, + 50.744665 ], [ - 5.813477, - 50.742431 + 5.811212, + 50.741909 ], [ - 5.815221, - 50.740137 + 5.813162, + 50.739344 ], [ - 5.817641, - 50.738103 + 5.815867, + 50.73707 ], [ - 5.820643, - 50.736407 + 5.819223, + 50.735175 ], [ - 5.82411, - 50.735117 + 5.823099, + 50.733732 ], [ - 5.82791, - 50.73428 + 5.827347, + 50.732797 ], [ - 5.831895, - 50.73393 + 5.831801, + 50.732406 ], [ - 5.835911, - 50.734081 + 5.836291, + 50.732575 ], [ - 5.839803, - 50.734726 + 5.840641, + 50.733296 ], [ - 5.843421, - 50.73584 + 5.844684, + 50.734542 ], [ - 5.843456, - 50.735853 + 5.844719, + 50.734555 ], [ - 5.846762, - 50.737455 + 5.848414, + 50.736345 ], [ - 5.849487, - 50.739447 + 5.85146, + 50.738572 ], [ - 5.851519, - 50.741746 + 5.853731, + 50.741142 ], [ - 5.852774, - 50.744259 + 5.855133, + 50.74395 ], [ - 5.853199, + 5.855608, 50.74688 ], [ - 5.853199, + 5.855608, 50.746897 ], [ - 5.852835, - 50.749333 + 5.855201, + 50.74962 ], [ - 5.851753, - 50.751682 + 5.853991, + 50.752245 ], [ - 5.849991, - 50.753861 + 5.852022, + 50.75468 ], [ - 5.847613, - 50.755791 + 5.849364, + 50.756837 ], [ - 5.844703, - 50.757403 + 5.846112, + 50.758639 ], [ - 5.841365, - 50.758641 + 5.842382, + 50.760022 ], [ - 5.837719, - 50.759458 + 5.838307, + 50.760936 ], [ - 5.833895, - 50.759827 + 5.834032, + 50.761349 ], [ - 5.830029, - 50.759734 + 5.829712, + 50.761245 ], [ - 5.82626, - 50.759183 + 5.825499, + 50.760629 ], [ - 5.82622, - 50.759174 + 5.825459, + 50.760621 ] ] ] @@ -180,136 +180,136 @@ "coordinates": [ [ [ - 5.848918, - 50.754799 + 5.855589, + 50.746885 ], [ - 5.846166, - 50.756647 + 5.855151, + 50.749708 ], [ - 5.842898, - 50.75812 + 5.853851, + 50.752424 ], [ - 5.839238, - 50.759161 + 5.851738, + 50.754926 ], [ - 5.835327, - 50.75973 + 5.848893, + 50.75712 ], [ - 5.831315, - 50.759806 + 5.845427, + 50.75892 ], [ - 5.827358, - 50.759384 + 5.841471, + 50.760258 ], [ - 5.823607, - 50.758483 + 5.837179, + 50.761082 ], [ - 5.820206, - 50.757135 + 5.832716, + 50.76136 ], [ - 5.817287, - 50.755394 + 5.828252, + 50.761082 ], [ - 5.81496, - 50.753326 + 5.82396, + 50.760258 ], [ - 5.813317, - 50.751011 + 5.820005, + 50.75892 ], [ - 5.812419, - 50.748537 + 5.816538, + 50.75712 ], [ - 5.812301, - 50.746 + 5.813694, + 50.754926 ], [ - 5.812967, - 50.743497 + 5.811581, + 50.752424 ], [ - 5.814392, - 50.741124 + 5.81028, + 50.749708 ], [ - 5.816521, - 50.738973 + 5.809842, + 50.746885 ], [ - 5.819272, - 50.737126 + 5.810283, + 50.744061 ], [ - 5.822539, - 50.735654 + 5.811586, + 50.741347 ], [ - 5.826197, - 50.734614 + 5.8137, + 50.738845 ], [ - 5.830105, - 50.734045 + 5.816545, + 50.736652 ], [ - 5.834113, - 50.733969 + 5.820011, + 50.734852 ], [ - 5.838068, - 50.73439 + 5.823965, + 50.733515 ], [ - 5.841818, - 50.73529 + 5.828255, + 50.732692 ], [ - 5.845218, - 50.736637 + 5.832716, + 50.732414 ], [ - 5.848138, - 50.738377 + 5.837177, + 50.732692 ], [ - 5.850466, - 50.740444 + 5.841466, + 50.733515 ], [ - 5.852112, - 50.742759 + 5.84542, + 50.734852 ], [ - 5.853012, - 50.745233 + 5.848886, + 50.736652 ], [ - 5.853133, - 50.74777 + 5.851731, + 50.738845 ], [ - 5.852469, - 50.750274 + 5.853846, + 50.741347 ], [ - 5.851046, - 50.752647 + 5.855148, + 50.744061 ], [ - 5.848918, - 50.754799 + 5.855589, + 50.746885 ] ] ] diff --git a/packages/turf-buffer/test/out/issue-#815.geojson b/packages/turf-buffer/test/out/issue-#815.geojson index 0a06fba33c..4b43a7bda6 100644 --- a/packages/turf-buffer/test/out/issue-#815.geojson +++ b/packages/turf-buffer/test/out/issue-#815.geojson @@ -16,212 +16,212 @@ "coordinates": [ [ [ - 9.404639, - 52.005 + 9.404713, + 52.004297 ], [ - 9.406648, - 52.005149 + 9.40692, + 52.004465 ], [ - 9.408582, - 52.005517 + 9.409044, + 52.004873 ], [ - 9.410378, - 52.006092 + 9.411015, + 52.005507 ], [ - 9.411978, - 52.006856 + 9.41277, + 52.006348 ], [ - 9.41333, - 52.007783 + 9.414254, + 52.007368 ], [ - 10.288951, - 52.71603 + 10.289477, + 52.71537 ], [ - 11.380072, - 52.715979 + 11.37991, + 52.71535 ], [ - 12.432972, - 52.516208 + 12.432689, + 52.515627 ], [ - 12.435187, - 52.515915 + 12.435096, + 52.515312 ], [ - 12.437454, - 52.515891 + 12.437558, + 52.515289 ], [ - 12.439685, - 52.516136 + 12.439981, + 52.515558 ], [ - 12.441795, - 52.516641 + 12.44227, + 52.51611 ], [ - 12.443702, - 52.517387 + 12.444339, + 52.516922 ], [ - 12.445333, - 52.518345 + 12.446108, + 52.517965 ], [ - 12.446626, - 52.519479 + 12.447508, + 52.519197 ], [ - 12.447531, - 52.520744 + 12.448487, + 52.520572 ], [ - 12.448013, - 52.522092 + 12.449005, + 52.522037 ], [ - 12.448054, - 52.523472 + 12.449044, + 52.523535 ], [ - 12.447651, - 52.524829 + 12.448602, + 52.525009 ], [ - 12.44682, - 52.526113 + 12.447696, + 52.526402 ], [ - 12.445594, - 52.527274 + 12.44636, + 52.527661 ], [ - 12.444019, - 52.528267 + 12.444646, + 52.528737 ], [ - 12.442156, - 52.529054 + 12.44262, + 52.529589 ], [ - 12.440076, - 52.529604 + 12.440359, + 52.530184 ], [ - 11.385189, - 52.729702 + 11.385514, + 52.730298 ], [ - 11.381941, - 52.730001 + 11.381932, + 52.730629 ], [ - 10.283098, - 52.729972 + 10.283107, + 52.730629 ], [ - 10.281011, - 52.729845 + 10.280823, + 52.730493 ], [ - 10.278997, - 52.729492 + 10.278617, + 52.730107 ], [ - 10.277122, - 52.728923 + 10.276563, + 52.729486 ], [ - 10.275447, - 52.728158 + 10.274729, + 52.72865 ], [ - 10.27403, - 52.727222 + 10.273175, + 52.727627 ], [ - 9.398517, - 52.018772 + 9.397908, + 52.019453 ], [ - 7.162332, - 51.951124 + 7.162288, + 51.951892 ], [ - 7.160175, - 51.950902 + 7.159889, + 51.95165 ], [ - 7.15813, - 51.950424 + 7.157612, + 51.951123 ], [ - 7.156276, - 51.94971 + 7.155546, + 51.950333 ], [ - 7.154683, - 51.948786 + 7.15377, + 51.94931 ], [ - 7.153414, - 51.947689 + 7.152352, + 51.948093 ], [ - 7.152517, - 51.94646 + 7.151347, + 51.946728 ], [ - 7.152025, - 51.945147 + 7.150793, + 51.94527 ], [ - 7.151959, - 51.9438 + 7.150711, + 51.943772 ], [ - 7.15232, - 51.94247 + 7.151105, + 51.942294 ], [ - 7.153095, - 51.94121 + 7.151959, + 51.940891 ], [ - 7.154254, - 51.940067 + 7.153241, + 51.939618 ], [ - 7.155752, - 51.939086 + 7.154901, + 51.938523 ], [ - 7.157531, - 51.938303 + 7.156875, + 51.937649 ], [ - 7.159525, - 51.93775 + 7.159088, + 51.93703 ], [ - 7.161655, - 51.937447 + 7.161454, + 51.936688 ], [ - 7.163839, - 51.937406 + 7.163883, + 51.936638 ], [ - 9.404639, - 52.005 + 9.404713, + 52.004297 ] ] ] diff --git a/packages/turf-buffer/test/out/issue-#900.geojson b/packages/turf-buffer/test/out/issue-#900.geojson index c7dfcaff96..5d8a40347c 100644 --- a/packages/turf-buffer/test/out/issue-#900.geojson +++ b/packages/turf-buffer/test/out/issue-#900.geojson @@ -14,952 +14,968 @@ "coordinates": [ [ [ - -87.240659, - 22.529386 + -85.781978, + 22.298424 ], [ - -87.157969, - 22.899479 + -85.781276, + 22.301429 ], [ - -87.057861, - 23.344518 + -85.695322, + 22.674135 ], [ - -87.055853, - 23.353139 + -85.593371, + 23.113101 ], [ - -86.855853, - 24.182233 + -85.413961, + 23.834033 ], [ - -86.824536, - 24.277074 + -84.647752, + 25.037937 ], [ - -86.777988, - 24.366501 + -84.580175, + 25.174848 ], [ - -86.039684, - 25.540779 + -84.546767, + 25.319495 ], [ - -85.986863, - 26.085619 + -84.474485, + 26.008813 ], [ - -85.953603, - 26.437944 + -84.447989, + 26.266547 ], [ - -85.908199, - 26.615088 + -84.436985, + 26.291701 ], [ - -85.861036, - 26.72492 + -84.431297, + 26.305102 ], [ - -85.46371, - 27.709667 + -84.146848, + 26.99621 ], [ - -85.39886, - 27.829004 + -83.128683, + 27.368986 ], [ - -85.307628, - 27.93386 + -82.979773, + 27.438288 ], [ - -85.193923, - 28.019788 + -82.849108, + 27.531444 ], [ - -85.06262, - 28.083152 + -82.64844, + 27.705384 ], [ - -83.825769, - 28.539299 + -82.643585, + 27.709618 ], [ - -83.727256, - 28.625098 + -82.058224, + 28.221519 ], [ - -83.344523, - 28.961834 + -81.960679, + 28.323011 ], [ - -83.32229, - 29.454764 + -81.886155, + 28.437263 ], [ - -83.272263, - 30.53007 + -81.837318, + 28.560361 ], [ - -83.253335, - 30.648629 + -81.815969, + 28.688063 ], [ - -83.208392, - 30.761741 + -81.776017, + 29.427353 ], [ - -83.139096, - 30.865246 + -81.726796, + 30.299168 ], [ - -81.786431, - 32.484045 + -80.489897, + 31.763904 ], [ - -80.291108, - 34.511808 + -80.456336, + 31.80622 ], [ - -80.144523, - 34.783603 + -78.905548, + 33.884982 ], [ - -79.600281, - 35.793326 + -78.850951, + 33.968979 ], [ - -79.455143, - 36.08922 + -78.681124, + 34.278244 ], [ - -79.372862, - 36.211547 + -78.680034, + 34.280234 ], [ - -79.122862, - 36.495321 + -78.119364, + 35.301117 ], [ - -79.118262, - 36.500474 + -78.107153, + 35.324315 ], [ - -78.752367, - 36.904511 + -77.992635, + 35.552933 ], [ - -78.486458, - 37.199025 + -77.803532, + 35.765402 ], [ - -78.484901, - 37.200739 + -77.43621, + 36.167297 ], [ - -77.901571, - 37.837868 + -77.433531, + 36.170231 ], [ - -77.876673, - 37.863394 + -77.164954, + 36.464945 ], [ - -77.393333, - 38.329434 + -76.591254, + 37.085905 ], [ - -77.316978, - 38.392278 + -76.163817, + 37.49513 ], [ - -77.142041, - 38.515613 + -76.031595, + 37.587953 ], [ - -76.944906, - 38.66331 + -76.009537, + 37.603927 ], [ - -76.600846, - 39.026522 + -75.758955, + 37.790835 ], [ - -76.503308, - 39.131695 + -75.654889, + 37.882661 ], [ - -76.49731, - 39.138063 + -75.268384, + 38.28711 ], [ - -76.36397, - 39.277402 + -75.261407, + 38.294472 ], [ - -76.357149, - 39.284407 + -75.164106, + 38.398406 ], [ - -76.253686, - 39.388862 + -75.037393, + 38.529636 ], [ - -76.199156, - 39.451278 + -74.924009, + 38.643126 ], [ - -76.194411, - 39.456639 + -74.891665, + 38.67753 ], [ - -76.111081, - 39.549555 + -74.840396, + 38.735609 ], [ - -76.027365, - 39.626808 + -73.88062, + 39.241186 ], [ - -75.926979, - 39.691125 + -73.865287, + 39.249333 ], [ - -74.830577, - 40.270359 + -73.153991, + 39.631774 ], [ - -74.117474, - 40.654189 + -71.847088, + 40.30122 ], [ - -74.105964, - 40.66024 + -71.313518, + 40.476925 ], [ - -72.722634, - 41.368722 + -69.926561, + 40.577223 ], [ - -72.607247, - 41.416577 + -69.706462, + 40.611465 ], [ - -71.857247, - 41.663031 + -69.503107, + 40.682775 ], [ - -71.749709, - 41.690978 + -66.541592, + 42.001943 ], [ - -71.63763, - 41.705961 + -56.145818, + 44.917837 ], [ - -70.249995, - 41.808072 + -51.731722, + 45.801252 ], [ - -67.373069, - 43.087163 + -51.631093, + 45.823282 ], [ - -67.264327, - 43.126332 + -50.096296, + 46.208571 ], [ - -56.730997, - 46.072052 + -50.093188, + 46.209332 ], [ - -56.667531, - 46.087031 + -49.714304, + 46.301881 ], [ - -52.225183, - 46.97108 + -42.740444, + 47.08652 ], [ - -50.698953, - 47.35177 + -39.914147, + 47.279184 ], [ - -50.693671, - 47.353066 + -39.628707, + 47.322726 ], [ - -50.243671, - 47.462112 + -37.688819, + 47.796385 ], [ - -50.118883, - 47.484057 + -29.76642, + 49.299121 ], [ - -42.985553, - 48.281688 + -27.65547, + 49.585398 ], [ - -42.939641, - 48.285781 + -19.953135, + 50.290466 ], [ - -40.16339, - 48.472885 + -19.332349, + 50.301932 ], [ - -38.282053, - 48.927911 + -15.061331, + 50.295463 ], [ - -38.234557, - 48.938136 + -15.019343, + 50.295194 ], [ - -30.201227, - 50.444202 + -14.033475, + 50.296457 ], [ - -30.148882, - 50.452528 + -13.987355, + 50.296921 ], [ - -27.998882, - 50.739784 + -8.564979, + 50.304463 ], [ - -27.95207, - 50.745008 + -8.523582, + 50.304103 ], [ - -20.10207, - 51.448163 + -8.277108, + 50.304468 ], [ - -20.020101, - 51.452502 + -8.273464, + 50.304473 ], [ - -19.353431, - 51.464058 + -8.04695, + 50.304828 ], [ - -19.330236, - 51.464228 + -5.981137, + 50.244418 ], [ - -14.998453, - 51.452676 + -4.109967, + 50.157158 ], [ - -8, - 51.452676 + -2.801869, + 50.07763 ], [ - -7.964794, - 51.452142 + -2.773207, + 50.07554 ], [ - -5.848124, - 51.387777 + -2.472277, + 50.019626 ], [ - -5.828205, - 51.386998 + -1.9627, + 49.922088 ], [ - -3.928205, - 51.296222 + -1.724106, + 49.892755 ], [ - -3.912196, - 51.295344 + -1.47996, + 49.895273 ], [ - -2.578866, - 51.212823 + -1.241353, + 49.929473 ], [ - -2.564899, - 51.211872 + -1.019129, + 49.993753 ], [ - -2.431569, - 51.201969 + -0.507181, + 50.182376 ], [ - -2.311436, - 51.186477 + -0.016134, + 50.206147 ], [ - -1.911436, - 51.112178 + 0.21236, + 50.230852 ], [ - -1.905734, - 51.111102 + 0.428867, + 50.282647 ], [ - -1.690321, - 51.069824 + 0.624634, + 50.359411 ], [ - -1.296084, - 51.213329 + 0.791669, + 50.458023 ], [ - -1.142502, - 51.255085 + 0.923034, + 50.574472 ], [ - -0.959172, - 51.289758 + 1.013127, + 50.704008 ], [ - -0.861021, - 51.301202 + 1.057926, + 50.841319 ], [ - -0.851156, - 51.321531 + 1.055193, + 50.980731 ], [ - -0.784357, - 51.399565 + 1.004628, + 51.116432 ], [ - -0.694462, - 51.467853 + 0.967487, + 51.164994 ], [ - -0.584923, - 51.52382 + 0.950135, + 51.288093 ], [ - -0.459952, - 51.565362 + 0.887702, + 51.415723 ], [ - -0.324351, - 51.590925 + 0.783609, + 51.533267 ], [ - -0.18333, - 51.599553 + 0.641589, + 51.63613 ], [ - -0.042309, - 51.590925 + 0.46696, + 51.720249 ], [ - 0.093292, - 51.565362 + 0.266442, + 51.782263 ], [ - 0.218263, - 51.52382 + 0.047902, + 51.819664 ], [ - 0.327802, - 51.467853 + -0.179976, + 51.830911 ], [ - 0.417697, - 51.399565 + -0.408066, + 51.815508 ], [ - 0.484496, - 51.321531 + -0.627212, + 51.774034 ], [ - 0.52563, - 51.236709 + -0.828642, + 51.708119 ], [ - 0.539519, - 51.14833 + -1.004362, + 51.620379 ], [ - 0.539519, - 51.11472 + -1.147499, + 51.5143 ], [ - 0.587373, - 51.056421 + -1.169319, + 51.489418 ], [ - 0.625906, - 50.97467 + -1.2666, + 51.470919 ], [ - 0.639503, - 50.889679 + -1.517856, + 51.402595 ], [ - 0.627687, - 50.804426 + -1.730443, + 51.325183 ], [ - 0.590872, - 50.721917 + -1.744923, + 51.327985 ], [ - 0.530353, - 50.645075 + -1.748295, + 51.328634 ], [ - 0.448257, - 50.576637 + -2.152679, + 51.405316 ], [ - 0.347472, - 50.51905 + -2.347337, + 51.430892 ], [ - 0.23154, - 50.474382 + -2.482471, + 51.441261 ], [ - 0.104538, - 50.444243 + -2.494988, + 51.442173 ], [ - -0.02907, - 50.429721 + -3.846665, + 51.528929 ], [ - -0.6167, - 50.401534 + -3.849508, + 51.529095 ], [ - -0.643479, - 50.396374 + -5.776165, + 51.625169 ], [ - -1.237246, - 50.176258 + -5.779622, + 51.625312 ], [ - -1.372435, - 50.137267 + -7.92658, + 51.69455 ], [ - -1.517198, - 50.116754 + -7.967629, + 51.695092 ], [ - -1.665443, - 50.115606 + -8.219409, + 51.695469 ], [ - -1.810936, - 50.133874 + -8.449873, + 51.695827 ], [ - -2.324758, - 50.234252 + -13.985361, + 51.703587 ], [ - -2.66289, - 50.298253 + -14.954673, + 51.704823 ], [ - -2.728125, - 50.303194 + -19.329964, + 51.721431 ], [ - -4.046467, - 50.38639 + -19.332181, + 51.721401 ], [ - -5.928504, - 50.478081 + -20.008699, + 51.710302 ], [ - -8.017613, - 50.542864 + -20.081332, + 51.707506 ], [ - -15, - 50.542864 + -28.044927, + 50.994916 ], [ - -15.003094, - 50.542868 + -28.050976, + 50.99417 ], [ - -19.324824, - 50.554621 + -30.230636, + 50.701804 ], [ - -19.938716, - 50.543769 + -30.245952, + 50.699538 ], [ - -27.724388, - 49.832765 + -38.380426, + 49.164102 ], [ - -29.824702, - 49.546779 + -38.391558, + 49.161539 ], [ - -37.808086, - 48.022345 + -40.238558, + 48.712145 ], [ - -39.751277, - 47.543854 + -42.992101, + 48.523681 ], [ - -39.927029, - 47.516545 + -43.00017, + 48.523022 ], [ - -42.770644, - 47.321313 + -50.222824, + 47.707404 ], [ - -49.817269, - 46.518843 + -50.361605, + 47.680834 ], [ - -50.203684, - 46.423553 + -50.814648, + 47.569859 ], [ - -51.751047, - 46.030857 + -52.328129, + 47.188498 ], [ - -51.799139, - 46.019918 + -56.790094, + 46.28908 ], [ - -56.233575, - 45.122002 + -56.802898, + 46.286179 ], [ - -66.679044, - 42.152888 + -67.424607, + 43.277322 ], [ - -69.643601, - 40.814747 + -67.512282, + 43.243716 ], [ - -69.78907, - 40.764061 + -70.345149, + 41.969509 ], [ - -69.94571, - 40.738853 + -71.677673, + 41.86767 ], [ - -71.381331, - 40.631466 + -71.824933, + 41.847028 ], [ - -71.965478, - 40.436557 + -71.965803, + 41.80999 ], [ - -73.288242, - 39.749706 + -72.720606, + 41.558416 ], [ - -73.999196, - 39.361917 + -72.866754, + 41.497148 ], [ - -74.006361, - 39.358048 + -74.25342, + 40.776549 ], [ - -74.997501, - 38.827682 + -74.261429, + 40.772263 ], [ - -75.003196, - 38.82127 + -74.97174, + 40.384314 ], [ - -75.067514, - 38.746984 + -76.066145, + 39.797569 ], [ - -75.092851, - 38.719515 + -76.19261, + 39.714849 ], [ - -75.206065, - 38.604119 + -76.297054, + 39.6167 ], [ - -75.333002, - 38.470214 + -76.379539, + 39.52288 ], [ - -75.430032, - 38.364615 + -76.385222, + 39.51633 ], [ - -75.434995, - 38.359276 + -76.436001, + 39.457031 ], [ - -75.818325, - 37.950712 + -76.535141, + 39.355045 ], [ - -75.899806, - 37.877582 + -76.543244, + 39.346567 ], [ - -76.149806, - 37.688194 + -76.675427, + 39.205795 ], [ - -76.166352, - 37.676029 + -76.682522, + 39.198116 ], [ - -76.308427, - 37.574722 + -76.7782, + 39.092947 ], [ - -76.743762, - 37.150789 + -77.108586, + 38.737629 ], [ - -77.314318, - 36.521953 + -77.290265, + 38.599282 ], [ - -77.580212, - 36.224843 + -77.462115, + 38.476218 ], [ - -77.581738, - 36.223141 + -77.556501, + 38.397341 ], [ - -77.94608, - 35.817275 + -78.03655, + 37.926225 ], [ - -78.14356, - 35.591262 + -78.065556, + 37.895947 ], [ - -78.261517, - 35.349357 + -78.643629, + 37.252648 ], [ - -78.271683, - 35.329535 + -78.644435, + 37.251743 ], [ - -78.821683, - 34.303213 + -78.907359, + 36.95506 ], [ - -78.822595, - 34.301509 + -79.269413, + 36.547817 ], [ - -78.989265, - 33.990615 + -79.274221, + 36.542329 ], [ - -79.034242, - 33.919724 + -79.521876, + 36.255943 ], [ - -80.567572, - 31.825535 + -79.618551, + 36.109128 ], [ - -80.594234, - 31.791304 + -79.75952, + 35.813603 ], [ - -81.836387, - 30.294726 + -80.291932, + 34.800485 ], [ - -81.877723, - 29.40494 + -80.431931, + 34.534396 ], [ - -81.91104, - 28.665052 + -81.901572, + 32.502656 ], [ - -81.92876, - 28.548203 + -83.2387, + 30.874767 ], [ - -81.970791, - 28.436126 + -83.315578, + 30.757756 ], [ - -82.035681, - 28.332709 + -83.364558, + 30.631707 ], [ - -82.121192, - 28.241552 + -83.383999, + 30.5012 ], [ - -82.704532, - 27.72438 + -83.423899, + 29.428365 ], [ - -82.707646, - 27.72163 + -83.424057, + 29.424121 ], [ - -82.907646, - 27.545895 + -83.440565, + 28.954225 ], [ - -83.015111, - 27.468003 + -83.794778, + 28.637807 ], [ - -83.13738, - 27.409726 + -83.871043, + 28.570503 ], [ - -84.21045, - 27.009956 + -85.083487, + 28.116455 ], [ - -84.50295, - 26.281321 + -85.237099, + 28.040902 ], [ - -84.508461, - 26.26801 + -85.369435, + 27.9401 ], [ - -84.521711, - 26.237042 + -85.474439, + 27.818787 ], [ - -84.546397, - 25.975194 + -85.547384, + 27.682618 ], [ - -84.546558, - 25.973515 + -85.936036, + 26.695255 ], [ - -84.613218, - 25.284858 + -85.98223, + 26.585166 ], [ - -84.643317, - 25.14685 + -86.028762, + 26.397912 ], [ - -84.705342, - 25.017717 + -86.05916, + 26.045223 ], [ - -85.467762, - 23.799773 + -86.10682, + 25.505866 ], [ - -85.643112, - 23.071021 + -86.830898, + 24.334597 ], [ - -85.742085, - 22.630146 + -86.880684, + 24.237401 ], [ - -85.825361, - 22.256694 + -86.913395, + 24.135683 ], [ - -85.826669, - 22.250946 + -87.106816, + 23.306278 ], [ - -86.143339, - 20.882938 + -87.10927, + 23.295396 ], [ - -86.186595, - 20.756809 + -87.205828, + 22.850784 ], [ - -86.255345, - 20.640899 + -87.206226, + 22.848942 ], [ - -86.346948, - 20.539691 + -87.286385, + 22.477447 ], [ - -86.457882, - 20.457107 + -87.592585, + 21.113445 ], [ - -86.583885, - 20.396353 + -87.608274, + 20.980224 ], [ - -86.720115, - 20.359792 + -87.594973, + 20.848824 ], [ - -86.861337, - 20.348845 + -87.55328, + 20.724245 ], [ - -87.002122, - 20.363939 + -87.48485, + 20.61121 ], [ - -87.137062, - 20.404486 + -87.392328, + 20.513991 ], [ - -87.26097, - 20.468909 + -87.279241, + 20.436261 ], [ - -87.369085, - 20.554704 + -87.149872, + 20.380956 ], [ - -87.457252, - 20.658541 + -87.009101, + 20.350174 ], [ - -87.522082, - 20.776396 + -86.862234, + 20.345097 ], [ - -87.561084, - 20.903713 + -86.714811, + 20.365945 ], [ - -87.57276, - 21.035582 + -86.572412, + 20.411964 ], [ - -87.556661, - 21.166927 + -86.440454, + 20.481451 ], [ - -87.240659, - 22.529386 + -86.32399, + 20.571804 + ], + [ + -86.227519, + 20.679616 + ], + [ + -86.154809, + 20.800795 + ], + [ + -86.108745, + 20.930714 + ], + [ + -85.781978, + 22.298424 ] ] ] diff --git a/packages/turf-buffer/test/out/issue-#916.geojson b/packages/turf-buffer/test/out/issue-#916.geojson index f22d43dc73..2ddc7b2e01 100644 --- a/packages/turf-buffer/test/out/issue-#916.geojson +++ b/packages/turf-buffer/test/out/issue-#916.geojson @@ -14,254 +14,246 @@ "coordinates": [ [ [ - 123.950002, - -24.846565 + 123.875405, + -24.844229 ], [ - 123.950002, - -23.402765 + 123.891341, + -24.992682 ], [ - 123.964208, - -23.27183 + 123.94066, + -25.134994 ], [ - 124.006266, - -23.145921 + 124.021365, + -25.265077 ], [ - 124.074524, - -23.030006 + 124.130088, + -25.377346 ], [ - 124.166298, - -22.928676 + 124.262223, + -25.466967 ], [ - 124.277982, - -22.845948 + 124.267663, + -25.469912 ], [ - 129.331693, - -19.775896 + 124.209316, + -25.538934 ], [ - 129.454172, - -19.715568 + 124.141104, + -25.662878 ], [ - 129.586612, - -19.678277 + 124.100217, + -25.79622 ], [ - 129.72417, - -19.665401 + 124.088233, + -25.934105 ], [ - 129.861816, - -19.677419 + 124.105687, + -26.071497 ], [ - 133.553223, - -20.338103 + 124.576037, + -28.032811 ], [ - 133.689748, - -20.375859 + 124.622969, + -28.163614 ], [ - 133.815734, - -20.437946 + 124.697238, + -28.284168 ], [ - 133.926297, - -20.521928 + 124.796231, + -28.390091 ], [ - 134.017149, - -20.624515 + 124.916407, + -28.477521 ], [ - 134.084767, - -20.741697 + 125.053417, + -28.54326 ], [ - 134.12653, - -20.8689 + 125.202268, + -28.584896 ], [ - 135.093326, - -25.274332 + 125.357508, + -28.600897 ], [ - 135.107518, - -25.392899 + 130.930612, + -28.60137 ], [ - 135.097627, - -25.511705 + 131.10438, + -28.581682 ], [ - 135.063983, - -25.626797 + 131.269317, + -28.529936 ], [ - 135.007708, - -25.734354 + 131.417837, + -28.44852 ], [ - 134.930675, - -25.830817 + 134.894577, + -25.962349 ], [ - 134.835453, - -25.913002 + 134.998135, + -25.870158 ], [ - 131.363773, - -28.376332 + 135.081308, + -25.762626 ], [ - 131.226717, - -28.452075 + 135.141397, + -25.643322 ], [ - 131.073934, - -28.499068 + 135.176488, + -25.516192 ], [ - 130.913086, - -28.514994 + 135.185504, + -25.385427 ], [ - 125.375977, - -28.514994 + 135.168232, + -25.255327 ], [ - 125.237002, - -28.503144 + 134.177452, + -20.860425 ], [ - 125.103213, - -28.468028 + 134.131991, + -20.722495 ], [ - 124.979601, - -28.410934 + 134.058234, + -20.595761 ], [ - 124.870779, - -28.333959 + 133.959165, + -20.48524 ], [ - 124.780806, - -28.239935 + 133.838745, + -20.395293 ], [ - 124.713041, - -28.132332 + 133.70175, + -20.329466 ], [ - 124.67001, - -28.015129 + 133.553587, + -20.290351 ], [ - 124.186611, - -26.058134 + 129.879656, + -19.635427 ], [ - 124.169961, - -25.935002 + 129.727936, + -19.620971 ], [ - 124.179648, - -25.81114 + 129.576163, + -19.634937 ], [ - 124.21532, - -25.691068 + 129.430243, + -19.67678 ], [ - 124.275677, - -25.579182 + 129.295866, + -19.744873 ], [ - 124.358518, - -25.479587 + 124.255759, + -22.789662 ], [ - 124.388944, - -25.454719 + 124.130346, + -22.878886 ], [ - 124.305117, - -25.409985 + 124.026795, + -22.989412 ], [ - 124.184842, - -25.329507 + 123.949336, + -23.11678 ], [ - 124.085488, - -25.228298 + 123.901175, + -23.255842 ], [ - 124.011312, - -25.110652 + 123.884358, + -23.40096 ], [ - 123.965496, - -24.981571 - ], - [ - 123.950002, - -24.846565 + 123.875405, + -24.844229 ] ], [ [ - 126.163013, - -25.809545 - ], - [ - 126.64513, - -26.050424 + 126.285121, + -25.787652 ], [ - 130.683749, - -25.870666 + 126.345597, + -25.706701 ], [ - 132.202728, - -24.984704 + 126.406888, + -25.572739 ], [ - 131.620171, - -22.705583 + 126.882811, + -24.117699 ], [ - 130.04241, - -22.228929 + 130.052938, + -22.290395 ], [ - 126.824159, - -24.073894 + 131.567079, + -22.750462 ], [ - 126.331568, - -25.552755 + 132.116592, + -24.955276 ], [ - 126.275801, - -25.673646 + 130.65533, + -25.799776 ], [ - 126.194365, - -25.781944 + 126.668644, + -25.976672 ], [ - 126.163013, - -25.809545 + 126.285121, + -25.787652 ] ] ] diff --git a/packages/turf-buffer/test/out/linestring.geojson b/packages/turf-buffer/test/out/linestring.geojson index 4c955d1005..4033fc0d8e 100644 --- a/packages/turf-buffer/test/out/linestring.geojson +++ b/packages/turf-buffer/test/out/linestring.geojson @@ -14,236 +14,240 @@ "coordinates": [ [ [ - 126.05193, - -23.997281 + 127.226349, + -24.892171 ], [ - 126.142934, - -23.897325 + 132.807901, + -21.503389 ], [ - 126.253598, - -23.815538 + 137.052314, + -21.128511 ], [ - 132.14227, - -20.231313 + 141.758663, + -23.243123 ], [ - 132.299657, - -20.158253 + 146.059183, + -28.942782 ], [ - 132.471171, - -20.122951 + 146.284529, + -31.484571 ], [ - 137.129374, - -19.709783 + 146.314018, + -31.623474 ], [ - 137.260227, - -19.709361 + 146.375054, + -31.754947 ], [ - 137.389017, - -19.731153 + 146.465385, + -31.873889 ], [ - 137.511524, - -19.774436 + 146.581588, + -31.975672 ], [ - 142.60918, - -22.072893 + 146.719186, + -32.056327 ], [ - 142.716933, - -22.132275 + 146.872829, + -32.112704 ], [ - 142.811991, - -22.207978 + 147.036503, + -32.142605 ], [ - 142.891495, - -22.297701 + 147.203784, + -32.14487 ], [ - 147.461807, - -28.33191 + 147.3681, + -32.119424 ], [ - 147.522957, - -28.427219 + 147.523008, + -32.067279 ], [ - 147.564628, - -28.530243 + 147.662467, + -31.99049 ], [ - 147.585587, - -28.637915 + 147.781076, + -31.892066 ], [ - 147.849259, - -31.377427 + 147.874293, + -31.775847 ], [ - 147.847128, - -31.498315 + 147.938604, + -31.646348 ], [ - 147.817397, - -31.616375 + 147.971649, + -31.508575 ], [ - 147.761208, - -31.727088 + 147.972291, + -31.367831 ], [ - 147.680719, - -31.826232 + 147.687031, + -28.633746 ], [ - 147.579025, - -31.910039 + 147.661042, + -28.505728 ], [ - 147.460033, - -31.975333 + 147.609177, + -28.383807 ], [ - 147.328316, - -32.019648 + 147.533197, + -28.271939 ], [ - 147.188936, - -32.04131 + 142.950497, + -22.279041 ], [ - 147.047248, - -32.039505 + 142.85936, + -22.17374 ], [ - 146.908699, - -32.014299 + 142.74868, + -22.08594 ], [ - 146.778613, - -31.966642 + 142.622311, + -22.018678 ], [ - 146.661987, - -31.898334 + 137.544829, + -19.739994 ], [ - 146.563306, - -31.811957 + 137.407135, + -19.689593 ], [ - 146.48636, - -31.710784 + 137.261756, + -19.664902 ], [ - 146.434107, - -31.598663 + 137.114013, + -19.666826 ], [ - 146.408554, - -31.479872 + 132.479053, + -20.07577 ], [ - 146.160752, - -28.910073 + 132.34631, + -20.096444 ], [ - 141.80715, - -23.1972 + 132.219383, + -20.138457 ], [ - 137.064507, - -21.076581 + 132.10211, + -20.200542 ], [ - 132.785746, - -21.452754 + 126.23078, + -23.754181 ], [ - 127.167872, - -24.844392 + 126.092931, + -23.85318 ], [ - 121.711742, - -31.923271 + 125.982217, + -23.977427 ], [ - 121.621151, - -32.015709 + 120.427656, + -31.160441 ], [ - 121.511043, - -32.091308 + 120.343641, + -31.28218 ], [ - 121.38565, - -32.147208 + 120.288894, + -31.415325 ], [ - 121.249789, - -32.181298 + 120.265614, + -31.554804 ], [ - 121.108683, - -32.192293 + 120.274822, + -31.695288 ], [ - 120.967753, - -32.17978 + 120.316305, + -31.831386 ], [ - 120.832416, - -32.144228 + 120.3886, + -31.957853 ], [ - 120.707873, - -32.086979 + 120.489029, + -32.069793 ], [ - 120.598909, - -32.010195 + 120.613789, + -32.162853 ], [ - 120.509712, - -31.916781 + 120.758086, + -32.233398 ], [ - 120.44371, - -31.810283 + 120.916321, + -32.27866 ], [ - 120.403439, - -31.694757 + 121.08231, + -32.296851 ], [ - 120.390447, - -31.574618 + 121.249539, + -32.287245 ], [ - 120.405233, - -31.454474 + 121.41144, + -32.250203 ], [ - 120.447229, - -31.338953 + 121.561658, + -32.187167 ], [ - 120.514821, - -31.23252 + 121.694322, + -32.100596 ], [ - 126.05193, - -23.997281 + 121.804284, + -31.99387 + ], + [ + 127.226349, + -24.892171 ] ] ] diff --git a/packages/turf-buffer/test/out/multi-linestring.geojson b/packages/turf-buffer/test/out/multi-linestring.geojson index 0589f10ec4..f95f386415 100644 --- a/packages/turf-buffer/test/out/multi-linestring.geojson +++ b/packages/turf-buffer/test/out/multi-linestring.geojson @@ -15,752 +15,752 @@ [ [ [ - 145.301141, - -25.357707 + 143.765247, + -25.247522 ], [ - 145.29792, - -25.480286 + 141.455867, + -29.009434 ], [ - 145.269379, - -25.600037 + 139.223197, + -30.779591 ], [ - 145.216526, - -25.712753 + 139.112219, + -30.884052 ], [ - 142.755588, - -29.756686 + 139.026975, + -31.005126 ], [ - 142.69051, - -29.843523 + 138.970807, + -31.138204 ], [ - 142.609851, - -29.91982 + 138.945979, + -31.2782 ], [ - 140.280749, - -31.768449 + 138.953577, + -31.419744 ], [ - 140.167773, - -31.84114 + 138.993441, + -31.557387 ], [ - 140.04028, - -31.893667 + 139.064158, + -31.685808 ], [ - 139.903171, - -31.924048 + 139.163095, + -31.800026 ], [ - 139.761714, - -31.931137 + 139.286483, + -31.895597 ], [ - 139.621346, - -31.914667 + 139.429562, + -31.968794 ], [ - 139.48746, - -31.875259 + 139.586763, + -32.01676 ], [ - 139.365202, - -31.814399 + 139.751931, + -32.03762 ], [ - 139.259271, - -31.734386 + 139.918584, + -32.030564 ], [ - 139.173737, - -31.63825 + 140.080179, + -31.995877 ], [ - 139.111887, - -31.529642 + 140.230388, + -31.934924 ], [ - 139.076098, - -31.412702 + 140.363359, + -31.850095 ], [ - 139.067745, - -31.2919 + 142.692394, + -29.983562 ], [ - 139.08715, - -31.171874 + 142.78003, + -29.899073 ], [ - 139.133566, - -31.05725 + 142.851031, + -29.803639 ], [ - 139.20521, - -30.95246 + 145.290397, + -25.738352 ], [ - 139.299329, - -30.861571 + 145.346879, + -25.614211 ], [ - 141.539872, - -29.067124 + 145.376617, + -25.482823 ], [ - 143.844296, - -25.260575 + 145.378666, + -25.348758 ], [ - 143.639288, - -22.600035 + 145.141683, + -22.501706 ], [ - 143.643237, - -22.469202 + 145.115809, + -22.362762 ], [ - 143.674744, - -22.341475 + 145.061067, + -22.231178 ], [ - 143.732598, - -22.221779 + 144.97962, + -22.111971 ], [ - 143.814577, - -22.114741 + 144.874623, + -22.009679 ], [ - 143.917529, - -22.024507 + 144.750104, + -21.928187 ], [ - 144.037499, - -21.95458 + 144.610804, + -21.870588 ], [ - 144.169876, - -21.907681 + 144.462005, + -21.839073 ], [ - 144.309572, - -21.885633 + 144.309339, + -21.834843 ], [ - 144.451221, - -21.889297 + 144.158581, + -21.85807 ], [ - 144.589377, - -21.91853 + 144.015443, + -21.907886 ], [ - 144.718732, - -21.972192 + 143.885363, + -21.982415 ], [ - 144.834314, - -22.048196 + 143.773312, + -22.078836 ], [ - 144.931682, - -22.143587 + 143.6836, + -22.193489 ], [ - 145.007095, - -22.254664 + 143.619714, + -22.322006 ], [ - 145.057653, - -22.377126 + 143.584178, + -22.459476 ], [ - 145.081415, - -22.506244 + 143.578446, + -22.600625 ], [ - 145.301141, - -25.357707 + 143.765247, + -25.247522 ] ] ], [ [ [ - 125.556256, - -19.88403 + 125.502014, + -19.90512 ], [ - 124.927262, - -18.866106 + 122.192112, + -21.370305 ], [ - 124.868243, - -18.744155 + 122.060835, + -21.441358 ], [ - 124.835492, - -18.613551 + 121.946965, + -21.534722 ], [ - 124.830266, - -18.479298 + 121.854855, + -21.646848 ], [ - 124.852766, - -18.346555 + 121.788055, + -21.773475 ], [ - 124.902129, - -18.220433 + 121.749175, + -21.909778 ], [ - 124.976456, - -18.1058 + 121.739782, + -22.050551 ], [ - 125.072892, - -18.007086 + 121.760327, + -22.190403 ], [ - 125.18773, - -17.928117 + 121.810111, + -22.323958 ], [ - 125.316558, - -17.871955 + 121.887304, + -22.446067 ], [ - 125.454424, - -17.840781 + 121.988998, + -22.552003 ], [ - 125.596031, - -17.835807 + 122.111311, + -22.637652 ], [ - 125.735937, - -17.857225 + 122.24953, + -22.699676 ], [ - 125.868764, - -17.904203 + 122.398296, + -22.735648 ], [ - 125.989409, - -17.974916 + 122.551816, + -22.744152 ], [ - 126.093236, - -18.066621 + 122.704097, + -22.724846 ], [ - 126.176253, - -18.175764 + 122.849193, + -22.678472 ], [ - 126.857986, - -19.283334 + 126.263495, + -21.16592 ], [ - 128.661534, - -18.447426 + 127.17094, + -22.640504 ], [ - 128.828034, - -18.392739 + 126.80862, + -22.768147 ], [ - 134.365144, - -17.263215 + 126.616183, + -22.865783 ], [ - 134.512158, - -17.247905 + 121.577431, + -26.153688 ], [ - 134.659358, - -17.261488 + 121.456519, + -26.244682 ], [ - 134.800583, - -17.303389 + 121.357587, + -26.354855 ], [ - 134.929921, - -17.371837 + 121.284446, + -26.480023 ], [ - 137.830312, - -19.29063 + 121.239957, + -26.615424 ], [ - 137.930076, - -19.369755 + 121.225915, + -26.75589 ], [ - 138.013162, - -19.464447 + 121.242965, + -26.896046 ], [ - 138.07687, - -19.571603 + 121.290567, + -27.030506 ], [ - 138.119129, - -19.687719 + 121.36699, + -27.154087 ], [ - 138.543001, - -21.310303 + 121.469374, + -27.262003 ], [ - 139.066197, - -21.355789 + 121.593818, + -27.350061 ], [ - 139.241185, - -21.391773 + 121.735529, + -27.414825 ], [ - 141.218724, - -22.044981 + 121.889006, + -27.453757 ], [ - 141.346943, - -22.100889 + 122.048263, + -27.465324 ], [ - 141.460928, - -22.178867 + 122.207068, + -27.449061 ], [ - 141.5563, - -22.275884 + 122.359201, + -27.405593 ], [ - 141.629392, - -22.388176 + 122.498716, + -27.336609 ], [ - 141.677397, - -22.511397 + 127.478058, + -24.080986 ], [ - 141.698469, - -22.640786 + 127.967029, + -23.908079 ], [ - 141.691798, - -22.771362 + 129.954409, + -26.960908 ], [ - 141.657642, - -22.898109 + 130.055211, + -27.081025 ], [ - 141.597311, - -23.016173 + 130.18189, + -27.179931 ], [ - 141.513126, - -23.121043 + 130.328983, + -27.253314 ], [ - 141.408321, - -23.208725 + 130.4901, + -27.297964 ], [ - 141.286924, - -23.275886 + 133.148933, + -27.74605 ], [ - 141.1536, - -23.319976 + 133.002807, + -27.879978 ], [ - 141.013472, - -23.339326 + 132.903061, + -27.99112 ], [ - 140.871926, - -23.333201 + 132.829583, + -28.117282 ], [ - 140.734401, - -23.301834 + 132.785262, + -28.253657 ], [ - 138.911118, - -22.70511 + 132.771901, + -28.39503 ], [ - 139.129871, - -23.527351 + 132.79013, + -28.535977 ], [ - 139.149923, - -23.656481 + 132.839368, + -28.671072 ], [ - 139.141977, - -23.78658 + 132.91782, + -28.795093 ], [ - 139.106341, - -23.912607 + 133.022538, + -28.903232 ], [ - 139.044396, - -24.029695 + 133.149518, + -28.991281 ], [ - 138.958544, - -24.133333 + 133.293855, + -29.055808 ], [ - 134.12456, - -28.81254 + 133.44993, + -29.09429 ], [ - 134.018637, - -28.894983 + 133.611639, + -29.105222 ], [ - 133.896385, - -28.957698 + 133.772646, + -29.088175 ], [ - 133.762504, - -28.998313 + 133.926645, + -29.043819 ], [ - 133.622137, - -29.015294 + 134.067618, + -28.973888 ], [ - 133.480679, - -29.008 + 134.190086, + -28.881114 ], [ - 133.343567, - -28.976706 + 139.019037, + -24.165142 ], [ - 133.216069, - -28.922594 + 139.109606, + -24.051239 ], [ - 133.103085, - -28.84771 + 139.174139, + -23.923485 ], [ - 133.008958, - -28.75489 + 139.21026, + -23.786749 ], [ - 132.937303, - -28.647659 + 139.216691, + -23.646227 ], [ - 132.890875, - -28.5301 + 139.193285, + -23.507239 ], [ - 132.871458, - -28.406707 + 138.995251, + -22.792643 ], [ - 132.879799, - -28.282209 + 140.716896, + -23.356558 ], [ - 132.915576, - -28.161396 + 140.867055, + -23.389837 ], [ - 132.977416, - -28.048932 + 141.021476, + -23.395481 ], [ - 133.06294, - -27.949173 + 141.174128, + -23.373279 ], [ - 133.338181, - -27.685822 + 141.319053, + -23.324106 ], [ - 130.517791, - -27.22235 + 141.450615, + -23.249887 ], [ - 130.369194, - -27.182825 + 141.563723, + -23.153521 ], [ - 130.233499, - -27.115984 + 141.654034, + -23.038757 ], [ - 130.116952, - -27.024859 + 141.718118, + -22.910045 ], [ - 130.024918, - -26.913592 + 141.753583, + -22.772361 ], [ - 128.023283, - -23.811267 + 141.759155, + -22.631008 ], [ - 127.442086, - -24.026415 + 141.734716, + -22.491412 ], [ - 122.459168, - -27.267825 + 141.681289, + -22.358915 ], [ - 122.336691, - -27.331155 + 141.600993, + -22.238574 ], [ - 122.202663, - -27.372016 + 141.496944, + -22.134969 ], [ - 122.062236, - -27.388863 + 141.373138, + -22.052037 ], [ - 121.920805, - -27.38106 + 141.234294, + -21.992927 ], [ - 121.783807, - -27.348901 + 139.265957, + -21.345329 ], [ - 121.656505, - -27.293603 + 139.054544, + -21.303639 ], [ - 121.543792, - -27.217256 + 138.583103, + -21.272225 ], [ - 121.45, - -27.122757 + 138.163496, + -19.678052 ], [ - 121.378732, - -27.013695 + 138.117593, + -19.552441 ], [ - 121.332728, - -26.894227 + 138.048151, + -19.436893 ], [ - 121.313755, - -26.768918 + 137.957549, + -19.335285 ], [ - 121.322543, - -26.642575 + 137.848858, + -19.251019 ], [ - 121.358754, - -26.520057 + 134.954893, + -17.346373 ], [ - 121.420996, - -26.406094 + 134.815526, + -17.271828 ], [ - 121.506877, - -26.305097 + 134.662973, + -17.226852 ], [ - 121.613098, - -26.220986 + 134.503967, + -17.213425 ], [ - 126.666809, - -22.90425 + 134.345515, + -17.232141 ], [ - 126.818523, - -22.826976 + 128.832464, + -18.352277 ], [ - 127.287721, - -22.651739 + 128.627235, + -18.419963 ], [ - 126.286219, - -21.057189 + 126.876904, + -19.26387 ], [ - 122.837489, - -22.625048 + 126.212817, + -18.166685 ], [ - 122.704734, - -22.670784 + 126.126524, + -18.050956 ], [ - 122.564862, - -22.691733 + 126.01833, + -17.9533 ], [ - 122.423247, - -22.687103 + 125.892397, + -17.87743 ], [ - 122.285333, - -22.657069 + 125.753538, + -17.826222 ], [ - 122.156419, - -22.602768 + 125.607039, + -17.80161 ], [ - 122.041459, - -22.526261 + 125.458459, + -17.80452 ], [ - 121.944871, - -22.430454 + 125.313432, + -17.834834 ], [ - 121.870367, - -22.318992 + 125.177458, + -17.891395 ], [ - 121.82081, - -22.196129 + 125.055704, + -17.972054 ], [ - 121.798105, - -22.066562 + 124.952812, + -18.073747 ], [ - 121.803123, - -21.93526 + 124.87273, + -18.192606 ], [ - 121.835673, - -21.807273 + 124.818558, + -18.324104 ], [ - 121.894503, - -21.687534 + 124.792428, + -18.463222 ], [ - 121.977352, - -21.580672 + 124.795415, + -18.604637 ], [ - 122.081037, - -21.490827 + 124.827482, + -18.74292 ], [ - 122.201573, - -21.421486 + 124.887474, + -18.87275 ], [ - 125.556256, - -19.88403 + 125.502014, + -19.90512 ] ], [ [ - 134.48524, - -26.581507 + 136.954631, + -21.152367 ], [ - 137.63329, - -23.496485 + 132.496579, + -20.73428 ], [ - 137.383447, - -22.556763 + 132.362814, + -20.730613 ], [ - 132.515356, - -22.136531 + 132.23036, + -20.748474 ], [ - 129.377092, - -23.308732 + 132.103129, + -20.787336 ], [ - 131.106976, - -26.005436 + 128.645339, + -22.109076 ], [ - 134.340607, - -26.542388 + 127.648016, + -20.518553 ], [ - 134.476742, - -26.577573 + 129.236219, + -19.751878 ], [ - 134.48524, - -26.581507 - ] - ], - [ - [ - 128.641531, - -22.144865 + 134.35467, + -18.715641 ], [ - 132.135906, - -20.828168 + 136.73669, + -20.288885 ], [ - 132.302169, - -20.785937 + 136.954631, + -21.152367 + ] + ], + [ + [ + 129.453043, + -23.369464 ], [ - 132.474401, - -20.781686 + 132.52325, + -22.194093 ], [ - 137.019872, - -21.177804 + 137.336301, + -22.633313 ], [ - 136.779731, - -20.259843 + 137.560925, + -23.486259 ], [ - 134.360952, - -18.670445 + 134.487344, + -26.497859 ], [ - 129.217739, - -19.711298 + 134.34539, + -26.46318 ], [ - 127.587949, - -20.461003 + 131.154832, + -25.940326 ], [ - 128.641531, - -22.144865 + 129.453043, + -23.369464 ] ] ] diff --git a/packages/turf-buffer/test/out/multi-point.geojson b/packages/turf-buffer/test/out/multi-point.geojson index 0230196ea9..46d82df6ea 100644 --- a/packages/turf-buffer/test/out/multi-point.geojson +++ b/packages/turf-buffer/test/out/multi-point.geojson @@ -16,360 +16,360 @@ [ [ [ - 149.337095, - -25 + 149.764522, + -24.629618 ], [ - 149.253759, - -25.764439 + 149.578309, + -23.803061 ], [ - 149.006953, - -26.49489 + 149.222946, + -23.023748 ], [ - 148.606163, - -27.163995 + 148.713858, + -22.320174 ], [ - 148.066789, - -27.747195 + 148.07114, + -21.717826 ], [ - 147.409561, - -28.223496 + 147.318813, + -21.238427 ], [ - 146.659734, - -28.57605 + 146.484075, + -20.899278 ], [ - 145.846125, - -28.792567 + 145.596519, + -20.712722 ], [ - 145, - -28.865575 + 144.687337, + -20.685733 ], [ - 144.153875, - -28.792567 + 143.788463, + -20.819653 ], [ - 143.340266, - -28.57605 + 142.931705, + -21.110094 ], [ - 142.590439, - -28.223496 + 142.147839, + -21.547016 ], [ - 141.933211, - -27.747195 + 141.465706, + -22.114982 ], [ - 141.393837, - -27.163995 + 140.911305, + -22.79359 ], [ - 140.993047, - -26.49489 + 140.506894, + -23.55808 ], [ - 140.746241, - -25.764439 + 140.2701, + -24.380099 ], [ - 140.662905, - -25 + 140.213044, + -25.228623 ], [ - 140.746241, - -24.230775 + 140.341509, + -26.071029 ], [ - 140.993047, - -23.4867 + 140.654203, + -26.874291 ], [ - 141.393837, - -22.797215 + 141.1422, + -27.606306 ], [ - 141.933211, - -22.189991 + 141.788699, + -28.237278 ], [ - 142.590439, - -21.689682 + 142.569213, + -28.741126 ], [ - 143.340266, - -21.316789 + 143.452331, + -29.096798 ], [ - 144.153875, - -21.086689 + 144.401088, + -29.2894 ], [ - 145, - -21.008913 + 145.374895, + -29.311015 ], [ - 145.846125, - -21.086689 + 146.331865, + -29.161121 ], [ - 146.659734, - -21.316789 + 147.231271, + -28.846565 ], [ - 147.409561, - -21.689682 + 148.035849, + -28.381095 ], [ - 148.066789, - -22.189991 + 148.713687, + -27.784518 ], [ - 148.606163, - -22.797215 + 149.239553, + -27.081587 ], [ - 149.006953, - -23.4867 + 149.595606, + -26.300739 ], [ - 149.253759, - -24.230775 + 149.771577, + -25.472781 ], [ - 149.337095, - -25 + 149.764522, + -24.629618 ] ] ], [ [ [ - 125.84147, - -21.086261 + 125.439104, + -20.704873 ], [ - 125.746241, - -20.793068 + 125.312663, + -20.685733 ], [ - 125.662905, - -20 + 124.403481, + -20.712722 ], [ - 125.746241, - -19.202917 + 123.515925, + -20.899278 ], [ - 125.993047, - -18.432803 + 122.681187, + -21.238427 ], [ - 126.393837, - -17.719991 + 121.92886, + -21.717826 ], [ - 126.933211, - -17.092863 + 121.286142, + -22.320174 ], [ - 127.590439, - -16.576607 + 120.777054, + -23.023748 ], [ - 128.340266, - -16.192093 + 120.421691, + -23.803061 ], [ - 129.153875, - -15.954936 + 120.235478, + -24.629618 ], [ - 130, - -15.874794 + 120.228423, + -25.472781 ], [ - 130.846125, - -15.954936 + 120.404394, + -26.300739 ], [ - 131.659734, - -16.192093 + 120.760447, + -27.081587 ], [ - 132.409561, - -16.576607 + 121.286313, + -27.784518 ], [ - 133.066789, - -17.092863 + 121.964151, + -28.381095 ], [ - 133.606163, - -17.719991 + 122.768729, + -28.846565 ], [ - 134.006953, - -18.432803 + 123.668135, + -29.161121 ], [ - 134.253759, - -19.202917 + 124.625105, + -29.311015 ], [ - 134.337095, - -20 + 125.598912, + -29.2894 ], [ - 134.253759, - -20.793068 + 126.547669, + -29.096798 ], [ - 134.006953, - -21.551749 + 127.430787, + -28.741126 ], [ - 133.606163, - -22.247462 + 128.211301, + -28.237278 ], [ - 133.066789, - -22.854434 + 128.8578, + -27.606306 ], [ - 132.409561, - -23.35055 + 129.345797, + -26.874291 ], [ - 131.659734, - -23.718002 + 129.658491, + -26.071029 ], [ - 130.846125, - -23.943766 + 129.786956, + -25.228623 ], [ - 130, - -24.019908 + 129.7299, + -24.380099 ], [ - 129.15853, - -23.944185 + 129.712115, + -24.318635 ], [ - 129.253759, - -24.230775 + 129.8424, + -24.334624 ], [ - 129.337095, - -25 + 130.774232, + -24.278531 ], [ - 129.253759, - -25.764439 + 131.673708, + -24.052706 ], [ - 129.006953, - -26.49489 + 132.503141, + -23.66657 ], [ - 128.606163, - -27.163995 + 133.228575, + -23.136255 ], [ - 128.066789, - -27.747195 + 133.821432, + -22.483729 ], [ - 127.409561, - -28.223496 + 134.259647, + -21.735667 ], [ - 126.659734, - -28.57605 + 134.528303, + -20.922151 ], [ - 125.846125, - -28.792567 + 134.619783, + -20.075319 ], [ - 125, - -28.865575 + 134.533568, + -19.228031 ], [ - 124.153875, - -28.792567 + 134.275772, + -18.412598 ], [ - 123.340266, - -28.57605 + 133.858523, + -17.659632 ], [ - 122.590439, - -28.223496 + 133.299238, + -16.997 ], [ - 121.933211, - -27.747195 + 132.619849, + -16.448926 ], [ - 121.393837, - -27.163995 + 131.845979, + -16.035227 ], [ - 120.993047, - -26.49489 + 131.006073, + -15.770703 ], [ - 120.746241, - -25.764439 + 130.130501, + -15.664696 ], [ - 120.662905, - -25 + 129.250623, + -15.720821 ], [ - 120.746241, - -24.230775 + 128.397853, + -15.936881 ], [ - 120.993047, - -23.4867 + 127.602719, + -16.304965 ], [ - 121.393837, - -22.797215 + 126.893971, + -16.811717 ], [ - 121.933211, - -22.189991 + 126.297714, + -17.438771 ], [ - 122.590439, - -21.689682 + 125.836608, + -18.163328 ], [ - 123.340266, - -21.316789 + 125.529103, + -18.958859 ], [ - 124.153875, - -21.086689 + 125.388714, + -19.795937 ], [ - 125, - -21.008913 + 125.423341, + -20.643174 ], [ - 125.84147, - -21.086261 + 125.439104, + -20.704873 ] ] ] diff --git a/packages/turf-buffer/test/out/multi-polygon.geojson b/packages/turf-buffer/test/out/multi-polygon.geojson index b32f331bd9..c887c37da1 100644 --- a/packages/turf-buffer/test/out/multi-polygon.geojson +++ b/packages/turf-buffer/test/out/multi-polygon.geojson @@ -15,462 +15,462 @@ [ [ [ - 121.269338, - -31.466154 + 121.145783, + -31.459451 ], [ - 121.269338, - -18.729502 + 121.158, + -31.59619 ], [ - 121.283228, - -18.595896 + 121.200606, + -31.728292 ], [ - 121.324362, - -18.467326 + 121.272169, + -31.85094 ], [ - 121.39116, - -18.348749 + 121.370175, + -31.959641 ], [ - 121.481056, - -18.244749 + 121.49111, + -32.050399 ], [ - 121.590594, - -18.159352 + 121.630575, + -32.119864 ], [ - 121.715565, - -18.095869 + 121.783451, + -32.165459 ], [ - 121.851167, - -18.056765 + 121.944091, + -32.185488 ], [ - 121.992188, - -18.043559 + 133.939982, + -32.210194 ], [ - 125.859556, - -18.043559 + 133.941629, + -32.22902 ], [ - 124.759183, - -16.323397 + 133.988695, + -32.369621 ], [ - 124.697453, - -16.20081 + 134.068305, + -32.499331 ], [ - 124.661848, - -16.068926 + 134.177301, + -32.612811 ], [ - 124.653736, - -15.932811 + 134.311271, + -32.705374 ], [ - 124.673431, - -15.797702 + 134.464719, + -32.773187 ], [ - 124.720174, - -15.668809 + 134.631298, + -32.813436 ], [ - 124.792166, - -15.551111 + 142.910492, + -33.81678 ], [ - 124.886634, - -15.449164 + 143.071981, + -33.81892 ], [ - 124.999942, - -15.366919 + 143.230831, + -33.795999 ], [ - 125.127728, - -15.307567 + 143.381422, + -33.74884 ], [ - 131.0164, - -13.220764 + 143.518445, + -33.679116 ], [ - 131.078748, - -13.201633 + 143.637106, + -33.589293 ], [ - 136.527967, - -11.785818 + 143.733294, + -33.482533 ], [ - 136.683314, - -11.762648 + 143.803722, + -33.362582 ], [ - 136.840106, - -11.772891 + 143.846037, + -33.233628 ], [ - 136.990932, - -11.816059 + 143.858889, + -33.100157 ], [ - 137.128664, - -11.890096 + 143.927413, + -16.857256 ], [ - 143.588625, - -16.279179 + 143.915429, + -16.713701 ], [ - 143.694908, - -16.366517 + 143.873826, + -16.575526 ], [ - 143.781667, - -16.471819 + 143.804329, + -16.448238 ], [ - 143.84565, - -16.591111 + 143.709757, + -16.336898 ], [ - 143.88446, - -16.719903 + 143.593901, + -16.245927 ], [ - 143.896643, - -16.853354 + 137.148517, + -11.883675 ], [ - 143.720862, - -33.106653 + 137.035, + -11.816879 ], [ - 143.706611, - -33.220454 + 136.911099, + -11.771276 ], [ - 143.667023, - -33.329835 + 136.78082, + -11.748339 ], [ - 143.603513, - -33.430908 + 136.648372, + -11.748811 ], [ - 143.518354, - -33.520092 + 136.518031, + -11.77268 ], [ - 143.414588, - -33.59424 + 131.086813, + -13.178115 ], [ - 143.295928, - -33.650741 + 130.998133, + -13.205339 ], [ - 143.166617, - -33.68761 + 125.12985, + -15.27805 ], [ - 143.031277, - -33.703556 + 124.995767, + -15.337194 ], [ - 142.894749, - -33.69802 + 124.876405, + -15.420651 ], [ - 134.676976, - -32.705221 + 124.7764, + -15.52519 ], [ - 134.532238, - -32.674529 + 124.699661, + -15.646763 ], [ - 134.398075, - -32.619446 + 124.649213, + -15.780653 ], [ - 134.280209, - -32.542279 + 124.627077, + -15.921654 ], [ - 134.183665, - -32.446265 + 124.634186, + -16.064272 ], [ - 134.11256, - -32.335447 + 124.670333, + -16.202932 ], [ - 134.069925, - -32.214505 + 124.734174, + -16.332199 ], [ - 134.057578, - -32.088566 + 125.861079, + -18.112439 ], [ - 134.05777, - -32.080669 + 122.018938, + -18.009867 ], [ - 121.992188, - -32.080669 + 121.865865, + -18.018561 ], [ - 121.851167, - -32.0689 + 121.717901, + -18.056127 ], [ - 121.715565, - -32.034036 + 121.581009, + -18.121045 ], [ - 121.590594, - -31.977391 + 121.460716, + -18.210692 ], [ - 121.481056, - -31.901105 + 121.361898, + -18.321447 ], [ - 121.39116, - -31.808064 + 121.288591, + -18.448835 ], [ - 121.324362, - -31.701801 + 121.243821, + -18.587699 ], [ - 121.283228, - -31.58636 + 121.229479, + -18.732406 ], [ - 121.269338, - -31.466154 + 121.145783, + -31.459451 ] ], [ [ - 133.431886, - -18.043559 + 133.491932, + -18.039639 ], [ - 134.428711, - -18.043559 + 135.710963, + -15.613575 ], [ - 134.569732, - -18.056765 + 138.632672, + -18.671504 ], [ - 134.705333, - -18.095869 + 135.2085, + -23.081941 ], [ - 134.830304, - -18.159352 + 135.19159, + -18.728533 ], [ - 134.939842, - -18.244749 + 135.175759, + -18.583655 ], [ - 135.029738, - -18.348749 + 135.129733, + -18.444753 ], [ - 135.096536, - -18.467326 + 135.055446, + -18.317429 ], [ - 135.137671, - -18.595896 + 134.95595, + -18.206808 ], [ - 135.15156, - -18.729502 + 134.83529, + -18.117333 ], [ - 135.15156, - -23.229524 + 134.698333, + -18.052588 ], [ - 138.683546, - -18.656552 + 134.55058, + -18.015167 ], [ - 135.714057, - -15.563831 + 134.397948, + -18.006568 ], [ - 133.431886, - -18.043559 + 133.491932, + -18.039639 ] ] ], [ [ [ - 128.388479, - -36.279707 + 128.220025, + -36.279319 ], [ - 128.388479, - -34.234512 + 128.235287, + -36.419139 ], [ - 128.402368, - -34.117844 + 128.283727, + -36.553792 ], [ - 128.443503, - -34.005507 + 128.363658, + -36.678175 ], [ - 128.510301, - -33.901845 + 128.472165, + -36.787548 ], [ - 128.600197, - -33.81088 + 128.6052, + -36.877732 ], [ - 128.709735, - -33.736155 + 128.757722, + -36.945264 ], [ - 128.834706, - -33.680587 + 128.923895, + -36.987546 ], [ - 128.970307, - -33.646351 + 129.097319, + -37.002944 ], [ - 129.111328, - -33.634788 + 131.889478, + -37.003302 ], [ - 131.879883, - -33.634788 + 132.063412, + -36.98787 ], [ - 132.020904, - -33.646351 + 132.230217, + -36.945405 ], [ - 132.156505, - -33.680587 + 132.383433, + -36.877551 ], [ - 132.281476, - -33.736155 + 132.517164, + -36.78693 ], [ - 132.391014, - -33.81088 + 132.626313, + -36.677036 ], [ - 132.48091, - -33.901845 + 132.70678, + -36.552091 ], [ - 132.547708, - -34.005507 + 132.755614, + -36.416881 ], [ - 132.588843, - -34.117844 + 132.771101, + -36.276561 ], [ - 132.602732, - -34.234512 + 132.750862, + -34.23139 ], [ - 132.602732, - -36.279707 + 132.732564, + -34.089398 ], [ - 132.588843, - -36.393307 + 132.681218, + -33.953141 ], [ - 132.547708, - -36.502384 + 132.59895, + -33.827894 ], [ - 132.48091, - -36.602775 + 132.489042, + -33.718486 ], [ - 132.391014, - -36.690661 + 132.355801, + -33.629121 ], [ - 132.281476, - -36.762712 + 132.204381, + -33.563223 ], [ - 132.156505, - -36.816207 + 132.040592, + -33.523314 ], [ - 132.020904, - -36.84913 + 131.870685, + -33.510915 ], [ - 131.879883, - -36.860244 + 129.123583, + -33.511267 ], [ - 129.111328, - -36.860244 + 128.95313, + -33.523778 ], [ - 128.970307, - -36.84913 + 128.78874, + -33.563938 ], [ - 128.834706, - -36.816207 + 128.636721, + -33.6302 ], [ - 128.709735, - -36.762712 + 128.502937, + -33.720014 ], [ - 128.600197, - -36.690661 + 128.392587, + -33.829915 ], [ - 128.510301, - -36.602775 + 128.310014, + -33.955658 ], [ - 128.443503, - -36.502384 + 128.25853, + -34.092366 ], [ - 128.402368, - -36.393307 + 128.240274, + -34.234724 ], [ - 128.388479, - -36.279707 + 128.220025, + -36.279319 ] ] ] diff --git a/packages/turf-buffer/test/out/negative-buffer.geojson b/packages/turf-buffer/test/out/negative-buffer.geojson index 856a55d267..bf8bc7453c 100644 --- a/packages/turf-buffer/test/out/negative-buffer.geojson +++ b/packages/turf-buffer/test/out/negative-buffer.geojson @@ -16,36 +16,36 @@ "coordinates": [ [ [ - 134.465993, - -17.644107 + 134.489191, + -17.811384 ], [ - 141.570425, - -19.321421 + 130.181752, + -20.673464 ], [ - 142.06181, - -26.173775 + 131.393542, + -25.655566 ], [ - 141.502481, - -28.273604 + 135.201218, + -27.922057 ], [ - 135.065683, - -28.273604 + 141.183829, + -27.956599 ], [ - 131.100397, - -25.837527 + 141.724503, + -26.12273 ], [ - 129.949198, - -20.57624 + 141.388146, + -19.483057 ], [ - 134.465993, - -17.644107 + 134.489191, + -17.811384 ] ] ] diff --git a/packages/turf-buffer/test/out/north-latitude-points.geojson b/packages/turf-buffer/test/out/north-latitude-points.geojson index 56edc16385..148bb294ac 100644 --- a/packages/turf-buffer/test/out/north-latitude-points.geojson +++ b/packages/turf-buffer/test/out/north-latitude-points.geojson @@ -14,168 +14,168 @@ "coordinates": [ [ [ - -97.430762, - 74.428523 + -97.442036, + 74.434038 ], [ - -97.361193, - 74.378549 + -97.381016, + 74.388139 ], [ - -97.086327, - 74.257817 + -97.112521, + 74.266227 ], [ - -96.734093, - 74.153407 + -96.765629, + 74.160316 ], [ - -96.318223, - 74.068983 + -96.35391, + 74.074131 ], [ - -95.853944, - 74.00746 + -95.892472, + 74.010651 ], [ - -95.35753, - 73.97093 + -95.397508, + 73.972041 ], [ - -94.845904, - 73.960619 + -94.885898, + 73.959607 ], [ - -94.336271, - 73.976866 + -94.374849, + 73.973769 ], [ - -94.079491, - 73.99915 + -94.087763, + 73.997372 ], [ - -94.045157, - 73.998293 + -94.085128, + 73.997295 ], [ - -93.533734, - 74.012632 + -93.57229, + 74.009553 ], [ - -93.04027, - 74.053034 + -93.076017, + 74.04799 ], [ - -92.581594, - 74.11812 + -92.613227, + 74.111306 ], [ - -92.17381, - 74.205665 + -92.200153, + 74.197343 ], [ - -91.831899, - 74.312637 + -91.851945, + 74.303127 ], [ - -91.569267, - 74.435274 + -91.582217, + 74.42494 ], [ - -91.39724, - 74.569177 + -91.402533, + 74.558414 ], [ - -91.324493, - 74.709433 + -91.321837, + 74.698648 ], [ - -91.356461, - 74.850762 + -91.345852, + 74.840365 ], [ - -91.494758, - 74.987699 + -91.476493, + 74.978084 ], [ - -91.736671, - 75.114805 + -91.711354, + 75.106336 ], [ - -92.074829, - 75.226893 + -92.043366, + 75.219895 ], [ - -92.497122, - 75.319276 + -92.460698, + 75.314018 ], [ - -92.986962, - 75.388004 + -92.947004, + 75.384693 ], [ - -93.523933, - 75.430087 + -93.482055, + 75.428855 ], [ - -94.084817, - 75.443664 + -94.042747, + 75.444567 ], [ - -94.292126, - 75.438074 + -94.28658, + 75.438903 ], [ - -94.48136, - 75.451876 + -94.439369, + 75.450664 ], [ - -95.043939, - 75.463169 + -95.001778, + 75.464097 ], [ - -95.60377, - 75.445346 + -95.563205, + 75.448384 ], [ - -96.136226, - 75.399188 + -96.098954, + 75.404219 ], [ - -96.61833, - 75.326713 + -96.585885, + 75.33354 ], [ - -97.030062, - 75.231057 + -97.003742, + 75.239413 ], [ - -97.355353, - 75.116296 + -97.336159, + 75.12585 ], [ - -97.582692, - 74.987218 + -97.571292, + 74.997594 ], [ - -97.705345, - 74.84908 + -97.702066, + 74.859873 ], [ - -97.721242, - 74.707364 + -97.726078, + 74.718157 ], [ - -97.632615, - 74.567548 + -97.64525, + 74.577923 ], [ - -97.445477, - 74.43489 + -97.465317, + 74.444452 ], [ - -97.430762, - 74.428523 + -97.442036, + 74.434038 ] ] ] diff --git a/packages/turf-buffer/test/out/northern-polygon.geojson b/packages/turf-buffer/test/out/northern-polygon.geojson index 221065be3a..adf128aaad 100644 --- a/packages/turf-buffer/test/out/northern-polygon.geojson +++ b/packages/turf-buffer/test/out/northern-polygon.geojson @@ -14,168 +14,168 @@ "coordinates": [ [ [ - -94.585649, - 73.970668 + -94.586148, + 73.969761 ], [ - -94.060867, - 73.997501 + -94.060634, + 73.996546 ], [ - -93.563804, - 74.051942 + -93.562762, + 74.05099 ], [ - -93.113004, - 74.131982 + -93.111131, + 74.131095 ], [ - -92.725942, - 74.234647 + -92.723285, + 74.233888 ], [ - -92.418504, - 74.356063 + -92.415184, + 74.355489 ], [ - -92.204406, - 74.491561 + -92.200612, + 74.491218 ], [ - -92.180703, - 74.511942 + -92.176886, + 74.511612 ], [ - -92.079369, - 74.635523 + -92.075347, + 74.635411 ], [ - -92.05993, - 74.761907 + -92.0559, + 74.762017 ], [ - -92.124976, - 74.887248 + -92.121138, + 74.887572 ], [ - -92.14698, - 74.912484 + -92.143177, + 74.912822 ], [ - -92.307136, - 75.038994 + -92.303751, + 75.039533 ], [ - -92.557645, - 75.15553 + -92.554851, + 75.15623 ], [ - -92.891418, - 75.257861 + -92.889336, + 75.258675 ], [ - -93.29767, - 75.342188 + -93.296362, + 75.343064 ], [ - -93.762169, - 75.405315 + -93.761636, + 75.406204 ], [ - -94.267747, - 75.44481 + -94.267934, + 75.445669 ], [ - -94.795069, - 75.459132 + -94.795881, + 75.459926 ], [ - -94.872834, - 75.459333 + -94.873641, + 75.460115 ], [ - -95.399954, - 75.447804 + -95.401271, + 75.448499 ], [ - -95.907728, - 75.41111 + -95.909433, + 75.411704 ], [ - -96.376756, - 75.350664 + -96.378733, + 75.351153 ], [ - -96.457031, - 75.337679 + -96.458957, + 75.338165 ], [ - -96.872497, - 75.254835 + -96.874599, + 75.25522 ], [ - -97.215887, - 75.153369 + -97.218095, + 75.153659 ], [ - -97.475801, - 75.037104 + -97.478068, + 75.037307 ], [ - -97.644623, - 74.910329 + -97.646921, + 74.91045 ], [ - -97.71854, - 74.777609 + -97.720856, + 74.777651 ], [ - -97.697366, - 74.643606 + -97.699691, + 74.643569 ], [ - -97.584203, - 74.51291 + -97.586524, + 74.512789 ], [ - -97.385019, - 74.389885 + -97.387315, + 74.389673 ], [ - -97.318087, - 74.356893 + -97.320449, + 74.356691 ], [ - -96.9989, - 74.231284 + -97.001193, + 74.230963 ], [ - -96.594781, - 74.125927 + -96.596925, + 74.125476 ], [ - -96.123523, - 74.045073 + -96.125408, + 74.044486 ], [ - -95.604689, - 73.99193 + -95.60618, + 73.991212 ], [ - -95.058992, - 73.968576 + -95.059945, + 73.967744 ], [ - -95.012377, - 73.96789 + -95.013332, + 73.967051 ], [ - -94.629644, - 73.969621 + -94.630149, + 73.968721 ], [ - -94.585649, - 73.970668 + -94.586148, + 73.969761 ] ] ] diff --git a/packages/turf-buffer/test/out/point.geojson b/packages/turf-buffer/test/out/point.geojson index 2743964175..6b6b2525d7 100644 --- a/packages/turf-buffer/test/out/point.geojson +++ b/packages/turf-buffer/test/out/point.geojson @@ -14,136 +14,136 @@ "coordinates": [ [ [ - 135.722849, - -25 + 135.798459, + -24.997869 ], [ - 135.70896, - -25.127742 + 135.78222, + -24.856777 ], [ - 135.667826, - -25.250449 + 135.736028, + -24.72126 ], [ - 135.601027, - -25.363426 + 135.661742, + -24.596496 ], [ - 135.511132, - -25.462365 + 135.562272, + -24.487242 ], [ - 135.401593, - -25.543502 + 135.441458, + -24.397651 ], [ - 135.276622, - -25.603756 + 135.30392, + -24.331119 ], [ - 135.141021, - -25.640845 + 135.154887, + -24.290167 ], [ 135, - -25.653366 + -24.276342 ], [ - 134.858979, - -25.640845 + 134.845113, + -24.290167 ], [ - 134.723378, - -25.603756 + 134.69608, + -24.331119 ], [ - 134.598407, - -25.543502 + 134.558542, + -24.397651 ], [ - 134.488868, - -25.462365 + 134.437728, + -24.487242 ], [ - 134.398973, - -25.363426 + 134.338258, + -24.596496 ], [ - 134.332174, - -25.250449 + 134.263972, + -24.72126 ], [ - 134.29104, - -25.127742 + 134.21778, + -24.856777 ], [ - 134.277151, - -25 + 134.201541, + -24.997869 ], [ - 134.29104, - -24.872125 + 134.215981, + -25.139123 ], [ - 134.332174, - -24.74904 + 134.260647, + -25.275103 ], [ - 134.398973, - -24.635496 + 134.333913, + -25.400557 ], [ - 134.488868, - -24.535888 + 134.433025, + -25.510627 ], [ - 134.598407, - -24.454083 + 134.554197, + -25.601034 ], [ - 134.723378, - -24.393263 + 134.692754, + -25.668256 ], [ - 134.858979, - -24.355795 + 134.843314, + -25.709671 ], [ 135, - -24.343141 + -25.723658 ], [ - 135.141021, - -24.355795 + 135.156686, + -25.709671 ], [ - 135.276622, - -24.393263 + 135.307246, + -25.668256 ], [ - 135.401593, - -24.454083 + 135.445803, + -25.601034 ], [ - 135.511132, - -24.535888 + 135.566975, + -25.510627 ], [ - 135.601027, - -24.635496 + 135.666087, + -25.400557 ], [ - 135.667826, - -24.74904 + 135.739353, + -25.275103 ], [ - 135.70896, - -24.872125 + 135.784019, + -25.139123 ], [ - 135.722849, - -25 + 135.798459, + -24.997869 ] ] ] diff --git a/packages/turf-buffer/test/out/polygon-with-holes.geojson b/packages/turf-buffer/test/out/polygon-with-holes.geojson index 4eb3f37118..9e00a833d9 100644 --- a/packages/turf-buffer/test/out/polygon-with-holes.geojson +++ b/packages/turf-buffer/test/out/polygon-with-holes.geojson @@ -14,190 +14,190 @@ "coordinates": [ [ [ - 123.46799, - -24.566384 + 123.396129, + -24.552892 ], [ - 124.171115, - -13.879973 + 123.398728, + -24.691824 ], [ - 124.195615, - -13.73725 + 123.43081, + -24.827676 ], [ - 124.249728, - -13.602357 + 123.491271, + -24.955376 ], [ - 124.331155, - -13.481046 + 127.765022, + -31.644259 ], [ - 124.436435, - -13.378493 + 127.857726, + -31.755151 ], [ - 124.561096, - -13.299085 + 127.973551, + -31.849002 ], [ - 124.699841, - -13.246219 + 128.10836, + -31.922413 ], [ - 124.846775, - -13.222159 + 128.257291, + -31.972713 ], [ - 130.383885, - -12.879678 + 128.414939, + -31.998068 ], [ - 130.441733, - -12.87836 + 138.329141, + -32.451275 ], [ - 135.715171, - -12.964025 + 138.491912, + -32.440129 ], [ - 135.8351, - -12.975767 + 138.648986, + -32.40274 ], [ - 135.95136, - -13.006763 + 138.794502, + -32.340506 ], [ - 136.060717, - -13.056144 + 138.923056, + -32.25575 ], [ - 141.773608, - -16.202222 + 139.029913, + -32.151626 ], [ - 141.891232, - -16.282407 + 145.502669, + -23.800029 ], [ - 141.989929, - -16.383374 + 145.578901, + -23.665233 ], [ - 142.065768, - -16.501072 + 145.622351, + -23.518861 ], [ - 145.493502, - -23.11175 + 145.631202, + -23.367426 ], [ - 145.545559, - -23.243779 + 145.605179, + -23.21764 ], [ - 145.566271, - -23.382775 + 145.545542, + -23.076121 ], [ - 145.554713, - -23.522518 + 142.098542, + -16.495192 ], [ - 145.511402, - -23.656771 + 142.016382, + -16.365716 ], [ - 145.438271, - -23.779565 + 141.907866, + -16.25563 ], [ - 138.934365, - -32.077223 + 141.77779, + -16.16976 ], [ - 138.838817, - -32.171942 + 136.079778, + -13.043891 ], [ - 138.722607, - -32.248246 + 135.961491, + -12.988928 ], [ - 138.590545, - -32.303026 + 135.835169, + -12.95519 ], [ - 138.448102, - -32.334053 + 135.704742, + -12.943725 ], [ - 138.301175, - -32.340067 + 130.45059, + -12.859153 ], [ - 128.457425, - -31.893427 + 130.368086, + -12.86109 ], [ - 128.31488, - -31.874705 + 124.851575, + -13.203457 ], [ - 128.17955, - -31.832311 + 124.698878, + -13.226176 ], [ - 128.056825, - -31.7679 + 124.554578, + -13.279234 ], [ - 127.95159, - -31.683995 + 124.424919, + -13.36033 ], [ - 127.868036, - -31.583889 + 124.315525, + -13.465951 ], [ - 123.561395, - -24.931994 + 124.231162, + -13.591522 ], [ - 123.504356, - -24.816505 + 124.175535, + -13.7316 ], [ - 123.47283, - -24.693109 + 124.151118, + -13.880099 ], [ - 123.46799, - -24.566384 + 123.396129, + -24.552892 ] ], [ [ - 130.390216, - -26.3742 + 130.462457, + -26.314888 ], [ - 138.364065, - -26.3742 + 128.718067, + -18.144009 ], [ - 138.364065, - -18.081063 + 138.323214, + -18.140031 ], [ - 128.667834, - -18.081063 + 138.277108, + -26.318328 ], [ - 130.390216, - -26.3742 + 130.462457, + -26.314888 ] ] ]