diff --git a/documentation.yml b/documentation.yml index 0f5445a780..ab014854f0 100644 --- a/documentation.yml +++ b/documentation.yml @@ -71,6 +71,8 @@ toc: - shortestPath - unkinkPolygon Helper: + - calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle + - calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle - featureCollection - feature - geometryCollection diff --git a/packages/turf-circle/README.md b/packages/turf-circle/README.md index 38c334e49c..a9f4041ec6 100644 --- a/packages/turf-circle/README.md +++ b/packages/turf-circle/README.md @@ -13,6 +13,7 @@ Takes a [Point][1] and calculates the circle polygon given a radius in [Units][2 * `options` **[Object][6]** Optional parameters (optional, default `{}`) * `options.steps` **[number][5]** number of steps (optional, default `64`) + * `options.maximumRimDeviation` **[number][5]?** if provided, will ignore steps and use a number of steps such that the rim of returned approximate regular polygon is at most this far away from the true circle * `options.units` **Units** Supports all valid Turf [Units][2] (optional, default `'kilometers'`) * `options.properties` **[Object][6]** properties (optional, default `{}`) diff --git a/packages/turf-circle/index.ts b/packages/turf-circle/index.ts index 397d74f1e0..92282c34b2 100644 --- a/packages/turf-circle/index.ts +++ b/packages/turf-circle/index.ts @@ -1,6 +1,11 @@ import { GeoJsonProperties, Feature, Point, Polygon } from "geojson"; import { destination } from "@turf/destination"; -import { polygon, Units } from "@turf/helpers"; +import { + calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle, + calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle, + polygon, + Units, +} from "@turf/helpers"; /** * Takes a {@link Point} and calculates the circle polygon given a radius in {@link https://turfjs.org/docs/api/types/Units Units}; and steps for precision. @@ -10,6 +15,7 @@ import { polygon, Units } from "@turf/helpers"; * @param {number} radius radius of the circle * @param {Object} [options={}] Optional parameters * @param {number} [options.steps=64] number of steps + * @param {number} [options.maximumRimDeviation] if provided, will ignore steps and use a number of steps such that the rim of returned approximate regular polygon is at most this far away from the true circle * @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units} * @param {Object} [options.properties={}] properties * @returns {Feature} circle polygon @@ -27,12 +33,23 @@ function circle

( radius: number, options: { steps?: number; + maximumRimDeviation?: number; units?: Units; properties?: P; } = {} ): Feature { // default params - const steps = options.steps || 64; + let steps = options.steps || 64; + if (options.maximumRimDeviation && options.maximumRimDeviation > 0) { + steps = + calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle( + radius, + options.maximumRimDeviation + ); + } + + const circumRadius = + calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle(radius, steps); const properties: any = options.properties ? options.properties : !Array.isArray(center) && center.type === "Feature" && center.properties @@ -43,7 +60,7 @@ function circle

( const coordinates = []; for (let i = 0; i < steps; i++) { coordinates.push( - destination(center, radius, (i * -360) / steps, options).geometry + destination(center, circumRadius, (i * -360) / steps, options).geometry .coordinates ); } diff --git a/packages/turf-circle/package.json b/packages/turf-circle/package.json index 45fba299e2..8ae7ad3ac0 100644 --- a/packages/turf-circle/package.json +++ b/packages/turf-circle/package.json @@ -3,6 +3,9 @@ "version": "7.2.0", "description": "Takes a point and calculates the circle polygon given a radius.", "author": "Turf Authors", + "contributors": [ + "Scott Wiedemann <@lemmingapex>" + ], "license": "MIT", "bugs": { "url": "https://github.com/Turfjs/turf/issues" diff --git a/packages/turf-circle/test/out/circle1.geojson b/packages/turf-circle/test/out/circle1.geojson index e01ab52626..211a2dfb48 100644 --- a/packages/turf-circle/test/out/circle1.geojson +++ b/packages/turf-circle/test/out/circle1.geojson @@ -20,71 +20,71 @@ "type": "Polygon", "coordinates": [ [ - [-75.343, 40.028966], - [-75.348756, 40.028749], - [-75.354456, 40.028101], - [-75.360046, 40.027029], - [-75.365472, 40.025541], - [-75.37068, 40.023653], - [-75.375622, 40.021383], - [-75.380248, 40.018753], - [-75.384516, 40.015788], - [-75.388383, 40.012517], - [-75.391813, 40.008972], - [-75.394772, 40.005185], - [-75.397232, 40.001195], - [-75.399169, 39.997039], - [-75.400565, 39.992758], - [-75.401406, 39.988393], - [-75.401685, 39.983985], - [-75.401399, 39.979578], - [-75.40055, 39.975213], - [-75.399148, 39.970934], - [-75.397204, 39.96678], - [-75.39474, 39.962792], - [-75.391777, 39.959008], - [-75.388345, 39.955465], - [-75.384477, 39.952197], - [-75.380211, 39.949235], - [-75.375586, 39.946608], - [-75.370648, 39.94434], - [-75.365444, 39.942455], - [-75.360025, 39.940969], - [-75.354442, 39.939897], - [-75.348748, 39.93925], - [-75.343, 39.939034], - [-75.337252, 39.93925], - [-75.331558, 39.939897], - [-75.325975, 39.940969], - [-75.320556, 39.942455], - [-75.315352, 39.94434], - [-75.310414, 39.946608], - [-75.305789, 39.949235], - [-75.301523, 39.952197], - [-75.297655, 39.955465], - [-75.294223, 39.959008], - [-75.29126, 39.962792], - [-75.288796, 39.96678], - [-75.286852, 39.970934], - [-75.28545, 39.975213], - [-75.284601, 39.979578], - [-75.284315, 39.983985], - [-75.284594, 39.988393], - [-75.285435, 39.992758], - [-75.286831, 39.997039], - [-75.288768, 40.001195], - [-75.291228, 40.005185], - [-75.294187, 40.008972], - [-75.297617, 40.012517], - [-75.301484, 40.015788], - [-75.305752, 40.018753], - [-75.310378, 40.021383], - [-75.31532, 40.023653], - [-75.320528, 40.025541], - [-75.325954, 40.027029], - [-75.331544, 40.028101], - [-75.337244, 40.028749], - [-75.343, 40.028966] + [-75.343, 40.029002], + [-75.348761, 40.028785], + [-75.354466, 40.028137], + [-75.36006, 40.027063], + [-75.36549, 40.025574], + [-75.370702, 40.023685], + [-75.375648, 40.021413], + [-75.380278, 40.018781], + [-75.384549, 40.015814], + [-75.38842, 40.01254], + [-75.391852, 40.008992], + [-75.394813, 40.005202], + [-75.397275, 40.001209], + [-75.399214, 39.99705], + [-75.400611, 39.992765], + [-75.401453, 39.988396], + [-75.401732, 39.983985], + [-75.401446, 39.979574], + [-75.400596, 39.975206], + [-75.399193, 39.970923], + [-75.397248, 39.966766], + [-75.394781, 39.962775], + [-75.391816, 39.958988], + [-75.388382, 39.955442], + [-75.384511, 39.952171], + [-75.38024, 39.949207], + [-75.375612, 39.946578], + [-75.37067, 39.944308], + [-75.365462, 39.942421], + [-75.360038, 39.940934], + [-75.354451, 39.939862], + [-75.348753, 39.939214], + [-75.343, 39.938998], + [-75.337247, 39.939214], + [-75.331549, 39.939862], + [-75.325962, 39.940934], + [-75.320538, 39.942421], + [-75.31533, 39.944308], + [-75.310388, 39.946578], + [-75.30576, 39.949207], + [-75.301489, 39.952171], + [-75.297618, 39.955442], + [-75.294184, 39.958988], + [-75.291219, 39.962775], + [-75.288752, 39.966766], + [-75.286807, 39.970923], + [-75.285404, 39.975206], + [-75.284554, 39.979574], + [-75.284268, 39.983985], + [-75.284547, 39.988396], + [-75.285389, 39.992765], + [-75.286786, 39.99705], + [-75.288725, 40.001209], + [-75.291187, 40.005202], + [-75.294148, 40.008992], + [-75.29758, 40.01254], + [-75.301451, 40.015814], + [-75.305722, 40.018781], + [-75.310352, 40.021413], + [-75.315298, 40.023685], + [-75.32051, 40.025574], + [-75.32594, 40.027063], + [-75.331534, 40.028137], + [-75.337239, 40.028785], + [-75.343, 40.029002] ] ] } diff --git a/packages/turf-ellipse/index.ts b/packages/turf-ellipse/index.ts index 22d678d804..c4a12688e3 100644 --- a/packages/turf-ellipse/index.ts +++ b/packages/turf-ellipse/index.ts @@ -1,4 +1,5 @@ import { + convertLength, polygon, isObject, isNumber, @@ -7,6 +8,7 @@ import { point, radiansToDegrees, } from "@turf/helpers"; +import { area } from "@turf/area"; import { destination } from "@turf/destination"; import { transformRotate } from "@turf/transform-rotate"; import { getCoord } from "@turf/invariant"; @@ -65,95 +67,110 @@ function ellipse( transformRotate(point(getCoord(center)), angle, { pivot }) ); - angle = -90 + angle; - // Divide steps by 4 for one quadrant steps = Math.ceil(steps / 4); - let quadrantParameters = []; - let parameters = []; - - const a = xSemiAxis; - const b = ySemiAxis; - - // Gradient x intersect - const c = b; - - // Gradient of line - const m = (a - b) / (Math.PI / 2); - - // Area under line - const A = ((a + b) * Math.PI) / 4; - - // Weighting function - const v = 0.5; - - const k = steps; - - let w = 0; - let x = 0; - - for (let i = 0; i < steps; i++) { - x += w; + const getParameters = (a: number, b: number, k: number) => { + const quadrantParameters = []; + const parameters = []; + + // Gradient x intersect + const c = b; + + // Gradient of line + const m = (a - b) / (Math.PI / 2); + + // Area under line + const A = ((a + b) * Math.PI) / 4; + + // Weighting function + const v = 0.5; + + let w = 0; + let x = 0; + + for (let i = 0; i < steps; i++) { + x += w; + + if (m === 0) { + // It's a circle, so use simplified c*w - A/k == 0 + w = A / k / c; + } else { + // Otherwise, use full (v*m)*w^2 + (m*x+c)*w - A/k == 0 + // Solve as quadratic ax^2 + bx + c = 0 + w = + (-(m * x + c) + + Math.sqrt(Math.pow(m * x + c, 2) - 4 * (v * m) * -(A / k))) / + (2 * (v * m)); + } + if (x != 0) { + // easier to add it later to avoid having twice the same point + quadrantParameters.push(x); + } + } - if (m === 0) { - // It's a circle, so use simplified c*w - A/k == 0 - w = A / k / c; - } else { - // Otherwise, use full (v*m)*w^2 + (m*x+c)*w - A/k == 0 - // Solve as quadratic ax^2 + bx + c = 0 - w = - (-(m * x + c) + - Math.sqrt(Math.pow(m * x + c, 2) - 4 * (v * m) * -(A / k))) / - (2 * (v * m)); + //NE + parameters.push(0); + for (let i = 0; i < quadrantParameters.length; i++) { + parameters.push(quadrantParameters[i]); } - if (x != 0) { - // easier to add it later to avoid having twice the same point - quadrantParameters.push(x); + //NW + parameters.push(Math.PI / 2); + for (let i = 0; i < quadrantParameters.length; i++) { + parameters.push( + Math.PI - quadrantParameters[quadrantParameters.length - i - 1] + ); } - } + //SW + parameters.push(Math.PI); + for (let i = 0; i < quadrantParameters.length; i++) { + parameters.push(Math.PI + quadrantParameters[i]); + } + //SE + parameters.push((3 * Math.PI) / 2); + for (let i = 0; i < quadrantParameters.length; i++) { + parameters.push( + 2 * Math.PI - quadrantParameters[quadrantParameters.length - i - 1] + ); + } + parameters.push(0); + return parameters; + }; + + const constructCoords = (a: number, b: number, k: number): Position[] => { + const coords: Position[] = []; + for (const param of getParameters(a, b, k)) { + const theta = Math.atan2(b * Math.sin(param), a * Math.cos(param)); + const r = Math.sqrt( + (Math.pow(a, 2) * Math.pow(b, 2)) / + (Math.pow(a * Math.sin(theta), 2) + Math.pow(b * Math.cos(theta), 2)) + ); + coords.push( + destination(centerCoords, r, angle + radiansToDegrees(theta), { + units: units, + }).geometry.coordinates + ); + } + return coords; + }; - //NE - parameters.push(0); - for (let i = 0; i < quadrantParameters.length; i++) { - parameters.push(quadrantParameters[i]); - } - //NW - parameters.push(Math.PI / 2); - for (let i = 0; i < quadrantParameters.length; i++) { - parameters.push( - Math.PI - quadrantParameters[quadrantParameters.length - i - 1] - ); - } - //SW - parameters.push(Math.PI); - for (let i = 0; i < quadrantParameters.length; i++) { - parameters.push(Math.PI + quadrantParameters[i]); - } - //SE - parameters.push((3 * Math.PI) / 2); - for (let i = 0; i < quadrantParameters.length; i++) { - parameters.push( - 2 * Math.PI - quadrantParameters[quadrantParameters.length - i - 1] - ); - } - parameters.push(0); - - // We can now construct the ellipse - const coords: Position[] = []; - for (const param of parameters) { - const theta = Math.atan2(b * Math.sin(param), a * Math.cos(param)); - const r = Math.sqrt( - (Math.pow(a, 2) * Math.pow(b, 2)) / - (Math.pow(a * Math.sin(theta), 2) + Math.pow(b * Math.cos(theta), 2)) - ); - coords.push( - destination(centerCoords, r, angle + radiansToDegrees(theta), { - units: units, - }).geometry.coordinates - ); - } - return polygon([coords], properties); + angle = -90 + angle; + + // construct the ellipse + const coords: Position[] = constructCoords(xSemiAxis, ySemiAxis, steps); + + // the area is smaller than the true ellipse, so we need to scale it up to match the area of the real ellipse + const polygonArea = area(polygon([coords])); // in meters squared + const ellipseArea = + Math.PI * + convertLength(xSemiAxis, units, "meters") * + convertLength(ySemiAxis, units, "meters"); + const scaleFactor = Math.sqrt(ellipseArea / polygonArea); + const a1 = xSemiAxis * scaleFactor; + const b1 = ySemiAxis * scaleFactor; + + const coords1: Position[] = constructCoords(a1, b1, steps); + return polygon([coords1], properties); } export { ellipse }; diff --git a/packages/turf-ellipse/package.json b/packages/turf-ellipse/package.json index cdacca6e8e..684e02c980 100644 --- a/packages/turf-ellipse/package.json +++ b/packages/turf-ellipse/package.json @@ -5,7 +5,8 @@ "author": "Turf Authors", "contributors": [ "Moacir P. de Sá Pereira <@muziejus>", - "Pavel Rozvora <@prozvora>" + "Pavel Rozvora <@prozvora>", + "Scott Wiedemann <@lemmingapex>" ], "license": "MIT", "bugs": { diff --git a/packages/turf-ellipse/test/out/anti-meridian-degrees.json b/packages/turf-ellipse/test/out/anti-meridian-degrees.json index 4a2824aa2d..ede888379d 100644 --- a/packages/turf-ellipse/test/out/anti-meridian-degrees.json +++ b/packages/turf-ellipse/test/out/anti-meridian-degrees.json @@ -25,71 +25,71 @@ "type": "Polygon", "coordinates": [ [ - [-180, 33], - [-185.122556, 32.759336], - [-190.154864, 32.043494], - [-195.015087, 30.870189], - [-199.636266, 29.266686], - [-203.969686, 27.267013], - [-207.985062, 24.909007], - [-211.66833, 22.231692], - [-215.01814, 19.273248], - [-218.042031, 16.069658], - [-220.752936, 12.653961], - [-223.166311, 9.055964], - [-225.297939, 5.302282], - [-227.162325, 1.416582], - [-228.771529, -2.580054], - [-230.13428, -6.668708], - [-231.255224, -10.832176], - [-232.134166, -15.054488], - [-232.765193, -19.320412], - [-233.135518, -23.6149], - [-233.223906, -27.92245], - [-232.998485, -32.22632], - [-232.413665, -36.507505], - [-231.405877, -40.743336], - [-229.887782, -44.905495], - [-227.740782, -48.957147], - [-224.806435, -52.848766], - [-220.879642, -56.512237], - [-215.712322, -59.853159], - [-209.048076, -62.742919], - [-200.722424, -65.016396], - [-190.848503, -66.488112], - [-180, -67], - [-169.151497, -66.488112], - [-159.277576, -65.016396], - [-150.951924, -62.742919], - [-144.287678, -59.853159], - [-139.120358, -56.512237], - [-135.193565, -52.848766], - [-132.259218, -48.957147], - [-130.112218, -44.905495], - [-128.594123, -40.743336], - [-127.586335, -36.507505], - [-127.001515, -32.22632], - [-126.776094, -27.92245], - [-126.864482, -23.6149], - [-127.234807, -19.320412], - [-127.865834, -15.054488], - [-128.744776, -10.832176], - [-129.86572, -6.668708], - [-131.228471, -2.580054], - [-132.837675, 1.416582], - [-134.702061, 5.302282], - [-136.833689, 9.055964], - [-139.247064, 12.653961], - [-141.957969, 16.069658], - [-144.98186, 19.273248], - [-148.33167, 22.231692], - [-152.014938, 24.909007], - [-156.030314, 27.267013], - [-160.363734, 29.266686], - [-164.984913, 30.870189], - [-169.845136, 32.043494], - [-174.877444, 32.759336], - [-180, 33] + [-180, 33.040189], + [-185.127885, 32.799274], + [-190.165304, 32.082696], + [-195.030236, 30.908217], + [-199.655599, 29.303166], + [-203.992623, 27.301647], + [-208.011025, 24.941576], + [-211.696791, 22.262044], + [-215.048643, 19.301286], + [-218.074209, 16.095332], + [-220.786506, 12.67725], + [-223.201069, 9.076869], + [-225.333753, 5.320815], + [-227.199125, 1.432759], + [-228.809299, -2.566218], + [-230.17305, -6.657206], + [-231.295062, -10.823009], + [-232.175179, -15.047671], + [-232.807519, -19.315976], + [-233.179324, -23.612897], + [-233.269387, -27.922955], + [-233.04585, -32.229437], + [-232.463131, -36.513372], + [-231.45764, -40.752129], + [-229.941966, -44.917437], + [-227.797349, -48.972507], + [-224.865005, -52.867859], + [-220.939188, -56.535396], + [-215.770682, -59.880669], + [-209.101322, -62.774874], + [-200.764512, -65.052445], + [-190.87221, -66.527174], + [-180, -67.040189], + [-169.12779, -66.527174], + [-159.235488, -65.052445], + [-150.898678, -62.774874], + [-144.229318, -59.880669], + [-139.060812, -56.535396], + [-135.134995, -52.867859], + [-132.202651, -48.972507], + [-130.058034, -44.917437], + [-128.54236, -40.752129], + [-127.536869, -36.513372], + [-126.95415, -32.229437], + [-126.730613, -27.922955], + [-126.820676, -23.612897], + [-127.192481, -19.315976], + [-127.824821, -15.047671], + [-128.704938, -10.823009], + [-129.82695, -6.657206], + [-131.190701, -2.566218], + [-132.800875, 1.432759], + [-134.666247, 5.320815], + [-136.798931, 9.076869], + [-139.213494, 12.67725], + [-141.925791, 16.095332], + [-144.951357, 19.301286], + [-148.303209, 22.262044], + [-151.988975, 24.941576], + [-156.007377, 27.301647], + [-160.344401, 29.303166], + [-164.969764, 30.908217], + [-169.834696, 32.082696], + [-174.872115, 32.799274], + [-180, 33.040189] ] ] } @@ -106,71 +106,71 @@ "type": "Polygon", "coordinates": [ [ - [-231.255224, -10.832176], - [-229.537115, -9.171208], - [-226.785333, -8.318289], - [-223.616357, -7.809288], - [-220.237616, -7.490076], - [-216.750783, -7.287067], - [-213.215132, -7.158857], - [-209.668909, -7.079876], - [-206.138464, -7.033411], - [-202.642783, -7.008151], - [-199.195982, -6.996301], - [-195.808785, -6.992459], - [-192.489461, -6.992913], - [-189.24444, -6.99517], - [-186.078735, -6.997636], - [-182.996251, -6.999388], - [-180, -7], - [-177.003749, -6.999388], - [-173.921265, -6.997636], - [-170.75556, -6.99517], - [-167.510539, -6.992913], - [-164.191215, -6.992459], - [-160.804018, -6.996301], - [-157.357217, -7.008151], - [-153.861536, -7.033411], - [-150.331091, -7.079876], - [-146.784868, -7.158857], - [-143.249217, -7.287067], - [-139.762384, -7.490076], - [-136.383643, -7.809288], - [-133.214667, -8.318289], - [-130.462885, -9.171208], - [-128.744776, -10.832176], - [-129.549848, -13.068509], - [-131.704315, -15.006667], - [-134.457899, -16.764622], - [-137.558403, -18.370546], - [-140.881596, -19.832788], - [-144.353404, -21.153602], - [-147.923695, -22.333485], - [-151.555203, -23.372894], - [-155.218208, -24.273002], - [-158.887798, -25.036029], - [-162.542409, -25.665364], - [-166.163061, -26.16555], - [-169.732965, -26.542201], - [-173.237347, -26.80186], - [-176.663352, -26.951832], - [-180, -27], - [-183.336648, -26.951832], - [-186.762653, -26.80186], - [-190.267035, -26.542201], - [-193.836939, -26.16555], - [-197.457591, -25.665364], - [-201.112202, -25.036029], - [-204.781792, -24.273002], - [-208.444797, -23.372894], - [-212.076305, -22.333485], - [-215.646596, -21.153602], - [-219.118404, -19.832788], - [-222.441597, -18.370546], - [-225.542101, -16.764622], - [-228.295685, -15.006667], - [-230.450152, -13.068509], - [-231.255224, -10.832176] + [-232.143625, -10.626413], + [-230.393731, -8.94956], + [-227.594139, -8.093938], + [-224.370594, -7.586962], + [-220.933757, -7.271868], + [-217.386934, -7.073884], + [-213.790381, -6.950971], + [-210.182991, -6.877185], + [-206.591573, -6.835585], + [-203.035447, -6.814717], + [-199.528983, -6.806701], + [-196.083102, -6.806088], + [-192.706228, -6.809145], + [-189.404913, -6.813382], + [-186.184267, -6.817224], + [-183.048272, -6.819772], + [-180, -6.820641], + [-176.951728, -6.819772], + [-173.815733, -6.817224], + [-170.595087, -6.813382], + [-167.293772, -6.809145], + [-163.916898, -6.806088], + [-160.471017, -6.806701], + [-156.964553, -6.814717], + [-153.408427, -6.835585], + [-149.817009, -6.877185], + [-146.209619, -6.950971], + [-142.613066, -7.073884], + [-139.066243, -7.271868], + [-135.629406, -7.586962], + [-132.405861, -8.093938], + [-129.606269, -8.94956], + [-127.856375, -10.626413], + [-128.670074, -12.895934], + [-130.855589, -14.86991], + [-133.6504, -16.664733], + [-136.798523, -18.307494], + [-140.174044, -19.80568], + [-143.70197, -21.160823], + [-147.331554, -22.372819], + [-151.025026, -23.441625], + [-154.752187, -24.368021], + [-158.487623, -25.153935], + [-162.20924, -25.802562], + [-165.897504, -26.318349], + [-169.535067, -26.706906], + [-173.106599, -26.974851], + [-176.598727, -27.129639], + [-180, -27.179359], + [-183.401273, -27.129639], + [-186.893401, -26.974851], + [-190.464933, -26.706906], + [-194.102496, -26.318349], + [-197.79076, -25.802562], + [-201.512377, -25.153935], + [-205.247813, -24.368021], + [-208.974974, -23.441625], + [-212.668446, -22.372819], + [-216.29803, -21.160823], + [-219.825956, -19.80568], + [-223.201477, -18.307494], + [-226.3496, -16.664733], + [-229.144411, -14.86991], + [-231.329926, -12.895934], + [-232.143625, -10.626413] ] ] } @@ -187,71 +187,71 @@ "type": "Polygon", "coordinates": [ [ - [-180, 33], - [-177.649663, 31.703957], - [-176.075902, 29.197049], - [-174.899856, 26.193732], - [-173.977415, 22.936144], - [-173.23134, 19.54281], - [-172.614036, 16.082418], - [-172.093927, 12.598902], - [-171.649083, 9.122233], - [-171.263795, 5.673775], - [-170.926553, 2.269246], - [-170.628782, -1.079531], - [-170.364019, -4.363529], - [-170.127356, -7.575789], - [-169.915059, -10.710919], - [-169.724292, -13.764747], - [-169.55293, -16.734064], - [-169.394938, -19.704191], - [-169.246345, -22.760568], - [-169.109071, -25.900205], - [-168.985952, -29.119223], - [-168.881153, -32.41262], - [-168.800816, -35.773947], - [-168.754065, -39.194852], - [-168.754629, -42.664405], - [-168.823498, -46.168062], - [-168.993438, -49.685982], - [-169.316859, -53.190124], - [-169.880034, -56.638822], - [-170.829705, -59.965537], - [-172.425015, -63.051999], - [-175.146105, -65.648285], - [-180, -67], - [-184.853895, -65.648285], - [-187.574985, -63.051999], - [-189.170295, -59.965537], - [-190.119966, -56.638822], - [-190.683141, -53.190124], - [-191.006562, -49.685982], - [-191.176502, -46.168062], - [-191.245371, -42.664405], - [-191.245935, -39.194852], - [-191.199184, -35.773947], - [-191.118847, -32.41262], - [-191.014048, -29.119223], - [-190.890929, -25.900205], - [-190.753655, -22.760568], - [-190.605062, -19.704191], - [-190.44707, -16.734064], - [-190.275708, -13.764747], - [-190.084941, -10.710919], - [-189.872644, -7.575789], - [-189.635981, -4.363529], - [-189.371218, -1.079531], - [-189.073447, 2.269246], - [-188.736205, 5.673775], - [-188.350917, 9.122233], - [-187.906073, 12.598902], - [-187.385964, 16.082418], - [-186.76866, 19.54281], - [-186.022585, 22.936144], - [-185.100144, 26.193732], - [-183.924098, 29.197049], - [-182.350337, 31.703957], - [-180, 33] + [-180, 33.900765], + [-177.595296, 32.581107], + [-175.988672, 30.028647], + [-174.791276, 26.970948], + [-173.854426, 23.65456], + [-173.098249, 20.200143], + [-172.473528, 16.677599], + [-171.947647, 13.131634], + [-171.497998, 9.592733], + [-171.10842, 6.082628], + [-170.767096, 2.617306], + [-170.465242, -0.791213], + [-170.196248, -4.13375], + [-169.955103, -7.403226], + [-169.737999, -10.594162], + [-169.542047, -13.702317], + [-169.365085, -16.724428], + [-169.200855, -19.747339], + [-169.04509, -22.858007], + [-168.899548, -26.053394], + [-168.766882, -29.329555], + [-168.651058, -32.681405], + [-168.558009, -36.102396], + [-168.496661, -39.58405], + [-168.480609, -43.11528], + [-168.530891, -46.681345], + [-168.680741, -50.262151], + [-168.983991, -53.829318], + [-169.530422, -57.340683], + [-170.474887, -60.728874], + [-172.094648, -63.873903], + [-174.908855, -66.521362], + [-180, -67.900765], + [-185.091145, -66.521362], + [-187.905352, -63.873903], + [-189.525113, -60.728874], + [-190.469578, -57.340683], + [-191.016009, -53.829318], + [-191.319259, -50.262151], + [-191.469109, -46.681345], + [-191.519391, -43.11528], + [-191.503339, -39.58405], + [-191.441991, -36.102396], + [-191.348942, -32.681405], + [-191.233118, -29.329555], + [-191.100452, -26.053394], + [-190.95491, -22.858007], + [-190.799145, -19.747339], + [-190.634915, -16.724428], + [-190.457953, -13.702317], + [-190.262001, -10.594162], + [-190.044897, -7.403226], + [-189.803752, -4.13375], + [-189.534758, -0.791213], + [-189.232904, 2.617306], + [-188.89158, 6.082628], + [-188.502002, 9.592733], + [-188.052353, 13.131634], + [-187.526472, 16.677599], + [-186.901751, 20.200143], + [-186.145574, 23.65456], + [-185.208724, 26.970948], + [-184.011328, 30.028647], + [-182.404704, 32.581107], + [-180, 33.900765] ] ] } diff --git a/packages/turf-ellipse/test/out/anti-meridian.json b/packages/turf-ellipse/test/out/anti-meridian.json index 68b1e8c35b..871faa995f 100644 --- a/packages/turf-ellipse/test/out/anti-meridian.json +++ b/packages/turf-ellipse/test/out/anti-meridian.json @@ -24,71 +24,71 @@ "type": "Polygon", "coordinates": [ [ - [-180, -16.55034], - [-180.045979, -16.5525], - [-180.091519, -16.55896], - [-180.136183, -16.569657], - [-180.179545, -16.58449], - [-180.221189, -16.603316], - [-180.260716, -16.625956], - [-180.297747, -16.652193], - [-180.331926, -16.681775], - [-180.362924, -16.714418], - [-180.390443, -16.749812], - [-180.414217, -16.787614], - [-180.434016, -16.827464], - [-180.449646, -16.868978], - [-180.460955, -16.911758], - [-180.467831, -16.955392], - [-180.470205, -16.999461], - [-180.468051, -17.04354], - [-180.461387, -17.087204], - [-180.450273, -17.130034], - [-180.434813, -17.171615], - [-180.415155, -17.211547], - [-180.391486, -17.249443], - [-180.364031, -17.284937], - [-180.333054, -17.317686], - [-180.298853, -17.347373], - [-180.261758, -17.373711], - [-180.222127, -17.396444], - [-180.180343, -17.415352], - [-180.13681, -17.430252], - [-180.091951, -17.440999], - [-180.046199, -17.44749], - [-180, -17.44966], - [-179.953801, -17.44749], - [-179.908049, -17.440999], - [-179.86319, -17.430252], - [-179.819657, -17.415352], - [-179.777873, -17.396444], - [-179.738242, -17.373711], - [-179.701147, -17.347373], - [-179.666946, -17.317686], - [-179.635969, -17.284937], - [-179.608514, -17.249443], - [-179.584845, -17.211547], - [-179.565187, -17.171615], - [-179.549727, -17.130034], - [-179.538613, -17.087204], - [-179.531949, -17.04354], - [-179.529795, -16.999461], - [-179.532169, -16.955392], - [-179.539045, -16.911758], - [-179.550354, -16.868978], - [-179.565984, -16.827464], - [-179.585783, -16.787614], - [-179.609557, -16.749812], - [-179.637076, -16.714418], - [-179.668074, -16.681775], - [-179.702253, -16.652193], - [-179.739284, -16.625956], - [-179.778811, -16.603316], - [-179.820455, -16.58449], - [-179.863817, -16.569657], - [-179.908481, -16.55896], - [-179.954021, -16.5525], - [-180, -16.55034] + [-180, -16.549978], + [-180.046016, -16.55214], + [-180.091592, -16.558605], + [-180.136293, -16.569311], + [-180.179689, -16.584156], + [-180.221366, -16.602997], + [-180.260925, -16.625655], + [-180.297986, -16.651913], + [-180.332192, -16.681519], + [-180.363216, -16.714189], + [-180.390757, -16.74961], + [-180.41455, -16.787443], + [-180.434364, -16.827325], + [-180.450007, -16.868872], + [-180.461325, -16.911686], + [-180.468207, -16.955356], + [-180.470583, -16.99946], + [-180.468427, -17.043574], + [-180.461758, -17.087274], + [-180.450635, -17.130138], + [-180.435163, -17.171753], + [-180.41549, -17.211716], + [-180.391801, -17.249643], + [-180.364324, -17.285166], + [-180.333322, -17.317941], + [-180.299094, -17.347652], + [-180.261969, -17.374011], + [-180.222306, -17.396762], + [-180.180488, -17.415686], + [-180.13692, -17.430598], + [-180.092025, -17.441354], + [-180.046237, -17.447849], + [-180, -17.450022], + [-179.953763, -17.447849], + [-179.907975, -17.441354], + [-179.86308, -17.430598], + [-179.819512, -17.415686], + [-179.777694, -17.396762], + [-179.738031, -17.374011], + [-179.700906, -17.347652], + [-179.666678, -17.317941], + [-179.635676, -17.285166], + [-179.608199, -17.249643], + [-179.58451, -17.211716], + [-179.564837, -17.171753], + [-179.549365, -17.130138], + [-179.538242, -17.087274], + [-179.531573, -17.043574], + [-179.529417, -16.99946], + [-179.531793, -16.955356], + [-179.538675, -16.911686], + [-179.549993, -16.868872], + [-179.565636, -16.827325], + [-179.58545, -16.787443], + [-179.609243, -16.74961], + [-179.636784, -16.714189], + [-179.667808, -16.681519], + [-179.702014, -16.651913], + [-179.739075, -16.625655], + [-179.778634, -16.602997], + [-179.820311, -16.584156], + [-179.863707, -16.569311], + [-179.908408, -16.558605], + [-179.953984, -16.55214], + [-180, -16.549978] ] ] } @@ -105,71 +105,71 @@ "type": "Polygon", "coordinates": [ [ - [-180.470205, -16.999461], - [-180.457964, -16.979142], - [-180.434333, -16.965124], - [-180.406011, -16.954269], - [-180.375269, -16.945497], - [-180.343224, -16.938267], - [-180.310525, -16.932253], - [-180.277591, -16.927239], - [-180.244707, -16.923072], - [-180.21208, -16.919634], - [-180.17986, -16.916835], - [-180.148164, -16.9146], - [-180.117078, -16.91287], - [-180.086671, -16.911592], - [-180.056997, -16.910724], - [-180.028096, -16.910227], - [-180, -16.910068], - [-179.971904, -16.910227], - [-179.943003, -16.910724], - [-179.913329, -16.911592], - [-179.882922, -16.91287], - [-179.851836, -16.9146], - [-179.82014, -16.916835], - [-179.78792, -16.919634], - [-179.755293, -16.923072], - [-179.722409, -16.927239], - [-179.689475, -16.932253], - [-179.656776, -16.938267], - [-179.624731, -16.945497], - [-179.593989, -16.954269], - [-179.565667, -16.965124], - [-179.542036, -16.979142], - [-179.529795, -16.999461], - [-179.541936, -17.019834], - [-179.565507, -17.033955], - [-179.593793, -17.044926], - [-179.624514, -17.053815], - [-179.656551, -17.061158], - [-179.689251, -17.067276], - [-179.722194, -17.072384], - [-179.755092, -17.076635], - [-179.787739, -17.080146], - [-179.81998, -17.083007], - [-179.851701, -17.085293], - [-179.882813, -17.087063], - [-179.913247, -17.088371], - [-179.942949, -17.08926], - [-179.971877, -17.089769], - [-180, -17.089932], - [-180.028123, -17.089769], - [-180.057051, -17.08926], - [-180.086753, -17.088371], - [-180.117187, -17.087063], - [-180.148299, -17.085293], - [-180.18002, -17.083007], - [-180.212261, -17.080146], - [-180.244908, -17.076635], - [-180.277806, -17.072384], - [-180.310749, -17.067276], - [-180.343449, -17.061158], - [-180.375486, -17.053815], - [-180.406207, -17.044926], - [-180.434493, -17.033955], - [-180.458064, -17.019834], - [-180.470205, -16.999461] + [-180.470868, -16.999459], + [-180.458609, -16.979112], + [-180.434945, -16.965075], + [-180.406583, -16.954204], + [-180.375798, -16.94542], + [-180.343707, -16.938179], + [-180.310963, -16.932157], + [-180.277982, -16.927137], + [-180.245052, -16.922964], + [-180.212378, -16.919521], + [-180.180114, -16.916717], + [-180.148372, -16.91448], + [-180.117243, -16.912747], + [-180.086793, -16.911467], + [-180.057077, -16.910598], + [-180.028135, -16.9101], + [-180, -16.909941], + [-179.971865, -16.9101], + [-179.942923, -16.910598], + [-179.913207, -16.911467], + [-179.882757, -16.912747], + [-179.851628, -16.91448], + [-179.819886, -16.916717], + [-179.787622, -16.919521], + [-179.754948, -16.922964], + [-179.722018, -16.927137], + [-179.689037, -16.932157], + [-179.656293, -16.938179], + [-179.624202, -16.94542], + [-179.593417, -16.954204], + [-179.565055, -16.965075], + [-179.541391, -16.979112], + [-179.529132, -16.999459], + [-179.541291, -17.019861], + [-179.564895, -17.034002], + [-179.59322, -17.044989], + [-179.623985, -17.05389], + [-179.656067, -17.061244], + [-179.688813, -17.067371], + [-179.721803, -17.072486], + [-179.754747, -17.076743], + [-179.787439, -17.080259], + [-179.819726, -17.083124], + [-179.851492, -17.085413], + [-179.882648, -17.087186], + [-179.913125, -17.088496], + [-179.942868, -17.089386], + [-179.971838, -17.089896], + [-180, -17.090059], + [-180.028162, -17.089896], + [-180.057132, -17.089386], + [-180.086875, -17.088496], + [-180.117352, -17.087186], + [-180.148508, -17.085413], + [-180.180274, -17.083124], + [-180.212561, -17.080259], + [-180.245253, -17.076743], + [-180.278197, -17.072486], + [-180.311187, -17.067371], + [-180.343933, -17.061244], + [-180.376015, -17.05389], + [-180.40678, -17.044989], + [-180.435105, -17.034002], + [-180.458709, -17.019861], + [-180.470868, -16.999459] ] ] } @@ -186,71 +186,71 @@ "type": "Polygon", "coordinates": [ [ - [-180, -16.55034], - [-179.978774, -16.561997], - [-179.964091, -16.584565], - [-179.952697, -16.61163], - [-179.943474, -16.641017], - [-179.935858, -16.671656], - [-179.929514, -16.702924], - [-179.924218, -16.734422], - [-179.91981, -16.765874], - [-179.916167, -16.797083], - [-179.913197, -16.827904], - [-179.910821, -16.858226], - [-179.908978, -16.887966], - [-179.907613, -16.917056], - [-179.90668, -16.945447], - [-179.90614, -16.973098], - [-179.905959, -16.999978], - [-179.906114, -17.026859], - [-179.906626, -17.054511], - [-179.907531, -17.082902], - [-179.908869, -17.111994], - [-179.910686, -17.141735], - [-179.913037, -17.172059], - [-179.915986, -17.202882], - [-179.919609, -17.234095], - [-179.924003, -17.26555], - [-179.92929, -17.297052], - [-179.935633, -17.328324], - [-179.943257, -17.358968], - [-179.952501, -17.388359], - [-179.963931, -17.415429], - [-179.978674, -17.438], - [-180, -17.44966], - [-180.021326, -17.438], - [-180.036069, -17.415429], - [-180.047499, -17.388359], - [-180.056743, -17.358968], - [-180.064367, -17.328324], - [-180.07071, -17.297052], - [-180.075997, -17.26555], - [-180.080391, -17.234095], - [-180.084014, -17.202882], - [-180.086963, -17.172059], - [-180.089314, -17.141735], - [-180.091131, -17.111994], - [-180.092469, -17.082902], - [-180.093374, -17.054511], - [-180.093886, -17.026859], - [-180.094041, -16.999978], - [-180.09386, -16.973098], - [-180.09332, -16.945447], - [-180.092387, -16.917056], - [-180.091022, -16.887966], - [-180.089179, -16.858226], - [-180.086803, -16.827904], - [-180.083833, -16.797083], - [-180.08019, -16.765874], - [-180.075782, -16.734422], - [-180.070486, -16.702924], - [-180.064142, -16.671656], - [-180.056526, -16.641017], - [-180.047303, -16.61163], - [-180.035909, -16.584565], - [-180.021226, -16.561997], - [-180, -16.55034] + [-180, -16.549706], + [-179.978744, -16.56138], + [-179.96404, -16.58398], + [-179.952631, -16.611083], + [-179.943394, -16.640511], + [-179.935768, -16.671193], + [-179.929415, -16.702505], + [-179.924112, -16.734048], + [-179.919697, -16.765544], + [-179.916049, -16.796797], + [-179.913074, -16.827662], + [-179.910696, -16.858027], + [-179.90885, -16.887808], + [-179.907482, -16.916939], + [-179.906549, -16.94537], + [-179.906008, -16.97306], + [-179.905826, -16.999978], + [-179.905981, -17.026897], + [-179.906494, -17.054588], + [-179.9074, -17.083019], + [-179.90874, -17.112152], + [-179.91056, -17.141934], + [-179.912914, -17.172301], + [-179.915867, -17.203168], + [-179.919495, -17.234425], + [-179.923896, -17.265924], + [-179.929191, -17.29747], + [-179.935542, -17.328787], + [-179.943177, -17.359474], + [-179.952434, -17.388906], + [-179.96388, -17.416014], + [-179.978644, -17.438618], + [-180, -17.450294], + [-180.021356, -17.438618], + [-180.03612, -17.416014], + [-180.047566, -17.388906], + [-180.056823, -17.359474], + [-180.064458, -17.328787], + [-180.070809, -17.29747], + [-180.076104, -17.265924], + [-180.080505, -17.234425], + [-180.084133, -17.203168], + [-180.087086, -17.172301], + [-180.08944, -17.141934], + [-180.09126, -17.112152], + [-180.0926, -17.083019], + [-180.093506, -17.054588], + [-180.094019, -17.026897], + [-180.094174, -16.999978], + [-180.093992, -16.97306], + [-180.093451, -16.94537], + [-180.092518, -16.916939], + [-180.09115, -16.887808], + [-180.089304, -16.858027], + [-180.086926, -16.827662], + [-180.083951, -16.796797], + [-180.080303, -16.765544], + [-180.075888, -16.734048], + [-180.070585, -16.702505], + [-180.064232, -16.671193], + [-180.056606, -16.640511], + [-180.047369, -16.611083], + [-180.03596, -16.58398], + [-180.021256, -16.56138], + [-180, -16.549706] ] ] } diff --git a/packages/turf-ellipse/test/out/northern-latitudes-degrees.json b/packages/turf-ellipse/test/out/northern-latitudes-degrees.json index 6f56b76363..5660e43ccd 100644 --- a/packages/turf-ellipse/test/out/northern-latitudes-degrees.json +++ b/packages/turf-ellipse/test/out/northern-latitudes-degrees.json @@ -25,71 +25,71 @@ "type": "Polygon", "coordinates": [ [ - [-94, 79], - [-96.55809, 78.965318], - [-99.049871, 78.862243], - [-101.414398, 78.693594], - [-103.60042, 78.46379], - [-105.568992, 78.178486], - [-107.294206, 77.844169], - [-108.762366, 77.467777], - [-109.970133, 77.056367], - [-110.922237, 76.616871], - [-111.629174, 76.15592], - [-112.105192, 75.679744], - [-112.366654, 75.194117], - [-112.430825, 74.704344], - [-112.315011, 74.215272], - [-112.035994, 73.731307], - [-111.609696, 73.256451], - [-111.051001, 72.794332], - [-110.373684, 72.348231], - [-109.59042, 71.92112], - [-108.712834, 71.51568], - [-107.751577, 71.134329], - [-106.71642, 70.779237], - [-105.616343, 70.452347], - [-104.459636, 70.155384], - [-103.253983, 69.889871], - [-102.006554, 69.657131], - [-100.72408, 69.458303], - [-99.412931, 69.294338], - [-98.079181, 69.166013], - [-96.728676, 69.073925], - [-95.367094, 69.018503], - [-94, 69], - [-92.632906, 69.018503], - [-91.271324, 69.073925], - [-89.920819, 69.166013], - [-88.587069, 69.294338], - [-87.27592, 69.458303], - [-85.993446, 69.657131], - [-84.746017, 69.889871], - [-83.540364, 70.155384], - [-82.383657, 70.452347], - [-81.28358, 70.779237], - [-80.248423, 71.134329], - [-79.287166, 71.51568], - [-78.40958, 71.92112], - [-77.626316, 72.348231], - [-76.948999, 72.794332], - [-76.390304, 73.256451], - [-75.964006, 73.731307], - [-75.684989, 74.215272], - [-75.569175, 74.704344], - [-75.633346, 75.194117], - [-75.894808, 75.679744], - [-76.370826, 76.15592], - [-77.077763, 76.616871], - [-78.029867, 77.056367], - [-79.237634, 77.467777], - [-80.705794, 77.844169], - [-82.431008, 78.178486], - [-84.39958, 78.46379], - [-86.585602, 78.693594], - [-88.950129, 78.862243], - [-91.44191, 78.965318], - [-94, 79] + [-94, 79.004019], + [-96.561055, 78.969297], + [-99.055665, 78.866103], + [-101.422766, 78.697263], + [-103.611023, 78.467204], + [-105.581437, 78.181593], + [-107.308089, 77.846927], + [-108.777294, 77.470156], + [-109.985748, 77.058347], + [-110.938222, 76.61844], + [-111.645263, 76.157075], + [-112.121162, 75.680485], + [-112.382326, 75.194451], + [-112.446058, 74.704282], + [-112.329693, 74.214825], + [-112.05004, 73.730491], + [-111.623043, 73.255282], + [-111.063599, 72.792827], + [-110.385499, 72.34641], + [-109.601426, 71.919002], + [-108.723014, 71.513286], + [-107.76092, 71.131678], + [-106.724917, 70.776351], + [-105.623991, 70.449248], + [-104.466432, 70.152094], + [-103.259927, 69.88641], + [-102.011645, 69.653523], + [-100.728321, 69.45457], + [-99.416321, 69.290502], + [-98.081722, 69.162097], + [-96.73037, 69.069952], + [-95.36794, 69.014495], + [-94, 68.995981], + [-92.63206, 69.014495], + [-91.26963, 69.069952], + [-89.918278, 69.162097], + [-88.583679, 69.290502], + [-87.271679, 69.45457], + [-85.988355, 69.653523], + [-84.740073, 69.88641], + [-83.533568, 70.152094], + [-82.376009, 70.449248], + [-81.275083, 70.776351], + [-80.23908, 71.131678], + [-79.276986, 71.513286], + [-78.398574, 71.919002], + [-77.614501, 72.34641], + [-76.936401, 72.792827], + [-76.376957, 73.255282], + [-75.94996, 73.730491], + [-75.670307, 74.214825], + [-75.553942, 74.704282], + [-75.617674, 75.194451], + [-75.878838, 75.680485], + [-76.354737, 76.157075], + [-77.061778, 76.61844], + [-78.014252, 77.058347], + [-79.222706, 77.470156], + [-80.691911, 77.846927], + [-82.418563, 78.181593], + [-84.388977, 78.467204], + [-86.577234, 78.697263], + [-88.944335, 78.866103], + [-91.438945, 78.969297], + [-94, 79.004019] ] ] } @@ -106,71 +106,71 @@ "type": "Polygon", "coordinates": [ [ - [-111.609696, 73.256451], - [-111.404311, 73.510243], - [-110.70689, 73.730954], - [-109.783251, 73.928702], - [-108.725348, 74.106339], - [-107.580194, 74.2652], - [-106.376848, 74.406176], - [-105.135467, 74.53002], - [-103.871136, 74.637455], - [-102.595732, 74.729222], - [-101.318919, 74.806086], - [-100.04873, 74.86884], - [-98.79192, 74.918302], - [-97.554199, 74.955305], - [-96.340385, 74.980693], - [-95.154529, 74.995312], - [-94, 75], - [-92.845471, 74.995312], - [-91.659615, 74.980693], - [-90.445801, 74.955305], - [-89.20808, 74.918302], - [-87.95127, 74.86884], - [-86.681081, 74.806086], - [-85.404268, 74.729222], - [-84.128864, 74.637455], - [-82.864533, 74.53002], - [-81.623152, 74.406176], - [-80.419806, 74.2652], - [-79.274652, 74.106339], - [-78.216749, 73.928702], - [-77.29311, 73.730954], - [-76.595689, 73.510243], - [-76.390304, 73.256451], - [-77.042091, 73.076913], - [-78.015528, 72.994911], - [-79.115088, 72.954647], - [-80.276835, 72.936876], - [-81.469995, 72.932154], - [-82.676747, 72.935073], - [-83.885546, 72.942272], - [-85.088332, 72.951565], - [-86.279178, 72.9615], - [-87.45357, 72.971111], - [-88.607982, 72.979764], - [-89.73962, 72.987065], - [-90.846251, 72.992792], - [-91.92609, 72.996848], - [-92.977713, 72.999229], - [-94, 73], - [-95.022287, 72.999229], - [-96.07391, 72.996848], - [-97.153749, 72.992792], - [-98.26038, 72.987065], - [-99.392018, 72.979764], - [-100.54643, 72.971111], - [-101.720822, 72.9615], - [-102.911668, 72.951565], - [-104.114454, 72.942272], - [-105.323253, 72.935073], - [-106.530005, 72.932154], - [-107.723165, 72.936876], - [-108.884912, 72.954647], - [-109.984472, 72.994911], - [-110.957909, 73.076913], - [-111.609696, 73.256451] + [-111.636428, 73.254109], + [-111.431134, 73.508334], + [-110.733008, 73.729487], + [-109.808256, 73.927664], + [-108.748967, 74.105705], + [-107.602225, 74.264942], + [-106.397133, 74.40626], + [-105.153886, 74.530411], + [-103.887596, 74.638118], + [-102.610166, 74.730121], + [-101.331281, 74.807184], + [-100.058997, 74.870102], + [-98.800085, 74.919695], + [-97.560272, 74.956796], + [-96.344392, 74.982252], + [-95.156508, 74.996909], + [-94, 75.00161], + [-92.843492, 74.996909], + [-91.655608, 74.982252], + [-90.439728, 74.956796], + [-89.199915, 74.919695], + [-87.941003, 74.870102], + [-86.668719, 74.807184], + [-85.389834, 74.730121], + [-84.112404, 74.638118], + [-82.846114, 74.530411], + [-81.602867, 74.40626], + [-80.397775, 74.264942], + [-79.251033, 74.105705], + [-78.191744, 73.927664], + [-77.266992, 73.729487], + [-76.568866, 73.508334], + [-76.363572, 73.254109], + [-77.016587, 73.074364], + [-77.991564, 72.992349], + [-79.092788, 72.952144], + [-80.256264, 72.934468], + [-81.45119, 72.929854], + [-82.659727, 72.932884], + [-83.870318, 72.94019], + [-85.074893, 72.949583], + [-86.267518, 72.959607], + [-87.44367, 72.969295], + [-88.599819, 72.978013], + [-89.733164, 72.985367], + [-90.841469, 72.991134], + [-91.922943, 72.995217], + [-92.976161, 72.997614], + [-94, 72.99839], + [-95.023839, 72.997614], + [-96.077057, 72.995217], + [-97.158531, 72.991134], + [-98.266836, 72.985367], + [-99.400181, 72.978013], + [-100.55633, 72.969295], + [-101.732482, 72.959607], + [-102.925107, 72.949583], + [-104.129682, 72.94019], + [-105.340273, 72.932884], + [-106.54881, 72.929854], + [-107.743736, 72.934468], + [-108.907212, 72.952144], + [-110.008436, 72.992349], + [-110.983413, 73.074364], + [-111.636428, 73.254109] ] ] } @@ -187,71 +187,71 @@ "type": "Polygon", "coordinates": [ [ - [-94, 79], - [-92.829533, 78.868122], - [-92.063446, 78.613133], - [-91.514439, 78.307836], - [-91.1101, 77.976934], - [-90.810522, 77.632522], - [-90.590161, 77.281607], - [-90.431305, 76.928659], - [-90.321068, 76.576722], - [-90.249767, 76.227955], - [-90.209956, 75.883941], - [-90.195813, 75.545863], - [-90.202719, 75.21462], - [-90.226974, 74.890901], - [-90.265581, 74.575235], - [-90.316097, 74.26803], - [-90.376515, 73.969595], - [-90.447416, 73.671357], - [-90.530789, 73.364764], - [-90.627066, 73.050162], - [-90.736781, 72.727995], - [-90.860599, 72.398831], - [-90.999361, 72.063398], - [-91.154149, 71.722628], - [-91.326376, 71.377739], - [-91.517927, 71.030336], - [-91.731383, 70.682588], - [-91.970405, 70.337519], - [-92.240431, 69.999537], - [-92.550102, 69.675491], - [-92.914615, 69.377145], - [-93.365745, 69.128445], - [-94, 69], - [-94.634255, 69.128445], - [-95.085385, 69.377145], - [-95.449898, 69.675491], - [-95.759569, 69.999537], - [-96.029595, 70.337519], - [-96.268617, 70.682588], - [-96.482073, 71.030336], - [-96.673624, 71.377739], - [-96.845851, 71.722628], - [-97.000639, 72.063398], - [-97.139401, 72.398831], - [-97.263219, 72.727995], - [-97.372934, 73.050162], - [-97.469211, 73.364764], - [-97.552584, 73.671357], - [-97.623485, 73.969595], - [-97.683903, 74.26803], - [-97.734419, 74.575235], - [-97.773026, 74.890901], - [-97.797281, 75.21462], - [-97.804187, 75.545863], - [-97.790044, 75.883941], - [-97.750233, 76.227955], - [-97.678932, 76.576722], - [-97.568695, 76.928659], - [-97.409839, 77.281607], - [-97.189478, 77.632522], - [-96.8899, 77.976934], - [-96.485561, 78.307836], - [-95.936554, 78.613133], - [-95.170467, 78.868122], - [-94, 79] + [-94, 79.007807], + [-92.826919, 78.875718], + [-92.059219, 78.620321], + [-91.509154, 78.314539], + [-91.104124, 77.983112], + [-90.80411, 77.638156], + [-90.583493, 77.286688], + [-90.424513, 76.933185], + [-90.314248, 76.580696], + [-90.242989, 76.231383], + [-90.203271, 75.88683], + [-90.189257, 75.548224], + [-90.196319, 75.216464], + [-90.220748, 74.89224], + [-90.259542, 74.576082], + [-90.310253, 74.268399], + [-90.370871, 73.969501], + [-90.441982, 73.670799], + [-90.525577, 73.363729], + [-90.62209, 73.048638], + [-90.732054, 72.725971], + [-90.856133, 72.396296], + [-90.99517, 72.060342], + [-91.150245, 71.719043], + [-91.322774, 71.373619], + [-91.514641, 71.025677], + [-91.728432, 70.67739], + [-91.967809, 70.331786], + [-92.238217, 69.99328], + [-92.548304, 69.668732], + [-92.913288, 69.369923], + [-93.364978, 69.120837], + [-94, 68.992193], + [-94.635022, 69.120837], + [-95.086712, 69.369923], + [-95.451696, 69.668732], + [-95.761783, 69.99328], + [-96.032191, 70.331786], + [-96.271568, 70.67739], + [-96.485359, 71.025677], + [-96.677226, 71.373619], + [-96.849755, 71.719043], + [-97.00483, 72.060342], + [-97.143867, 72.396296], + [-97.267946, 72.725971], + [-97.37791, 73.048638], + [-97.474423, 73.363729], + [-97.558018, 73.670799], + [-97.629129, 73.969501], + [-97.689747, 74.268399], + [-97.740458, 74.576082], + [-97.779252, 74.89224], + [-97.803681, 75.216464], + [-97.810743, 75.548224], + [-97.796729, 75.88683], + [-97.757011, 76.231383], + [-97.685752, 76.580696], + [-97.575487, 76.933185], + [-97.416507, 77.286688], + [-97.19589, 77.638156], + [-96.895876, 77.983112], + [-96.490846, 78.314539], + [-95.940781, 78.620321], + [-95.173081, 78.875718], + [-94, 79.007807] ] ] } diff --git a/packages/turf-ellipse/test/out/northern-latitudes.json b/packages/turf-ellipse/test/out/northern-latitudes.json index 135b4e6cd0..9f9f99a08e 100644 --- a/packages/turf-ellipse/test/out/northern-latitudes.json +++ b/packages/turf-ellipse/test/out/northern-latitudes.json @@ -25,135 +25,135 @@ "type": "Polygon", "coordinates": [ [ - [-94, 74.44966], - [-94.082298, 74.449103], - [-94.16438, 74.447434], - [-94.246033, 74.444657], - [-94.327042, 74.440779], - [-94.407197, 74.435811], - [-94.48629, 74.429765], - [-94.564115, 74.422658], - [-94.640472, 74.414507], - [-94.715164, 74.405334], - [-94.788, 74.395163], - [-94.858795, 74.38402], - [-94.927372, 74.371934], - [-94.993557, 74.358937], - [-95.057187, 74.345061], - [-95.118104, 74.330342], - [-95.176161, 74.314819], - [-95.231218, 74.29853], - [-95.283143, 74.281518], - [-95.331815, 74.263825], - [-95.377123, 74.245497], - [-95.418962, 74.226579], - [-95.45724, 74.207119], - [-95.491875, 74.187166], - [-95.522794, 74.166769], - [-95.549933, 74.14598], - [-95.573241, 74.124849], - [-95.592674, 74.10343], - [-95.608201, 74.081774], - [-95.619798, 74.059934], - [-95.627454, 74.037964], - [-95.631166, 74.015918], - [-95.63094, 73.993848], - [-95.626793, 73.971807], - [-95.61875, 73.949849], - [-95.606847, 73.928026], - [-95.591127, 73.90639], - [-95.571641, 73.884992], - [-95.548451, 73.863882], - [-95.521625, 73.843111], - [-95.491239, 73.822727], - [-95.457378, 73.802777], - [-95.420132, 73.783309], - [-95.379599, 73.764366], - [-95.335884, 73.745994], - [-95.289098, 73.728234], - [-95.239358, 73.711126], - [-95.186787, 73.694711], - [-95.131512, 73.679026], - [-95.073666, 73.664105], - [-95.013388, 73.649984], - [-94.95082, 73.636694], - [-94.886109, 73.624265], - [-94.819404, 73.612726], - [-94.750859, 73.602101], - [-94.680632, 73.592415], - [-94.608882, 73.58369], - [-94.535773, 73.575945], - [-94.461468, 73.569197], - [-94.386135, 73.563462], - [-94.309943, 73.558752], - [-94.233062, 73.555078], - [-94.155663, 73.552448], - [-94.077918, 73.550867], - [-94, 73.55034], - [-93.922082, 73.550867], - [-93.844337, 73.552448], - [-93.766938, 73.555078], - [-93.690057, 73.558752], - [-93.613865, 73.563462], - [-93.538532, 73.569197], - [-93.464227, 73.575945], - [-93.391118, 73.58369], - [-93.319368, 73.592415], - [-93.249141, 73.602101], - [-93.180596, 73.612726], - [-93.113891, 73.624265], - [-93.04918, 73.636694], - [-92.986612, 73.649984], - [-92.926334, 73.664105], - [-92.868488, 73.679026], - [-92.813213, 73.694711], - [-92.760642, 73.711126], - [-92.710902, 73.728234], - [-92.664116, 73.745994], - [-92.620401, 73.764366], - [-92.579868, 73.783309], - [-92.542622, 73.802777], - [-92.508761, 73.822727], - [-92.478375, 73.843111], - [-92.451549, 73.863882], - [-92.428359, 73.884992], - [-92.408873, 73.90639], - [-92.393153, 73.928026], - [-92.38125, 73.949849], - [-92.373207, 73.971807], - [-92.36906, 73.993848], - [-92.368834, 74.015918], - [-92.372546, 74.037964], - [-92.380202, 74.059934], - [-92.391799, 74.081774], - [-92.407326, 74.10343], - [-92.426759, 74.124849], - [-92.450067, 74.14598], - [-92.477206, 74.166769], - [-92.508125, 74.187166], - [-92.54276, 74.207119], - [-92.581038, 74.226579], - [-92.622877, 74.245497], - [-92.668185, 74.263825], - [-92.716857, 74.281518], - [-92.768782, 74.29853], - [-92.823839, 74.314819], - [-92.881896, 74.330342], - [-92.942813, 74.345061], - [-93.006443, 74.358937], - [-93.072628, 74.371934], - [-93.141205, 74.38402], - [-93.212, 74.395163], - [-93.284836, 74.405334], - [-93.359528, 74.414507], - [-93.435885, 74.422658], - [-93.51371, 74.429765], - [-93.592803, 74.435811], - [-93.672958, 74.440779], - [-93.753967, 74.444657], - [-93.83562, 74.447434], - [-93.917702, 74.449103], - [-94, 74.44966] + [-94, 74.44975], + [-94.082315, 74.449193], + [-94.164414, 74.447524], + [-94.246084, 74.444746], + [-94.32711, 74.440868], + [-94.407281, 74.435898], + [-94.48639, 74.429851], + [-94.564231, 74.422742], + [-94.640604, 74.41459], + [-94.715311, 74.405415], + [-94.788162, 74.395242], + [-94.858972, 74.384097], + [-94.927562, 74.372008], + [-94.993761, 74.359008], + [-95.057403, 74.345129], + [-95.118333, 74.330408], + [-95.176402, 74.314882], + [-95.231469, 74.29859], + [-95.283405, 74.281574], + [-95.332087, 74.263877], + [-95.377403, 74.245545], + [-95.419251, 74.226623], + [-95.457537, 74.207159], + [-95.492178, 74.187202], + [-95.523103, 74.166801], + [-95.550247, 74.146008], + [-95.573559, 74.124873], + [-95.592996, 74.103449], + [-95.608526, 74.081789], + [-95.620125, 74.059945], + [-95.627782, 74.037971], + [-95.631494, 74.01592], + [-95.631267, 73.993845], + [-95.627119, 73.9718], + [-95.619074, 73.949838], + [-95.607168, 73.92801], + [-95.591444, 73.90637], + [-95.571955, 73.884967], + [-95.54876, 73.863854], + [-95.521928, 73.843078], + [-95.491536, 73.82269], + [-95.457667, 73.802737], + [-95.420413, 73.783264], + [-95.379872, 73.764318], + [-95.336148, 73.745942], + [-95.289353, 73.728178], + [-95.239603, 73.711068], + [-95.187021, 73.694649], + [-95.131734, 73.678961], + [-95.073878, 73.664037], + [-95.013588, 73.649914], + [-94.951007, 73.636621], + [-94.886283, 73.62419], + [-94.819564, 73.612648], + [-94.751006, 73.602021], + [-94.680765, 73.592333], + [-94.609002, 73.583606], + [-94.535878, 73.575859], + [-94.461558, 73.56911], + [-94.386211, 73.563374], + [-94.310004, 73.558663], + [-94.233108, 73.554988], + [-94.155693, 73.552358], + [-94.077933, 73.550777], + [-94, 73.55025], + [-93.922067, 73.550777], + [-93.844307, 73.552358], + [-93.766892, 73.554988], + [-93.689996, 73.558663], + [-93.613789, 73.563374], + [-93.538442, 73.56911], + [-93.464122, 73.575859], + [-93.390998, 73.583606], + [-93.319235, 73.592333], + [-93.248994, 73.602021], + [-93.180436, 73.612648], + [-93.113717, 73.62419], + [-93.048993, 73.636621], + [-92.986412, 73.649914], + [-92.926122, 73.664037], + [-92.868266, 73.678961], + [-92.812979, 73.694649], + [-92.760397, 73.711068], + [-92.710647, 73.728178], + [-92.663852, 73.745942], + [-92.620128, 73.764318], + [-92.579587, 73.783264], + [-92.542333, 73.802737], + [-92.508464, 73.82269], + [-92.478072, 73.843078], + [-92.45124, 73.863854], + [-92.428045, 73.884967], + [-92.408556, 73.90637], + [-92.392832, 73.92801], + [-92.380926, 73.949838], + [-92.372881, 73.9718], + [-92.368733, 73.993845], + [-92.368506, 74.01592], + [-92.372218, 74.037971], + [-92.379875, 74.059945], + [-92.391474, 74.081789], + [-92.407004, 74.103449], + [-92.426441, 74.124873], + [-92.449753, 74.146008], + [-92.476897, 74.166801], + [-92.507822, 74.187202], + [-92.542463, 74.207159], + [-92.580749, 74.226623], + [-92.622597, 74.245545], + [-92.667913, 74.263877], + [-92.716595, 74.281574], + [-92.768531, 74.29859], + [-92.823598, 74.314882], + [-92.881667, 74.330408], + [-92.942597, 74.345129], + [-93.006239, 74.359008], + [-93.072438, 74.372008], + [-93.141028, 74.384097], + [-93.211838, 74.395242], + [-93.284689, 74.405415], + [-93.359396, 74.41459], + [-93.435769, 74.422742], + [-93.51361, 74.429851], + [-93.592719, 74.435898], + [-93.67289, 74.440868], + [-93.753916, 74.444746], + [-93.835586, 74.447524], + [-93.917685, 74.449193], + [-94, 74.44975] ] ] } @@ -170,135 +170,135 @@ "type": "Polygon", "coordinates": [ [ - [-95.63094, 73.993848], - [-95.618974, 74.005314], - [-95.590643, 74.014501], - [-95.553238, 74.022313], - [-95.510009, 74.029153], - [-95.462755, 74.035244], - [-95.412603, 74.040726], - [-95.360317, 74.045697], - [-95.306446, 74.050225], - [-95.2514, 74.054363], - [-95.195495, 74.058153], - [-95.138982, 74.061628], - [-95.082063, 74.064815], - [-95.024904, 74.067738], - [-94.967645, 74.070417], - [-94.910401, 74.072868], - [-94.853272, 74.075106], - [-94.796343, 74.077145], - [-94.739687, 74.078997], - [-94.683367, 74.080672], - [-94.62744, 74.082181], - [-94.571954, 74.083531], - [-94.516951, 74.084732], - [-94.462469, 74.08579], - [-94.408542, 74.086713], - [-94.3552, 74.087507], - [-94.302467, 74.088179], - [-94.250367, 74.088734], - [-94.198921, 74.089177], - [-94.148146, 74.089514], - [-94.098058, 74.089749], - [-94.048672, 74.089887], - [-94, 74.089932], - [-93.951328, 74.089887], - [-93.901942, 74.089749], - [-93.851854, 74.089514], - [-93.801079, 74.089177], - [-93.749633, 74.088734], - [-93.697533, 74.088179], - [-93.6448, 74.087507], - [-93.591458, 74.086713], - [-93.537531, 74.08579], - [-93.483049, 74.084732], - [-93.428046, 74.083531], - [-93.37256, 74.082181], - [-93.316633, 74.080672], - [-93.260313, 74.078997], - [-93.203657, 74.077145], - [-93.146728, 74.075106], - [-93.089599, 74.072868], - [-93.032355, 74.070417], - [-92.975096, 74.067738], - [-92.917937, 74.064815], - [-92.861018, 74.061628], - [-92.804505, 74.058153], - [-92.7486, 74.054363], - [-92.693554, 74.050225], - [-92.639683, 74.045697], - [-92.587397, 74.040726], - [-92.537245, 74.035244], - [-92.489991, 74.029153], - [-92.446762, 74.022313], - [-92.409357, 74.014501], - [-92.381026, 74.005314], - [-92.36906, 73.993848], - [-92.383264, 73.982578], - [-92.41329, 73.973824], - [-92.452023, 73.966565], - [-92.496301, 73.960344], - [-92.544379, 73.954908], - [-92.595167, 73.950095], - [-92.647929, 73.945796], - [-92.702136, 73.941933], - [-92.757398, 73.938445], - [-92.813412, 73.935286], - [-92.86994, 73.932419], - [-92.926792, 73.929814], - [-92.98381, 73.927445], - [-93.040864, 73.925291], - [-93.097847, 73.923334], - [-93.154665, 73.921558], - [-93.21124, 73.91995], - [-93.267504, 73.918497], - [-93.323399, 73.91719], - [-93.378874, 73.916017], - [-93.433884, 73.914972], - [-93.488392, 73.914045], - [-93.542363, 73.913231], - [-93.595766, 73.912523], - [-93.648577, 73.911915], - [-93.70077, 73.911402], - [-93.752327, 73.910979], - [-93.803229, 73.910642], - [-93.853461, 73.910386], - [-93.903008, 73.910207], - [-93.951857, 73.910102], - [-94, 73.910068], - [-94.048143, 73.910102], - [-94.096992, 73.910207], - [-94.146539, 73.910386], - [-94.196771, 73.910642], - [-94.247673, 73.910979], - [-94.29923, 73.911402], - [-94.351423, 73.911915], - [-94.404234, 73.912523], - [-94.457637, 73.913231], - [-94.511608, 73.914045], - [-94.566116, 73.914972], - [-94.621126, 73.916017], - [-94.676601, 73.91719], - [-94.732496, 73.918497], - [-94.78876, 73.91995], - [-94.845335, 73.921558], - [-94.902153, 73.923334], - [-94.959136, 73.925291], - [-95.01619, 73.927445], - [-95.073208, 73.929814], - [-95.13006, 73.932419], - [-95.186588, 73.935286], - [-95.242602, 73.938445], - [-95.297864, 73.941933], - [-95.352071, 73.945796], - [-95.404833, 73.950095], - [-95.455621, 73.954908], - [-95.503699, 73.960344], - [-95.547977, 73.966565], - [-95.58671, 73.973824], - [-95.616736, 73.982578], - [-95.63094, 73.993848] + [-95.631527, 73.993843], + [-95.619557, 74.005314], + [-95.591216, 74.014504], + [-95.553798, 74.022319], + [-95.510553, 74.029161], + [-95.463283, 74.035254], + [-95.413113, 74.040739], + [-95.360808, 74.045712], + [-95.306918, 74.050241], + [-95.251852, 74.054381], + [-95.195927, 74.058173], + [-95.139393, 74.061649], + [-95.082454, 74.064838], + [-95.025275, 74.067762], + [-94.967995, 74.070441], + [-94.910731, 74.072893], + [-94.853581, 74.075132], + [-94.796631, 74.077172], + [-94.739954, 74.079025], + [-94.683614, 74.080701], + [-94.627667, 74.08221], + [-94.57216, 74.083561], + [-94.517138, 74.084762], + [-94.462637, 74.085821], + [-94.40869, 74.086744], + [-94.355328, 74.087539], + [-94.302576, 74.088211], + [-94.250458, 74.088766], + [-94.198993, 74.089209], + [-94.148199, 74.089546], + [-94.098094, 74.089781], + [-94.04869, 74.089919], + [-94, 74.089964], + [-93.95131, 74.089919], + [-93.901906, 74.089781], + [-93.851801, 74.089546], + [-93.801007, 74.089209], + [-93.749542, 74.088766], + [-93.697424, 74.088211], + [-93.644672, 74.087539], + [-93.59131, 74.086744], + [-93.537363, 74.085821], + [-93.482862, 74.084762], + [-93.42784, 74.083561], + [-93.372333, 74.08221], + [-93.316386, 74.080701], + [-93.260046, 74.079025], + [-93.203369, 74.077172], + [-93.146419, 74.075132], + [-93.089269, 74.072893], + [-93.032005, 74.070441], + [-92.974725, 74.067762], + [-92.917546, 74.064838], + [-92.860607, 74.061649], + [-92.804073, 74.058173], + [-92.748148, 74.054381], + [-92.693082, 74.050241], + [-92.639192, 74.045712], + [-92.586887, 74.040739], + [-92.536717, 74.035254], + [-92.489447, 74.029161], + [-92.446202, 74.022319], + [-92.408784, 74.014504], + [-92.380443, 74.005314], + [-92.368473, 73.993843], + [-92.382683, 73.98257], + [-92.41272, 73.973813], + [-92.451467, 73.966551], + [-92.495761, 73.960328], + [-92.543857, 73.95489], + [-92.594663, 73.950075], + [-92.647443, 73.945775], + [-92.701671, 73.94191], + [-92.756952, 73.938421], + [-92.812986, 73.935261], + [-92.869535, 73.932394], + [-92.926407, 73.929787], + [-92.983446, 73.927418], + [-93.040521, 73.925263], + [-93.097524, 73.923306], + [-93.154362, 73.921529], + [-93.210957, 73.919921], + [-93.267242, 73.918468], + [-93.323157, 73.917159], + [-93.378651, 73.915987], + [-93.433682, 73.914941], + [-93.488209, 73.914014], + [-93.542199, 73.9132], + [-93.595621, 73.912492], + [-93.648451, 73.911884], + [-93.700663, 73.91137], + [-93.752239, 73.910947], + [-93.803159, 73.91061], + [-93.853408, 73.910353], + [-93.902973, 73.910175], + [-93.95184, 73.91007], + [-94, 73.910036], + [-94.04816, 73.91007], + [-94.097027, 73.910175], + [-94.146592, 73.910353], + [-94.196841, 73.91061], + [-94.247761, 73.910947], + [-94.299337, 73.91137], + [-94.351549, 73.911884], + [-94.404379, 73.912492], + [-94.457801, 73.9132], + [-94.511791, 73.914014], + [-94.566318, 73.914941], + [-94.621349, 73.915987], + [-94.676843, 73.917159], + [-94.732758, 73.918468], + [-94.789043, 73.919921], + [-94.845638, 73.921529], + [-94.902476, 73.923306], + [-94.959479, 73.925263], + [-95.016554, 73.927418], + [-95.073593, 73.929787], + [-95.130465, 73.932394], + [-95.187014, 73.935261], + [-95.243048, 73.938421], + [-95.298329, 73.94191], + [-95.352557, 73.945775], + [-95.405337, 73.950075], + [-95.456143, 73.95489], + [-95.504239, 73.960328], + [-95.548533, 73.966551], + [-95.58728, 73.973813], + [-95.617317, 73.98257], + [-95.631527, 73.993843] ] ] } @@ -315,135 +315,135 @@ "type": "Polygon", "coordinates": [ [ - [-94, 74.44966], - [-93.95759, 74.446047], - [-93.924163, 74.437989], - [-93.896135, 74.427476], - [-93.871901, 74.415395], - [-93.850567, 74.402234], - [-93.831566, 74.3883], - [-93.814511, 74.373801], - [-93.799121, 74.358884], - [-93.785183, 74.343661], - [-93.772529, 74.328217], - [-93.761024, 74.312619], - [-93.750558, 74.296922], - [-93.741037, 74.281171], - [-93.732384, 74.265401], - [-93.724528, 74.249645], - [-93.717412, 74.233928], - [-93.710983, 74.218274], - [-93.705195, 74.202701], - [-93.700005, 74.187227], - [-93.695378, 74.171865], - [-93.691278, 74.156629], - [-93.687675, 74.141531], - [-93.684541, 74.126578], - [-93.68185, 74.111782], - [-93.679578, 74.097148], - [-93.677703, 74.082684], - [-93.676204, 74.068396], - [-93.675063, 74.054289], - [-93.674262, 74.040367], - [-93.673784, 74.026635], - [-93.673612, 74.013096], - [-93.673734, 73.999754], - [-93.674142, 73.986412], - [-93.674849, 73.972874], - [-93.675868, 73.959145], - [-93.677213, 73.945226], - [-93.678898, 73.931123], - [-93.68094, 73.91684], - [-93.683354, 73.902383], - [-93.686158, 73.887756], - [-93.689373, 73.872968], - [-93.693018, 73.858026], - [-93.697116, 73.842938], - [-93.701692, 73.827715], - [-93.706773, 73.812367], - [-93.712388, 73.796907], - [-93.718569, 73.78135], - [-93.725353, 73.765713], - [-93.73278, 73.750015], - [-93.740897, 73.734278], - [-93.749757, 73.71853], - [-93.759418, 73.7028], - [-93.769952, 73.687126], - [-93.781443, 73.671553], - [-93.793988, 73.656134], - [-93.807712, 73.640937], - [-93.822766, 73.626047], - [-93.839345, 73.611574], - [-93.85771, 73.597668], - [-93.878219, 73.584533], - [-93.901403, 73.572476], - [-93.928101, 73.561986], - [-93.959832, 73.553946], - [-94, 73.55034], - [-94.040168, 73.553946], - [-94.071899, 73.561986], - [-94.098597, 73.572476], - [-94.121781, 73.584533], - [-94.14229, 73.597668], - [-94.160655, 73.611574], - [-94.177234, 73.626047], - [-94.192288, 73.640937], - [-94.206012, 73.656134], - [-94.218557, 73.671553], - [-94.230048, 73.687126], - [-94.240582, 73.7028], - [-94.250243, 73.71853], - [-94.259103, 73.734278], - [-94.26722, 73.750015], - [-94.274647, 73.765713], - [-94.281431, 73.78135], - [-94.287612, 73.796907], - [-94.293227, 73.812367], - [-94.298308, 73.827715], - [-94.302884, 73.842938], - [-94.306982, 73.858026], - [-94.310627, 73.872968], - [-94.313842, 73.887756], - [-94.316646, 73.902383], - [-94.31906, 73.91684], - [-94.321102, 73.931123], - [-94.322787, 73.945226], - [-94.324132, 73.959145], - [-94.325151, 73.972874], - [-94.325858, 73.986412], - [-94.326266, 73.999754], - [-94.326388, 74.013096], - [-94.326216, 74.026635], - [-94.325738, 74.040367], - [-94.324937, 74.054289], - [-94.323796, 74.068396], - [-94.322297, 74.082684], - [-94.320422, 74.097148], - [-94.31815, 74.111782], - [-94.315459, 74.126578], - [-94.312325, 74.141531], - [-94.308722, 74.156629], - [-94.304622, 74.171865], - [-94.299995, 74.187227], - [-94.294805, 74.202701], - [-94.289017, 74.218274], - [-94.282588, 74.233928], - [-94.275472, 74.249645], - [-94.267616, 74.265401], - [-94.258963, 74.281171], - [-94.249442, 74.296922], - [-94.238976, 74.312619], - [-94.227471, 74.328217], - [-94.214817, 74.343661], - [-94.200879, 74.358884], - [-94.185489, 74.373801], - [-94.168434, 74.3883], - [-94.149433, 74.402234], - [-94.128099, 74.415395], - [-94.103865, 74.427476], - [-94.075837, 74.437989], - [-94.04241, 74.446047], - [-94, 74.44966] + [-94, 74.449822], + [-93.957574, 74.446207], + [-93.924135, 74.438146], + [-93.896096, 74.42763], + [-93.871854, 74.415544], + [-93.850511, 74.402379], + [-93.831504, 74.38844], + [-93.814443, 74.373935], + [-93.799048, 74.359013], + [-93.785104, 74.343785], + [-93.772445, 74.328335], + [-93.760936, 74.312732], + [-93.750466, 74.297029], + [-93.740942, 74.281272], + [-93.732286, 74.265497], + [-93.724428, 74.249735], + [-93.717309, 74.234012], + [-93.710878, 74.218352], + [-93.705087, 74.202774], + [-93.699896, 74.187294], + [-93.695267, 74.171927], + [-93.691165, 74.156686], + [-93.687561, 74.141581], + [-93.684426, 74.126624], + [-93.681734, 74.111822], + [-93.679462, 74.097183], + [-93.677586, 74.082714], + [-93.676087, 74.068421], + [-93.674946, 74.054308], + [-93.674144, 74.040382], + [-93.673666, 74.026645], + [-93.673495, 74.013101], + [-93.673616, 73.999754], + [-93.674025, 73.986407], + [-93.674732, 73.972864], + [-93.675752, 73.95913], + [-93.677097, 73.945206], + [-93.678783, 73.931098], + [-93.680825, 73.91681], + [-93.68324, 73.902347], + [-93.686046, 73.887716], + [-93.689262, 73.872923], + [-93.692908, 73.857975], + [-93.697008, 73.842882], + [-93.701586, 73.827653], + [-93.706669, 73.812299], + [-93.712285, 73.796834], + [-93.718469, 73.781271], + [-93.725255, 73.765628], + [-93.732686, 73.749925], + [-93.740806, 73.734182], + [-93.749668, 73.718428], + [-93.759333, 73.702693], + [-93.769871, 73.687014], + [-93.781365, 73.671435], + [-93.793916, 73.65601], + [-93.807644, 73.640808], + [-93.822703, 73.625912], + [-93.839289, 73.611435], + [-93.85766, 73.597523], + [-93.878177, 73.584383], + [-93.901368, 73.572323], + [-93.928076, 73.561829], + [-93.959818, 73.553785], + [-94, 73.550178], + [-94.040182, 73.553785], + [-94.071924, 73.561829], + [-94.098632, 73.572323], + [-94.121823, 73.584383], + [-94.14234, 73.597523], + [-94.160711, 73.611435], + [-94.177297, 73.625912], + [-94.192356, 73.640808], + [-94.206084, 73.65601], + [-94.218635, 73.671435], + [-94.230129, 73.687014], + [-94.240667, 73.702693], + [-94.250332, 73.718428], + [-94.259194, 73.734182], + [-94.267314, 73.749925], + [-94.274745, 73.765628], + [-94.281531, 73.781271], + [-94.287715, 73.796834], + [-94.293331, 73.812299], + [-94.298414, 73.827653], + [-94.302992, 73.842882], + [-94.307092, 73.857975], + [-94.310738, 73.872923], + [-94.313954, 73.887716], + [-94.31676, 73.902347], + [-94.319175, 73.91681], + [-94.321217, 73.931098], + [-94.322903, 73.945206], + [-94.324248, 73.95913], + [-94.325268, 73.972864], + [-94.325975, 73.986407], + [-94.326384, 73.999754], + [-94.326505, 74.013101], + [-94.326334, 74.026645], + [-94.325856, 74.040382], + [-94.325054, 74.054308], + [-94.323913, 74.068421], + [-94.322414, 74.082714], + [-94.320538, 74.097183], + [-94.318266, 74.111822], + [-94.315574, 74.126624], + [-94.312439, 74.141581], + [-94.308835, 74.156686], + [-94.304733, 74.171927], + [-94.300104, 74.187294], + [-94.294913, 74.202774], + [-94.289122, 74.218352], + [-94.282691, 74.234012], + [-94.275572, 74.249735], + [-94.267714, 74.265497], + [-94.259058, 74.281272], + [-94.249534, 74.297029], + [-94.239064, 74.312732], + [-94.227555, 74.328335], + [-94.214896, 74.343785], + [-94.200952, 74.359013], + [-94.185557, 74.373935], + [-94.168496, 74.38844], + [-94.149489, 74.402379], + [-94.128146, 74.415544], + [-94.103904, 74.42763], + [-94.075865, 74.438146], + [-94.042426, 74.446207], + [-94, 74.449822] ] ] } diff --git a/packages/turf-ellipse/test/out/rotation-degrees.json b/packages/turf-ellipse/test/out/rotation-degrees.json index f8e32d8464..0bd7f2f788 100644 --- a/packages/turf-ellipse/test/out/rotation-degrees.json +++ b/packages/turf-ellipse/test/out/rotation-degrees.json @@ -26,71 +26,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 40.855833], - [-74.013699, 40.85523], - [-74.029741, 40.853427], - [-74.04547, 40.850441], - [-74.060735, 40.846301], - [-74.075388, 40.841047], - [-74.089287, 40.83473], - [-74.102298, 40.827412], - [-74.114296, 40.819163], - [-74.125164, 40.810062], - [-74.134798, 40.800198], - [-74.143106, 40.789666], - [-74.150008, 40.778568], - [-74.155438, 40.767011], - [-74.159344, 40.755106], - [-74.161691, 40.742969], - [-74.162455, 40.730716], - [-74.16163, 40.718465], - [-74.159226, 40.706334], - [-74.155266, 40.69444], - [-74.149789, 40.682897], - [-74.142848, 40.671817], - [-74.134512, 40.661306], - [-74.12486, 40.651464], - [-74.113986, 40.642386], - [-74.101995, 40.63416], - [-74.089001, 40.626863], - [-74.075131, 40.620567], - [-74.060516, 40.615331], - [-74.045298, 40.611206], - [-74.029622, 40.60823], - [-74.013638, 40.606434], - [-73.9975, 40.605833], - [-73.981362, 40.606434], - [-73.965378, 40.60823], - [-73.949702, 40.611206], - [-73.934484, 40.615331], - [-73.919869, 40.620567], - [-73.905999, 40.626863], - [-73.893005, 40.63416], - [-73.881014, 40.642386], - [-73.87014, 40.651464], - [-73.860488, 40.661306], - [-73.852152, 40.671817], - [-73.845211, 40.682897], - [-73.839734, 40.69444], - [-73.835774, 40.706334], - [-73.83337, 40.718465], - [-73.832545, 40.730716], - [-73.833309, 40.742969], - [-73.835656, 40.755106], - [-73.839562, 40.767011], - [-73.844992, 40.778568], - [-73.851894, 40.789666], - [-73.860202, 40.800198], - [-73.869836, 40.810062], - [-73.880704, 40.819163], - [-73.892702, 40.827412], - [-73.905713, 40.83473], - [-73.919612, 40.841047], - [-73.934265, 40.846301], - [-73.94953, 40.850441], - [-73.965259, 40.853427], - [-73.981301, 40.85523], - [-73.9975, 40.855833] + [-73.9975, 40.855933], + [-74.013712, 40.85533], + [-74.029766, 40.853525], + [-74.045509, 40.850537], + [-74.060786, 40.846393], + [-74.075451, 40.841136], + [-74.089361, 40.834814], + [-74.102383, 40.82749], + [-74.11439, 40.819233], + [-74.125267, 40.810126], + [-74.134909, 40.800254], + [-74.143223, 40.789713], + [-74.150131, 40.778606], + [-74.155565, 40.76704], + [-74.159475, 40.755126], + [-74.161823, 40.742978], + [-74.162587, 40.730715], + [-74.161762, 40.718455], + [-74.159356, 40.706314], + [-74.155392, 40.694411], + [-74.149911, 40.682859], + [-74.142965, 40.67177], + [-74.134622, 40.66125], + [-74.124962, 40.6514], + [-74.114079, 40.642315], + [-74.102078, 40.634082], + [-74.089075, 40.62678], + [-74.075193, 40.620478], + [-74.060567, 40.615238], + [-74.045336, 40.611109], + [-74.029648, 40.608132], + [-74.013651, 40.606334], + [-73.9975, 40.605733], + [-73.981349, 40.606334], + [-73.965352, 40.608132], + [-73.949664, 40.611109], + [-73.934433, 40.615238], + [-73.919807, 40.620478], + [-73.905925, 40.62678], + [-73.892922, 40.634082], + [-73.880921, 40.642315], + [-73.870038, 40.6514], + [-73.860378, 40.66125], + [-73.852035, 40.67177], + [-73.845089, 40.682859], + [-73.839608, 40.694411], + [-73.835644, 40.706314], + [-73.833238, 40.718455], + [-73.832413, 40.730715], + [-73.833177, 40.742978], + [-73.835525, 40.755126], + [-73.839435, 40.76704], + [-73.844869, 40.778606], + [-73.851777, 40.789713], + [-73.860091, 40.800254], + [-73.869733, 40.810126], + [-73.88061, 40.819233], + [-73.892617, 40.82749], + [-73.905639, 40.834814], + [-73.919549, 40.841136], + [-73.934214, 40.846393], + [-73.949491, 40.850537], + [-73.965234, 40.853525], + [-73.981288, 40.85533], + [-73.9975, 40.855933] ] ] } @@ -107,71 +107,71 @@ "type": "Polygon", "coordinates": [ [ - [-74.140489, 40.793245], - [-74.133053, 40.796531], - [-74.123293, 40.796793], - [-74.11268, 40.795669], - [-74.10171, 40.79372], - [-74.090624, 40.791225], - [-74.079564, 40.788347], - [-74.068615, 40.785194], - [-74.057839, 40.781842], - [-74.047275, 40.778345], - [-74.036954, 40.774747], - [-74.026898, 40.771079], - [-74.017122, 40.767369], - [-74.007637, 40.763638], - [-73.998451, 40.759903], - [-73.989571, 40.756181], - [-73.980999, 40.752482], - [-73.972487, 40.748706], - [-73.963795, 40.744739], - [-73.954937, 40.740579], - [-73.945934, 40.73622], - [-73.93681, 40.731661], - [-73.927596, 40.726897], - [-73.91833, 40.721925], - [-73.909059, 40.716744], - [-73.899849, 40.711352], - [-73.890781, 40.705747], - [-73.881973, 40.699932], - [-73.87359, 40.69391], - [-73.865889, 40.687691], - [-73.859309, 40.681293], - [-73.854737, 40.674764], - [-73.854779, 40.668245], - [-73.862215, 40.664976], - [-73.871956, 40.664737], - [-73.882545, 40.665883], - [-73.893487, 40.667852], - [-73.904545, 40.670366], - [-73.915578, 40.673261], - [-73.926501, 40.676428], - [-73.937254, 40.679793], - [-73.947796, 40.683299], - [-73.958098, 40.686906], - [-73.968137, 40.69058], - [-73.9779, 40.694294], - [-73.987373, 40.698027], - [-73.99655, 40.701763], - [-74.005423, 40.705485], - [-74.01399, 40.709181], - [-74.022499, 40.712955], - [-74.031191, 40.716917], - [-74.040051, 40.721072], - [-74.049058, 40.725423], - [-74.058188, 40.729973], - [-74.067412, 40.734727], - [-74.076692, 40.739687], - [-74.085978, 40.744854], - [-74.095208, 40.750232], - [-74.104299, 40.755821], - [-74.113135, 40.761619], - [-74.121548, 40.767623], - [-74.129281, 40.773826], - [-74.135896, 40.780208], - [-74.140503, 40.786726], - [-74.140489, 40.793245] + [-74.140691, 40.793333], + [-74.133244, 40.796624], + [-74.12347, 40.796885], + [-74.112842, 40.79576], + [-74.101856, 40.793809], + [-74.090756, 40.79131], + [-74.079679, 40.788428], + [-74.068716, 40.785271], + [-74.057924, 40.781914], + [-74.047345, 40.778412], + [-74.03701, 40.774808], + [-74.02694, 40.771136], + [-74.017149, 40.76742], + [-74.007651, 40.763684], + [-73.998453, 40.759944], + [-73.98956, 40.756217], + [-73.980976, 40.752513], + [-73.972452, 40.748731], + [-73.963747, 40.744759], + [-73.954877, 40.740592], + [-73.945861, 40.736228], + [-73.936725, 40.731662], + [-73.927498, 40.726891], + [-73.918218, 40.721913], + [-73.908935, 40.716724], + [-73.899711, 40.711324], + [-73.890631, 40.705712], + [-73.88181, 40.699888], + [-73.873415, 40.693858], + [-73.865704, 40.68763], + [-73.859115, 40.681224], + [-73.854536, 40.674685], + [-73.854578, 40.668157], + [-73.862024, 40.664883], + [-73.87178, 40.664644], + [-73.882383, 40.665792], + [-73.893341, 40.667764], + [-73.904414, 40.670281], + [-73.915463, 40.67318], + [-73.926401, 40.676351], + [-73.937169, 40.679721], + [-73.947726, 40.683232], + [-73.958042, 40.686844], + [-73.968096, 40.690523], + [-73.977872, 40.694242], + [-73.987359, 40.697981], + [-73.996548, 40.701722], + [-74.005434, 40.705449], + [-74.014013, 40.709151], + [-74.022534, 40.712929], + [-74.031239, 40.716897], + [-74.040111, 40.721058], + [-74.04913, 40.725415], + [-74.058274, 40.729972], + [-74.067511, 40.734732], + [-74.076803, 40.739699], + [-74.086103, 40.744874], + [-74.095346, 40.750259], + [-74.10445, 40.755856], + [-74.113297, 40.761662], + [-74.121722, 40.767675], + [-74.129467, 40.773886], + [-74.136091, 40.780277], + [-74.140705, 40.786805], + [-74.140691, 40.793333] ] ] } @@ -188,71 +188,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.914888, 40.839057], - [-73.910563, 40.833419], - [-73.910242, 40.82603], - [-73.911752, 40.817997], - [-73.914351, 40.809697], - [-73.917671, 40.80131], - [-73.921493, 40.792941], - [-73.925676, 40.784657], - [-73.93012, 40.776502], - [-73.934751, 40.768508], - [-73.939515, 40.760697], - [-73.944367, 40.753085], - [-73.949273, 40.745684], - [-73.954204, 40.738503], - [-73.959137, 40.731547], - [-73.964053, 40.724822], - [-73.968934, 40.718329], - [-73.973917, 40.711882], - [-73.979149, 40.705295], - [-73.984635, 40.698583], - [-73.99038, 40.69176], - [-73.996387, 40.684844], - [-74.002662, 40.677858], - [-74.009209, 40.67083], - [-74.016029, 40.663799], - [-74.023126, 40.65681], - [-74.0305, 40.649928], - [-74.038149, 40.643241], - [-74.046069, 40.636874], - [-74.054249, 40.631022], - [-74.062663, 40.626018], - [-74.071255, 40.622535], - [-74.079844, 40.622551], - [-74.084169, 40.628182], - [-74.084508, 40.635571], - [-74.083023, 40.643605], - [-74.080452, 40.65191], - [-74.07716, 40.660302], - [-74.073365, 40.668675], - [-74.069208, 40.676965], - [-74.064788, 40.685125], - [-74.060178, 40.693124], - [-74.055433, 40.70094], - [-74.050597, 40.708557], - [-74.045705, 40.715962], - [-74.040786, 40.723147], - [-74.035862, 40.730106], - [-74.030953, 40.736834], - [-74.026076, 40.743329], - [-74.021096, 40.74978], - [-74.015865, 40.756368], - [-74.010377, 40.763081], - [-74.004629, 40.769906], - [-73.998614, 40.776822], - [-73.992329, 40.783808], - [-73.98577, 40.790834], - [-73.978934, 40.797865], - [-73.971817, 40.80485], - [-73.96442, 40.811729], - [-73.956744, 40.818411], - [-73.948793, 40.824772], - [-73.940581, 40.830616], - [-73.932131, 40.835611], - [-73.923504, 40.839084], - [-73.914888, 40.839057] + [-73.914772, 40.839209], + [-73.91044, 40.833563], + [-73.910119, 40.826164], + [-73.911632, 40.81812], + [-73.914234, 40.809808], + [-73.917558, 40.801409], + [-73.921386, 40.793028], + [-73.925574, 40.784732], + [-73.930025, 40.776566], + [-73.934663, 40.768561], + [-73.939433, 40.760739], + [-73.944292, 40.753116], + [-73.949205, 40.745705], + [-73.954143, 40.738513], + [-73.959083, 40.731548], + [-73.964005, 40.724813], + [-73.968894, 40.718312], + [-73.973884, 40.711855], + [-73.979123, 40.70526], + [-73.984617, 40.698538], + [-73.99037, 40.691705], + [-73.996386, 40.684779], + [-74.00267, 40.677783], + [-74.009225, 40.670746], + [-74.016055, 40.663704], + [-74.023162, 40.656706], + [-74.030546, 40.649814], + [-74.038206, 40.643117], + [-74.046137, 40.636741], + [-74.054328, 40.630882], + [-74.062755, 40.625871], + [-74.071359, 40.622383], + [-74.079959, 40.622398], + [-74.084291, 40.628038], + [-74.084631, 40.635437], + [-74.083143, 40.643482], + [-74.080568, 40.651799], + [-74.077272, 40.660202], + [-74.073472, 40.668588], + [-74.069309, 40.676889], + [-74.064883, 40.685061], + [-74.060266, 40.693071], + [-74.055514, 40.700898], + [-74.050672, 40.708526], + [-74.045773, 40.715941], + [-74.040847, 40.723136], + [-74.035916, 40.730105], + [-74.031001, 40.736843], + [-74.026117, 40.743347], + [-74.021129, 40.749806], + [-74.015891, 40.756404], + [-74.010395, 40.763127], + [-74.004639, 40.769961], + [-73.998616, 40.776887], + [-73.992322, 40.783883], + [-73.985754, 40.790919], + [-73.978907, 40.797959], + [-73.971781, 40.804955], + [-73.964374, 40.811842], + [-73.956686, 40.818534], + [-73.948725, 40.824904], + [-73.940501, 40.830757], + [-73.932039, 40.835759], + [-73.9234, 40.839236], + [-73.914772, 40.839209] ] ] } diff --git a/packages/turf-ellipse/test/out/rotation.json b/packages/turf-ellipse/test/out/rotation.json index 96502ca989..3e4caf9f1d 100644 --- a/packages/turf-ellipse/test/out/rotation.json +++ b/packages/turf-ellipse/test/out/rotation.json @@ -25,71 +25,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 40.775799], - [-74.00332, 40.775582], - [-74.009084, 40.774934], - [-74.014736, 40.773862], - [-74.020222, 40.772374], - [-74.025489, 40.770486], - [-74.030485, 40.768216], - [-74.035164, 40.765586], - [-74.039479, 40.762621], - [-74.043389, 40.75935], - [-74.046857, 40.755804], - [-74.049849, 40.752018], - [-74.052336, 40.748028], - [-74.054295, 40.743872], - [-74.055706, 40.739591], - [-74.056557, 40.735225], - [-74.056839, 40.730818], - [-74.056549, 40.726411], - [-74.055691, 40.722046], - [-74.054273, 40.717766], - [-74.052308, 40.713612], - [-74.049816, 40.709624], - [-74.04682, 40.705841], - [-74.04335, 40.702298], - [-74.039439, 40.69903], - [-74.035125, 40.696068], - [-74.030448, 40.69344], - [-74.025456, 40.691173], - [-74.020194, 40.689288], - [-74.014714, 40.687802], - [-74.009069, 40.68673], - [-74.003312, 40.686083], - [-73.9975, 40.685867], - [-73.991688, 40.686083], - [-73.985931, 40.68673], - [-73.980286, 40.687802], - [-73.974806, 40.689288], - [-73.969544, 40.691173], - [-73.964552, 40.69344], - [-73.959875, 40.696068], - [-73.955561, 40.69903], - [-73.95165, 40.702298], - [-73.94818, 40.705841], - [-73.945184, 40.709624], - [-73.942692, 40.713612], - [-73.940727, 40.717766], - [-73.939309, 40.722046], - [-73.938451, 40.726411], - [-73.938161, 40.730818], - [-73.938443, 40.735225], - [-73.939294, 40.739591], - [-73.940705, 40.743872], - [-73.942664, 40.748028], - [-73.945151, 40.752018], - [-73.948143, 40.755804], - [-73.951611, 40.75935], - [-73.955521, 40.762621], - [-73.959836, 40.765586], - [-73.964515, 40.768216], - [-73.969511, 40.770486], - [-73.974778, 40.772374], - [-73.980264, 40.773862], - [-73.985916, 40.774934], - [-73.99168, 40.775582], - [-73.9975, 40.775799] + [-73.9975, 40.775835], + [-74.003325, 40.775618], + [-74.009093, 40.77497], + [-74.01475, 40.773896], + [-74.02024, 40.772407], + [-74.025511, 40.770518], + [-74.030512, 40.768246], + [-74.035194, 40.765614], + [-74.039513, 40.762647], + [-74.043426, 40.759373], + [-74.046897, 40.755824], + [-74.049891, 40.752035], + [-74.05238, 40.748042], + [-74.054341, 40.743882], + [-74.055753, 40.739598], + [-74.056605, 40.735229], + [-74.056887, 40.730818], + [-74.056597, 40.726407], + [-74.055738, 40.722039], + [-74.054318, 40.717756], + [-74.052352, 40.713598], + [-74.049858, 40.709607], + [-74.04686, 40.705821], + [-74.043387, 40.702275], + [-74.039473, 40.699004], + [-74.035155, 40.69604], + [-74.030475, 40.69341], + [-74.025478, 40.691141], + [-74.020212, 40.689254], + [-74.014728, 40.687767], + [-74.009078, 40.686695], + [-74.003317, 40.686047], + [-73.9975, 40.685831], + [-73.991683, 40.686047], + [-73.985922, 40.686695], + [-73.980272, 40.687767], + [-73.974788, 40.689254], + [-73.969522, 40.691141], + [-73.964525, 40.69341], + [-73.959845, 40.69604], + [-73.955527, 40.699004], + [-73.951613, 40.702275], + [-73.94814, 40.705821], + [-73.945142, 40.709607], + [-73.942648, 40.713598], + [-73.940682, 40.717756], + [-73.939262, 40.722039], + [-73.938403, 40.726407], + [-73.938113, 40.730818], + [-73.938395, 40.735229], + [-73.939247, 40.739598], + [-73.940659, 40.743882], + [-73.94262, 40.748042], + [-73.945109, 40.752035], + [-73.948103, 40.755824], + [-73.951574, 40.759373], + [-73.955487, 40.762647], + [-73.959806, 40.765614], + [-73.964488, 40.768246], + [-73.969489, 40.770518], + [-73.97476, 40.772407], + [-73.98025, 40.773896], + [-73.985907, 40.77497], + [-73.991675, 40.775618], + [-73.9975, 40.775835] ] ] } @@ -106,71 +106,71 @@ "type": "Polygon", "coordinates": [ [ - [-74.048906, 40.753305], - [-74.046231, 40.754485], - [-74.042723, 40.754576], - [-74.038908, 40.754169], - [-74.034964, 40.753466], - [-74.03098, 40.752566], - [-74.027004, 40.751529], - [-74.023069, 40.750393], - [-74.019195, 40.749186], - [-74.015397, 40.747927], - [-74.011687, 40.746631], - [-74.008071, 40.745311], - [-74.004556, 40.743976], - [-74.001145, 40.742634], - [-73.997842, 40.74129], - [-73.994648, 40.739951], - [-73.991565, 40.738621], - [-73.988504, 40.737263], - [-73.985377, 40.735837], - [-73.98219, 40.734341], - [-73.978951, 40.732774], - [-73.975668, 40.731134], - [-73.972353, 40.729422], - [-73.969018, 40.727635], - [-73.965681, 40.725773], - [-73.962365, 40.723834], - [-73.959101, 40.72182], - [-73.955929, 40.71973], - [-73.95291, 40.717566], - [-73.950136, 40.715331], - [-73.947765, 40.713031], - [-73.946117, 40.710684], - [-73.946128, 40.708339], - [-73.948803, 40.707161], - [-73.95231, 40.707072], - [-73.956122, 40.707482], - [-73.960061, 40.708188], - [-73.964042, 40.70909], - [-73.968014, 40.710129], - [-73.971946, 40.711267], - [-73.975817, 40.712476], - [-73.979612, 40.713736], - [-73.98332, 40.715033], - [-73.986933, 40.716354], - [-73.990447, 40.717689], - [-73.993856, 40.719032], - [-73.997158, 40.720376], - [-74.000351, 40.721715], - [-74.003433, 40.723045], - [-74.006494, 40.724402], - [-74.009621, 40.725828], - [-74.012808, 40.727323], - [-74.016048, 40.728889], - [-74.019331, 40.730527], - [-74.022648, 40.732239], - [-74.025985, 40.734024], - [-74.029324, 40.735885], - [-74.032642, 40.737821], - [-74.035909, 40.739833], - [-74.039085, 40.741921], - [-74.042108, 40.744083], - [-74.044886, 40.746316], - [-74.047261, 40.748613], - [-74.048915, 40.75096], - [-74.048906, 40.753305] + [-74.048979, 40.753336], + [-74.0463, 40.754518], + [-74.042786, 40.75461], + [-74.038966, 40.754202], + [-74.035017, 40.753498], + [-74.031027, 40.752597], + [-74.027046, 40.751558], + [-74.023105, 40.750421], + [-74.019225, 40.749212], + [-74.015423, 40.747951], + [-74.011707, 40.746654], + [-74.008086, 40.745332], + [-74.004566, 40.743995], + [-74.00115, 40.74265], + [-73.997843, 40.741305], + [-73.994644, 40.739964], + [-73.991557, 40.738632], + [-73.988491, 40.737272], + [-73.98536, 40.735844], + [-73.982169, 40.734346], + [-73.978925, 40.732776], + [-73.975638, 40.731135], + [-73.972317, 40.72942], + [-73.968978, 40.72763], + [-73.965636, 40.725765], + [-73.962316, 40.723825], + [-73.959047, 40.721807], + [-73.955871, 40.719715], + [-73.952847, 40.717547], + [-73.95007, 40.715309], + [-73.947695, 40.713006], + [-73.946044, 40.710655], + [-73.946056, 40.708307], + [-73.948735, 40.707127], + [-73.952246, 40.707039], + [-73.956063, 40.707449], + [-73.960008, 40.708156], + [-73.963995, 40.709059], + [-73.967973, 40.7101], + [-73.97191, 40.711239], + [-73.975787, 40.71245], + [-73.979587, 40.713712], + [-73.9833, 40.715011], + [-73.986919, 40.716333], + [-73.990437, 40.717671], + [-73.993851, 40.719015], + [-73.997158, 40.720361], + [-74.000355, 40.721702], + [-74.003442, 40.723034], + [-74.006507, 40.724393], + [-74.009638, 40.725821], + [-74.01283, 40.727318], + [-74.016074, 40.728887], + [-74.019362, 40.730527], + [-74.022684, 40.732241], + [-74.026025, 40.734029], + [-74.029369, 40.735892], + [-74.032691, 40.737831], + [-74.035964, 40.739846], + [-74.039143, 40.741936], + [-74.04217, 40.744102], + [-74.044953, 40.746338], + [-74.047331, 40.748638], + [-74.048987, 40.750988], + [-74.048979, 40.753336] ] ] } @@ -187,71 +187,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.967813, 40.769771], - [-73.966257, 40.767744], - [-73.96614, 40.765085], - [-73.96668, 40.762196], - [-73.967612, 40.759209], - [-73.968803, 40.756192], - [-73.970174, 40.753181], - [-73.971676, 40.7502], - [-73.973272, 40.747266], - [-73.974936, 40.74439], - [-73.976647, 40.741579], - [-73.978391, 40.73884], - [-73.980154, 40.736178], - [-73.981926, 40.733594], - [-73.9837, 40.731091], - [-73.985467, 40.728672], - [-73.987223, 40.726336], - [-73.989015, 40.724016], - [-73.990897, 40.721647], - [-73.992871, 40.719232], - [-73.994938, 40.716777], - [-73.9971, 40.714289], - [-73.999358, 40.711776], - [-74.001714, 40.709248], - [-74.00417, 40.706719], - [-74.006725, 40.704205], - [-74.00938, 40.70173], - [-74.012135, 40.699325], - [-74.014987, 40.697036], - [-74.017934, 40.694931], - [-74.020965, 40.693132], - [-74.024059, 40.691881], - [-74.027152, 40.691887], - [-74.028708, 40.693914], - [-74.028828, 40.696572], - [-74.028291, 40.699462], - [-74.027363, 40.702449], - [-74.026176, 40.705467], - [-74.024807, 40.708479], - [-74.023309, 40.71146], - [-74.021716, 40.714395], - [-74.020055, 40.717272], - [-74.018346, 40.720083], - [-74.016605, 40.722822], - [-74.014843, 40.725486], - [-74.013072, 40.72807], - [-74.0113, 40.730573], - [-74.009533, 40.732993], - [-74.007778, 40.735329], - [-74.005987, 40.737649], - [-74.004105, 40.740019], - [-74.002131, 40.742434], - [-74.000063, 40.744889], - [-73.997901, 40.747377], - [-73.995641, 40.74989], - [-73.993283, 40.752417], - [-73.990825, 40.754946], - [-73.988268, 40.75746], - [-73.98561, 40.759934], - [-73.982851, 40.762339], - [-73.979995, 40.764628], - [-73.977044, 40.766731], - [-73.974009, 40.768529], - [-73.970909, 40.769779], - [-73.967813, 40.769771] + [-73.967771, 40.769826], + [-73.966213, 40.767796], + [-73.966096, 40.765134], + [-73.966637, 40.76224], + [-73.96757, 40.759249], + [-73.968762, 40.756227], + [-73.970136, 40.753212], + [-73.97164, 40.750227], + [-73.973238, 40.747289], + [-73.974904, 40.744409], + [-73.976618, 40.741594], + [-73.978364, 40.738852], + [-73.980129, 40.736185], + [-73.981904, 40.733598], + [-73.98368, 40.731092], + [-73.98545, 40.728669], + [-73.987208, 40.72633], + [-73.989003, 40.724007], + [-73.990888, 40.721634], + [-73.992864, 40.719216], + [-73.994934, 40.716758], + [-73.997099, 40.714266], + [-73.999361, 40.711749], + [-74.00172, 40.709218], + [-74.004179, 40.706685], + [-74.006738, 40.704168], + [-74.009397, 40.701689], + [-74.012155, 40.699281], + [-74.015012, 40.696988], + [-74.017962, 40.694881], + [-74.020998, 40.693079], + [-74.024097, 40.691826], + [-74.027194, 40.691833], + [-74.028752, 40.693862], + [-74.028872, 40.696524], + [-74.028334, 40.699418], + [-74.027405, 40.702409], + [-74.026216, 40.705431], + [-74.024846, 40.708447], + [-74.023345, 40.711433], + [-74.02175, 40.714372], + [-74.020087, 40.717253], + [-74.018375, 40.720068], + [-74.016632, 40.722811], + [-74.014868, 40.725478], + [-74.013094, 40.728066], + [-74.011319, 40.730573], + [-74.00955, 40.732996], + [-74.007793, 40.735335], + [-74.005999, 40.737659], + [-74.004114, 40.740032], + [-74.002137, 40.74245], + [-74.000067, 40.744908], + [-73.997901, 40.7474], + [-73.995638, 40.749916], + [-73.993277, 40.752448], + [-73.990816, 40.75498], + [-73.988255, 40.757497], + [-73.985593, 40.759975], + [-73.982831, 40.762383], + [-73.97997, 40.764675], + [-73.977015, 40.766782], + [-73.973976, 40.768582], + [-73.970872, 40.769834], + [-73.967771, 40.769826] ] ] } diff --git a/packages/turf-ellipse/test/out/simple-degrees.json b/packages/turf-ellipse/test/out/simple-degrees.json index 1fc0881a2a..e9e26a4153 100644 --- a/packages/turf-ellipse/test/out/simple-degrees.json +++ b/packages/turf-ellipse/test/out/simple-degrees.json @@ -25,71 +25,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 45.730833], - [-74.698398, 45.704735], - [-75.390706, 45.626764], - [-76.066017, 45.497886], - [-76.716273, 45.319684], - [-77.333929, 45.094327], - [-77.912074, 44.824524], - [-78.444546, 44.513469], - [-78.926002, 44.164781], - [-79.351961, 43.782438], - [-79.718829, 43.370713], - [-80.023884, 42.934104], - [-80.265253, 42.477272], - [-80.441865, 42.004981], - [-80.553401, 41.522038], - [-80.600227, 41.033248], - [-80.583334, 40.543359], - [-80.504269, 40.057027], - [-80.365071, 39.578777], - [-80.168217, 39.112966], - [-79.916559, 38.663761], - [-79.61328, 38.235109], - [-79.261849, 37.830717], - [-78.865975, 37.454029], - [-78.42958, 37.108214], - [-77.956762, 36.796144], - [-77.451771, 36.520386], - [-76.918984, 36.283188], - [-76.36288, 36.086469], - [-75.788026, 35.931812], - [-75.199053, 35.820454], - [-74.60064, 35.753283], - [-73.9975, 35.730833], - [-73.39436, 35.753283], - [-72.795947, 35.820454], - [-72.206974, 35.931812], - [-71.63212, 36.086469], - [-71.076016, 36.283188], - [-70.543229, 36.520386], - [-70.038238, 36.796144], - [-69.56542, 37.108214], - [-69.129025, 37.454029], - [-68.733151, 37.830717], - [-68.38172, 38.235109], - [-68.078441, 38.663761], - [-67.826783, 39.112966], - [-67.629929, 39.578777], - [-67.490731, 40.057027], - [-67.411666, 40.543359], - [-67.394773, 41.033248], - [-67.441599, 41.522038], - [-67.553135, 42.004981], - [-67.729747, 42.477272], - [-67.971116, 42.934104], - [-68.276171, 43.370713], - [-68.643039, 43.782438], - [-69.068998, 44.164781], - [-69.550454, 44.513469], - [-70.082926, 44.824524], - [-70.661071, 45.094327], - [-71.278727, 45.319684], - [-71.928983, 45.497886], - [-72.604294, 45.626764], - [-73.296602, 45.704735], - [-73.9975, 45.730833] + [-73.9975, 45.734852], + [-74.69901, 45.708731], + [-75.391921, 45.630692], + [-76.067816, 45.501702], + [-76.718631, 45.323345], + [-77.33681, 45.097793], + [-77.915438, 44.827758], + [-78.448346, 44.516437], + [-78.930187, 44.167453], + [-79.356478, 43.784788], + [-79.723621, 43.372718], + [-80.028895, 42.935745], + [-80.270425, 42.478537], + [-80.447143, 42.005858], + [-80.558729, 41.522524], + [-80.605554, 41.033339], + [-80.588608, 40.543058], + [-80.509442, 40.05634], + [-80.370099, 39.577712], + [-80.173057, 39.111536], + [-79.921173, 38.661981], + [-79.617634, 38.232997], + [-79.265908, 37.828294], + [-78.86971, 37.451317], + [-78.432965, 37.105237], + [-77.959774, 36.792929], + [-77.45439, 36.516962], + [-76.921193, 36.279585], + [-76.364665, 36.082718], + [-75.789375, 35.927944], + [-75.199957, 35.816502], + [-74.601094, 35.749281], + [-73.9975, 35.726814], + [-73.393906, 35.749281], + [-72.795043, 35.816502], + [-72.205625, 35.927944], + [-71.630335, 36.082718], + [-71.073807, 36.279585], + [-70.54061, 36.516962], + [-70.035226, 36.792929], + [-69.562035, 37.105237], + [-69.12529, 37.451317], + [-68.729092, 37.828294], + [-68.377366, 38.232997], + [-68.073827, 38.661981], + [-67.821943, 39.111536], + [-67.624901, 39.577712], + [-67.485558, 40.05634], + [-67.406392, 40.543058], + [-67.389446, 41.033339], + [-67.436271, 41.522524], + [-67.547857, 42.005858], + [-67.724575, 42.478537], + [-67.966105, 42.935745], + [-68.271379, 43.372718], + [-68.638522, 43.784788], + [-69.064813, 44.167453], + [-69.546654, 44.516437], + [-70.079562, 44.827758], + [-70.65819, 45.097793], + [-71.276369, 45.323345], + [-71.927184, 45.501702], + [-72.603079, 45.630692], + [-73.29599, 45.708731], + [-73.9975, 45.734852] ] ] } @@ -106,71 +106,71 @@ "type": "Polygon", "coordinates": [ [ - [-80.583334, 40.543359], - [-80.434982, 40.778295], - [-80.118789, 40.952109], - [-79.731663, 41.0934], - [-79.306767, 41.211904], - [-78.860567, 41.312527], - [-78.402775, 41.398261], - [-77.939728, 41.471161], - [-77.475834, 41.532755], - [-77.014306, 41.584252], - [-76.557557, 41.626646], - [-76.10744, 41.660784], - [-75.6654, 41.687402], - [-75.232575, 41.707154], - [-74.809867, 41.720628], - [-74.397988, 41.728358], - [-73.9975, 41.730833], - [-73.597012, 41.728358], - [-73.185133, 41.720628], - [-72.762425, 41.707154], - [-72.3296, 41.687402], - [-71.88756, 41.660784], - [-71.437443, 41.626646], - [-70.980694, 41.584252], - [-70.519166, 41.532755], - [-70.055272, 41.471161], - [-69.592225, 41.398261], - [-69.134433, 41.312527], - [-68.688233, 41.211904], - [-68.263337, 41.0934], - [-67.876211, 40.952109], - [-67.560018, 40.778295], - [-67.411666, 40.543359], - [-67.603386, 40.327569], - [-67.945847, 40.189403], - [-68.349157, 40.088399], - [-68.783101, 40.010585], - [-69.232966, 39.948999], - [-69.690255, 39.899533], - [-70.149548, 39.859515], - [-70.607154, 39.827093], - [-71.060448, 39.800922], - [-71.507502, 39.779994], - [-71.946867, 39.763537], - [-72.377441, 39.750943], - [-72.798375, 39.74173], - [-73.209014, 39.73551], - [-73.608852, 39.731964], - [-73.9975, 39.730833], - [-74.386148, 39.731964], - [-74.785986, 39.73551], - [-75.196625, 39.74173], - [-75.617559, 39.750943], - [-76.048133, 39.763537], - [-76.487498, 39.779994], - [-76.934552, 39.800922], - [-77.387846, 39.827093], - [-77.845452, 39.859515], - [-78.304745, 39.899533], - [-78.762034, 39.948999], - [-79.211899, 40.010585], - [-79.645843, 40.088399], - [-80.049153, 40.189403], - [-80.391614, 40.327569], - [-80.583334, 40.543359] + [-80.593665, 40.542769], + [-80.445116, 40.778088], + [-80.128451, 40.952202], + [-79.740735, 41.093746], + [-79.315182, 41.212468], + [-78.868288, 41.313281], + [-78.40978, 41.399179], + [-77.946003, 41.47222], + [-77.481377, 41.533935], + [-77.019118, 41.585533], + [-76.561643, 41.628012], + [-76.11081, 41.662217], + [-75.668065, 41.688889], + [-75.234549, 41.708681], + [-74.811166, 41.722182], + [-74.398628, 41.729928], + [-73.9975, 41.732408], + [-73.596372, 41.729928], + [-73.183834, 41.722182], + [-72.760451, 41.708681], + [-72.326935, 41.688889], + [-71.88419, 41.662217], + [-71.433357, 41.628012], + [-70.975882, 41.585533], + [-70.513623, 41.533935], + [-70.048997, 41.47222], + [-69.58522, 41.399179], + [-69.126712, 41.313281], + [-68.679818, 41.212468], + [-68.254265, 41.093746], + [-67.866549, 40.952202], + [-67.549884, 40.778088], + [-67.401335, 40.542769], + [-67.593388, 40.326657], + [-67.936402, 40.188303], + [-68.340354, 40.087172], + [-68.774983, 40.009268], + [-69.225554, 39.947615], + [-69.683559, 39.898099], + [-70.143569, 39.858044], + [-70.601888, 39.825593], + [-71.055888, 39.799399], + [-71.503637, 39.778455], + [-71.943685, 39.761985], + [-72.374927, 39.749382], + [-72.796515, 39.740163], + [-73.207791, 39.733938], + [-73.608249, 39.730391], + [-73.9975, 39.729258], + [-74.386751, 39.730391], + [-74.787209, 39.733938], + [-75.198485, 39.740163], + [-75.620073, 39.749382], + [-76.051315, 39.761985], + [-76.491363, 39.778455], + [-76.939112, 39.799399], + [-77.393112, 39.825593], + [-77.851431, 39.858044], + [-78.311441, 39.898099], + [-78.769446, 39.947615], + [-79.220017, 40.009268], + [-79.654646, 40.087172], + [-80.058598, 40.188303], + [-80.401612, 40.326657], + [-80.593665, 40.542769] ] ] } @@ -187,71 +187,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 45.730833], - [-73.674533, 45.600765], - [-73.453563, 45.349008], - [-73.284769, 45.04715], - [-73.150635, 44.719483], - [-73.042184, 44.377943], - [-72.953933, 44.029476], - [-72.882164, 43.678549], - [-72.824183, 43.328221], - [-72.777941, 42.980686], - [-72.741824, 42.637559], - [-72.714527, 42.300063], - [-72.694972, 41.969133], - [-72.682254, 41.645492], - [-72.675606, 41.329702], - [-72.674366, 41.022199], - [-72.677961, 40.723319], - [-72.686198, 40.424493], - [-72.699476, 40.117156], - [-72.718202, 39.801652], - [-72.742835, 39.478429], - [-72.773905, 39.148055], - [-72.812033, 38.81126], - [-72.857956, 38.468986], - [-72.912575, 38.122458], - [-72.977017, 37.773294], - [-73.052734, 37.423681], - [-73.141681, 37.076667], - [-73.246627, 36.736695], - [-73.371792, 36.410667], - [-73.524324, 36.110436], - [-73.718686, 35.860124], - [-73.9975, 35.730833], - [-74.276314, 35.860124], - [-74.470676, 36.110436], - [-74.623208, 36.410667], - [-74.748373, 36.736695], - [-74.853319, 37.076667], - [-74.942266, 37.423681], - [-75.017983, 37.773294], - [-75.082425, 38.122458], - [-75.137044, 38.468986], - [-75.182967, 38.81126], - [-75.221095, 39.148055], - [-75.252165, 39.478429], - [-75.276798, 39.801652], - [-75.295524, 40.117156], - [-75.308802, 40.424493], - [-75.317039, 40.723319], - [-75.320634, 41.022199], - [-75.319394, 41.329702], - [-75.312746, 41.645492], - [-75.300028, 41.969133], - [-75.280473, 42.300063], - [-75.253176, 42.637559], - [-75.217059, 42.980686], - [-75.170817, 43.328221], - [-75.112836, 43.678549], - [-75.041067, 44.029476], - [-74.952816, 44.377943], - [-74.844365, 44.719483], - [-74.710231, 45.04715], - [-74.541437, 45.349008], - [-74.320467, 45.600765], - [-73.9975, 45.730833] + [-73.9975, 45.738698], + [-73.673982, 45.608424], + [-73.452639, 45.35627], + [-73.283565, 45.053936], + [-73.149213, 44.725752], + [-73.04059, 44.383673], + [-72.952202, 44.034657], + [-72.880325, 43.683176], + [-72.82226, 43.332297], + [-72.775954, 42.984214], + [-72.73979, 42.640547], + [-72.712459, 42.30252], + [-72.692883, 41.971069], + [-72.680156, 41.646919], + [-72.673508, 41.330632], + [-72.672276, 41.022645], + [-72.675886, 40.723296], + [-72.684144, 40.424], + [-72.697453, 40.116179], + [-72.716217, 39.80018], + [-72.740898, 39.476448], + [-72.772025, 39.145555], + [-72.810219, 38.808231], + [-72.856221, 38.46542], + [-72.910931, 38.118348], + [-72.975477, 37.768636], + [-73.051315, 37.418474], + [-73.140401, 37.070915], + [-73.24551, 36.730409], + [-73.370864, 36.40387], + [-73.523625, 36.103167], + [-73.718275, 35.852462], + [-73.9975, 35.722968], + [-74.276725, 35.852462], + [-74.471375, 36.103167], + [-74.624136, 36.40387], + [-74.74949, 36.730409], + [-74.854599, 37.070915], + [-74.943685, 37.418474], + [-75.019523, 37.768636], + [-75.084069, 38.118348], + [-75.138779, 38.46542], + [-75.184781, 38.808231], + [-75.222975, 39.145555], + [-75.254102, 39.476448], + [-75.278783, 39.80018], + [-75.297547, 40.116179], + [-75.310856, 40.424], + [-75.319114, 40.723296], + [-75.322724, 41.022645], + [-75.321492, 41.330632], + [-75.314844, 41.646919], + [-75.302117, 41.971069], + [-75.282541, 42.30252], + [-75.25521, 42.640547], + [-75.219046, 42.984214], + [-75.17274, 43.332297], + [-75.114675, 43.683176], + [-75.042798, 44.034657], + [-74.95441, 44.383673], + [-74.845787, 44.725752], + [-74.711435, 45.053936], + [-74.542361, 45.35627], + [-74.321018, 45.608424], + [-73.9975, 45.738698] ] ] } diff --git a/packages/turf-ellipse/test/out/simple-with-elevation.json b/packages/turf-ellipse/test/out/simple-with-elevation.json index 7316bb4b25..ff65df13fb 100644 --- a/packages/turf-ellipse/test/out/simple-with-elevation.json +++ b/packages/turf-ellipse/test/out/simple-with-elevation.json @@ -24,71 +24,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 40.775799, 120], - [-74.00332, 40.775582, 120], - [-74.009084, 40.774934, 120], - [-74.014736, 40.773862, 120], - [-74.020222, 40.772374, 120], - [-74.025489, 40.770486, 120], - [-74.030485, 40.768216, 120], - [-74.035164, 40.765586, 120], - [-74.039479, 40.762621, 120], - [-74.043389, 40.75935, 120], - [-74.046857, 40.755804, 120], - [-74.049849, 40.752018, 120], - [-74.052336, 40.748028, 120], - [-74.054295, 40.743872, 120], - [-74.055706, 40.739591, 120], - [-74.056557, 40.735225, 120], - [-74.056839, 40.730818, 120], - [-74.056549, 40.726411, 120], - [-74.055691, 40.722046, 120], - [-74.054273, 40.717766, 120], - [-74.052308, 40.713612, 120], - [-74.049816, 40.709624, 120], - [-74.04682, 40.705841, 120], - [-74.04335, 40.702298, 120], - [-74.039439, 40.69903, 120], - [-74.035125, 40.696068, 120], - [-74.030448, 40.69344, 120], - [-74.025456, 40.691173, 120], - [-74.020194, 40.689288, 120], - [-74.014714, 40.687802, 120], - [-74.009069, 40.68673, 120], - [-74.003312, 40.686083, 120], - [-73.9975, 40.685867, 120], - [-73.991688, 40.686083, 120], - [-73.985931, 40.68673, 120], - [-73.980286, 40.687802, 120], - [-73.974806, 40.689288, 120], - [-73.969544, 40.691173, 120], - [-73.964552, 40.69344, 120], - [-73.959875, 40.696068, 120], - [-73.955561, 40.69903, 120], - [-73.95165, 40.702298, 120], - [-73.94818, 40.705841, 120], - [-73.945184, 40.709624, 120], - [-73.942692, 40.713612, 120], - [-73.940727, 40.717766, 120], - [-73.939309, 40.722046, 120], - [-73.938451, 40.726411, 120], - [-73.938161, 40.730818, 120], - [-73.938443, 40.735225, 120], - [-73.939294, 40.739591, 120], - [-73.940705, 40.743872, 120], - [-73.942664, 40.748028, 120], - [-73.945151, 40.752018, 120], - [-73.948143, 40.755804, 120], - [-73.951611, 40.75935, 120], - [-73.955521, 40.762621, 120], - [-73.959836, 40.765586, 120], - [-73.964515, 40.768216, 120], - [-73.969511, 40.770486, 120], - [-73.974778, 40.772374, 120], - [-73.980264, 40.773862, 120], - [-73.985916, 40.774934, 120], - [-73.99168, 40.775582, 120], - [-73.9975, 40.775799, 120] + [-73.9975, 40.775835, 120], + [-74.003325, 40.775618, 120], + [-74.009093, 40.77497, 120], + [-74.01475, 40.773896, 120], + [-74.02024, 40.772407, 120], + [-74.025511, 40.770518, 120], + [-74.030512, 40.768246, 120], + [-74.035194, 40.765614, 120], + [-74.039513, 40.762647, 120], + [-74.043426, 40.759373, 120], + [-74.046897, 40.755824, 120], + [-74.049891, 40.752035, 120], + [-74.05238, 40.748042, 120], + [-74.054341, 40.743882, 120], + [-74.055753, 40.739598, 120], + [-74.056605, 40.735229, 120], + [-74.056887, 40.730818, 120], + [-74.056597, 40.726407, 120], + [-74.055738, 40.722039, 120], + [-74.054318, 40.717756, 120], + [-74.052352, 40.713598, 120], + [-74.049858, 40.709607, 120], + [-74.04686, 40.705821, 120], + [-74.043387, 40.702275, 120], + [-74.039473, 40.699004, 120], + [-74.035155, 40.69604, 120], + [-74.030475, 40.69341, 120], + [-74.025478, 40.691141, 120], + [-74.020212, 40.689254, 120], + [-74.014728, 40.687767, 120], + [-74.009078, 40.686695, 120], + [-74.003317, 40.686047, 120], + [-73.9975, 40.685831, 120], + [-73.991683, 40.686047, 120], + [-73.985922, 40.686695, 120], + [-73.980272, 40.687767, 120], + [-73.974788, 40.689254, 120], + [-73.969522, 40.691141, 120], + [-73.964525, 40.69341, 120], + [-73.959845, 40.69604, 120], + [-73.955527, 40.699004, 120], + [-73.951613, 40.702275, 120], + [-73.94814, 40.705821, 120], + [-73.945142, 40.709607, 120], + [-73.942648, 40.713598, 120], + [-73.940682, 40.717756, 120], + [-73.939262, 40.722039, 120], + [-73.938403, 40.726407, 120], + [-73.938113, 40.730818, 120], + [-73.938395, 40.735229, 120], + [-73.939247, 40.739598, 120], + [-73.940659, 40.743882, 120], + [-73.94262, 40.748042, 120], + [-73.945109, 40.752035, 120], + [-73.948103, 40.755824, 120], + [-73.951574, 40.759373, 120], + [-73.955487, 40.762647, 120], + [-73.959806, 40.765614, 120], + [-73.964488, 40.768246, 120], + [-73.969489, 40.770518, 120], + [-73.97476, 40.772407, 120], + [-73.98025, 40.773896, 120], + [-73.985907, 40.77497, 120], + [-73.991675, 40.775618, 120], + [-73.9975, 40.775835, 120] ] ] } @@ -105,71 +105,71 @@ "type": "Polygon", "coordinates": [ [ - [-74.056839, 40.730818, 120], - [-74.055302, 40.732853, 120], - [-74.052325, 40.734262, 120], - [-74.048754, 40.735355, 120], - [-74.044876, 40.736239, 120], - [-74.040832, 40.73697, 120], - [-74.036706, 40.737578, 120], - [-74.032549, 40.738085, 120], - [-74.028398, 40.738507, 120], - [-74.024279, 40.738856, 120], - [-74.020211, 40.739139, 120], - [-74.016209, 40.739366, 120], - [-74.012284, 40.739542, 120], - [-74.008444, 40.739671, 120], - [-74.004697, 40.73976, 120], - [-74.001048, 40.73981, 120], - [-73.9975, 40.739826, 120], - [-73.993952, 40.73981, 120], - [-73.990303, 40.73976, 120], - [-73.986556, 40.739671, 120], - [-73.982716, 40.739542, 120], - [-73.978791, 40.739366, 120], - [-73.974789, 40.739139, 120], - [-73.970721, 40.738856, 120], - [-73.966602, 40.738507, 120], - [-73.962451, 40.738085, 120], - [-73.958294, 40.737578, 120], - [-73.954168, 40.73697, 120], - [-73.950124, 40.736239, 120], - [-73.946246, 40.735355, 120], - [-73.942675, 40.734262, 120], - [-73.939698, 40.732853, 120], - [-73.938161, 40.730818, 120], - [-73.939701, 40.728784, 120], - [-73.942681, 40.727378, 120], - [-73.946253, 40.726289, 120], - [-73.950132, 40.725407, 120], - [-73.954176, 40.72468, 120], - [-73.958302, 40.724075, 120], - [-73.962459, 40.72357, 120], - [-73.966609, 40.723151, 120], - [-73.970728, 40.722804, 120], - [-73.974795, 40.722522, 120], - [-73.978796, 40.722297, 120], - [-73.98272, 40.722122, 120], - [-73.986559, 40.721994, 120], - [-73.990305, 40.721906, 120], - [-73.993953, 40.721856, 120], - [-73.9975, 40.72184, 120], - [-74.001047, 40.721856, 120], - [-74.004695, 40.721906, 120], - [-74.008441, 40.721994, 120], - [-74.01228, 40.722122, 120], - [-74.016204, 40.722297, 120], - [-74.020205, 40.722522, 120], - [-74.024272, 40.722804, 120], - [-74.028391, 40.723151, 120], - [-74.032541, 40.72357, 120], - [-74.036698, 40.724075, 120], - [-74.040824, 40.72468, 120], - [-74.044868, 40.725407, 120], - [-74.048747, 40.726289, 120], - [-74.052319, 40.727378, 120], - [-74.055299, 40.728784, 120], - [-74.056839, 40.730818, 120] + [-74.056922, 40.730818, 120], + [-74.055384, 40.732856, 120], + [-74.052402, 40.734266, 120], + [-74.048826, 40.735361, 120], + [-74.044942, 40.736247, 120], + [-74.040893, 40.736978, 120], + [-74.036761, 40.737587, 120], + [-74.032598, 40.738095, 120], + [-74.028441, 40.738518, 120], + [-74.024316, 40.738867, 120], + [-74.020243, 40.739151, 120], + [-74.016235, 40.739378, 120], + [-74.012305, 40.739554, 120], + [-74.00846, 40.739684, 120], + [-74.004707, 40.739772, 120], + [-74.001053, 40.739823, 120], + [-73.9975, 40.739839, 120], + [-73.993947, 40.739823, 120], + [-73.990293, 40.739772, 120], + [-73.98654, 40.739684, 120], + [-73.982695, 40.739554, 120], + [-73.978765, 40.739378, 120], + [-73.974757, 40.739151, 120], + [-73.970684, 40.738867, 120], + [-73.966559, 40.738518, 120], + [-73.962402, 40.738095, 120], + [-73.958239, 40.737587, 120], + [-73.954107, 40.736978, 120], + [-73.950058, 40.736247, 120], + [-73.946174, 40.735361, 120], + [-73.942598, 40.734266, 120], + [-73.939616, 40.732856, 120], + [-73.938078, 40.730818, 120], + [-73.93962, 40.728781, 120], + [-73.942604, 40.727374, 120], + [-73.946181, 40.726282, 120], + [-73.950065, 40.7254, 120], + [-73.954115, 40.724672, 120], + [-73.958247, 40.724066, 120], + [-73.96241, 40.72356, 120], + [-73.966566, 40.72314, 120], + [-73.97069, 40.722793, 120], + [-73.974763, 40.72251, 120], + [-73.97877, 40.722285, 120], + [-73.982699, 40.72211, 120], + [-73.986543, 40.721981, 120], + [-73.990295, 40.721893, 120], + [-73.993948, 40.721843, 120], + [-73.9975, 40.721827, 120], + [-74.001052, 40.721843, 120], + [-74.004705, 40.721893, 120], + [-74.008457, 40.721981, 120], + [-74.012301, 40.72211, 120], + [-74.01623, 40.722285, 120], + [-74.020237, 40.72251, 120], + [-74.02431, 40.722793, 120], + [-74.028434, 40.72314, 120], + [-74.03259, 40.72356, 120], + [-74.036753, 40.724066, 120], + [-74.040885, 40.724672, 120], + [-74.044935, 40.7254, 120], + [-74.048819, 40.726282, 120], + [-74.052396, 40.727374, 120], + [-74.05538, 40.728781, 120], + [-74.056922, 40.730818, 120] ] ] } @@ -186,71 +186,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 40.775799, 120], - [-73.994813, 40.774633, 120], - [-73.992956, 40.772376, 120], - [-73.991515, 40.769669, 120], - [-73.990349, 40.76673, 120], - [-73.989387, 40.763666, 120], - [-73.988587, 40.760539, 120], - [-73.987919, 40.757389, 120], - [-73.987364, 40.754244, 120], - [-73.986906, 40.751122, 120], - [-73.986533, 40.74804, 120], - [-73.986235, 40.745008, 120], - [-73.986004, 40.742034, 120], - [-73.985834, 40.739125, 120], - [-73.985719, 40.736286, 120], - [-73.985653, 40.73352, 120], - [-73.985632, 40.730832, 120], - [-73.985654, 40.728144, 120], - [-73.985721, 40.725379, 120], - [-73.985837, 40.72254, 120], - [-73.986008, 40.719631, 120], - [-73.98624, 40.716657, 120], - [-73.986538, 40.713625, 120], - [-73.986912, 40.710543, 120], - [-73.987371, 40.707422, 120], - [-73.987927, 40.704276, 120], - [-73.988595, 40.701126, 120], - [-73.989395, 40.697999, 120], - [-73.990357, 40.694935, 120], - [-73.991522, 40.691996, 120], - [-73.992961, 40.68929, 120], - [-73.994817, 40.687033, 120], - [-73.9975, 40.685867, 120], - [-74.000183, 40.687033, 120], - [-74.002039, 40.68929, 120], - [-74.003478, 40.691996, 120], - [-74.004643, 40.694935, 120], - [-74.005605, 40.697999, 120], - [-74.006405, 40.701126, 120], - [-74.007073, 40.704276, 120], - [-74.007629, 40.707422, 120], - [-74.008088, 40.710543, 120], - [-74.008462, 40.713625, 120], - [-74.00876, 40.716657, 120], - [-74.008992, 40.719631, 120], - [-74.009163, 40.72254, 120], - [-74.009279, 40.725379, 120], - [-74.009346, 40.728144, 120], - [-74.009368, 40.730832, 120], - [-74.009347, 40.73352, 120], - [-74.009281, 40.736286, 120], - [-74.009166, 40.739125, 120], - [-74.008996, 40.742034, 120], - [-74.008765, 40.745008, 120], - [-74.008467, 40.74804, 120], - [-74.008094, 40.751122, 120], - [-74.007636, 40.754244, 120], - [-74.007081, 40.757389, 120], - [-74.006413, 40.760539, 120], - [-74.005613, 40.763666, 120], - [-74.004651, 40.76673, 120], - [-74.003485, 40.769669, 120], - [-74.002044, 40.772376, 120], - [-74.000187, 40.774633, 120], - [-73.9975, 40.775799, 120] + [-73.9975, 40.775862, 120], + [-73.99481, 40.774695, 120], + [-73.992949, 40.772435, 120], + [-73.991506, 40.769724, 120], + [-73.990339, 40.766781, 120], + [-73.989376, 40.763712, 120], + [-73.988574, 40.760581, 120], + [-73.987906, 40.757426, 120], + [-73.98735, 40.754277, 120], + [-73.986891, 40.751151, 120], + [-73.986517, 40.748064, 120], + [-73.986219, 40.745028, 120], + [-73.985988, 40.74205, 120], + [-73.985818, 40.739136, 120], + [-73.985702, 40.736293, 120], + [-73.985636, 40.733524, 120], + [-73.985616, 40.730832, 120], + [-73.985637, 40.728141, 120], + [-73.985704, 40.725372, 120], + [-73.985821, 40.722528, 120], + [-73.985992, 40.719615, 120], + [-73.986224, 40.716637, 120], + [-73.986523, 40.713601, 120], + [-73.986897, 40.710514, 120], + [-73.987357, 40.707389, 120], + [-73.987913, 40.704239, 120], + [-73.988582, 40.701084, 120], + [-73.989384, 40.697953, 120], + [-73.990347, 40.694885, 120], + [-73.991513, 40.691942, 120], + [-73.992955, 40.689231, 120], + [-73.994813, 40.686971, 120], + [-73.9975, 40.685804, 120], + [-74.000187, 40.686971, 120], + [-74.002045, 40.689231, 120], + [-74.003487, 40.691942, 120], + [-74.004653, 40.694885, 120], + [-74.005616, 40.697953, 120], + [-74.006418, 40.701084, 120], + [-74.007087, 40.704239, 120], + [-74.007643, 40.707389, 120], + [-74.008103, 40.710514, 120], + [-74.008477, 40.713601, 120], + [-74.008776, 40.716637, 120], + [-74.009008, 40.719615, 120], + [-74.009179, 40.722528, 120], + [-74.009296, 40.725372, 120], + [-74.009363, 40.728141, 120], + [-74.009384, 40.730832, 120], + [-74.009364, 40.733524, 120], + [-74.009298, 40.736293, 120], + [-74.009182, 40.739136, 120], + [-74.009012, 40.74205, 120], + [-74.008781, 40.745028, 120], + [-74.008483, 40.748064, 120], + [-74.008109, 40.751151, 120], + [-74.00765, 40.754277, 120], + [-74.007094, 40.757426, 120], + [-74.006426, 40.760581, 120], + [-74.005624, 40.763712, 120], + [-74.004661, 40.766781, 120], + [-74.003494, 40.769724, 120], + [-74.002051, 40.772435, 120], + [-74.00019, 40.774695, 120], + [-73.9975, 40.775862, 120] ] ] } diff --git a/packages/turf-ellipse/test/out/simple.json b/packages/turf-ellipse/test/out/simple.json index 0f743d136c..eae0040dc3 100644 --- a/packages/turf-ellipse/test/out/simple.json +++ b/packages/turf-ellipse/test/out/simple.json @@ -24,71 +24,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 40.775799], - [-74.00332, 40.775582], - [-74.009084, 40.774934], - [-74.014736, 40.773862], - [-74.020222, 40.772374], - [-74.025489, 40.770486], - [-74.030485, 40.768216], - [-74.035164, 40.765586], - [-74.039479, 40.762621], - [-74.043389, 40.75935], - [-74.046857, 40.755804], - [-74.049849, 40.752018], - [-74.052336, 40.748028], - [-74.054295, 40.743872], - [-74.055706, 40.739591], - [-74.056557, 40.735225], - [-74.056839, 40.730818], - [-74.056549, 40.726411], - [-74.055691, 40.722046], - [-74.054273, 40.717766], - [-74.052308, 40.713612], - [-74.049816, 40.709624], - [-74.04682, 40.705841], - [-74.04335, 40.702298], - [-74.039439, 40.69903], - [-74.035125, 40.696068], - [-74.030448, 40.69344], - [-74.025456, 40.691173], - [-74.020194, 40.689288], - [-74.014714, 40.687802], - [-74.009069, 40.68673], - [-74.003312, 40.686083], - [-73.9975, 40.685867], - [-73.991688, 40.686083], - [-73.985931, 40.68673], - [-73.980286, 40.687802], - [-73.974806, 40.689288], - [-73.969544, 40.691173], - [-73.964552, 40.69344], - [-73.959875, 40.696068], - [-73.955561, 40.69903], - [-73.95165, 40.702298], - [-73.94818, 40.705841], - [-73.945184, 40.709624], - [-73.942692, 40.713612], - [-73.940727, 40.717766], - [-73.939309, 40.722046], - [-73.938451, 40.726411], - [-73.938161, 40.730818], - [-73.938443, 40.735225], - [-73.939294, 40.739591], - [-73.940705, 40.743872], - [-73.942664, 40.748028], - [-73.945151, 40.752018], - [-73.948143, 40.755804], - [-73.951611, 40.75935], - [-73.955521, 40.762621], - [-73.959836, 40.765586], - [-73.964515, 40.768216], - [-73.969511, 40.770486], - [-73.974778, 40.772374], - [-73.980264, 40.773862], - [-73.985916, 40.774934], - [-73.99168, 40.775582], - [-73.9975, 40.775799] + [-73.9975, 40.775835], + [-74.003325, 40.775618], + [-74.009093, 40.77497], + [-74.01475, 40.773896], + [-74.02024, 40.772407], + [-74.025511, 40.770518], + [-74.030512, 40.768246], + [-74.035194, 40.765614], + [-74.039513, 40.762647], + [-74.043426, 40.759373], + [-74.046897, 40.755824], + [-74.049891, 40.752035], + [-74.05238, 40.748042], + [-74.054341, 40.743882], + [-74.055753, 40.739598], + [-74.056605, 40.735229], + [-74.056887, 40.730818], + [-74.056597, 40.726407], + [-74.055738, 40.722039], + [-74.054318, 40.717756], + [-74.052352, 40.713598], + [-74.049858, 40.709607], + [-74.04686, 40.705821], + [-74.043387, 40.702275], + [-74.039473, 40.699004], + [-74.035155, 40.69604], + [-74.030475, 40.69341], + [-74.025478, 40.691141], + [-74.020212, 40.689254], + [-74.014728, 40.687767], + [-74.009078, 40.686695], + [-74.003317, 40.686047], + [-73.9975, 40.685831], + [-73.991683, 40.686047], + [-73.985922, 40.686695], + [-73.980272, 40.687767], + [-73.974788, 40.689254], + [-73.969522, 40.691141], + [-73.964525, 40.69341], + [-73.959845, 40.69604], + [-73.955527, 40.699004], + [-73.951613, 40.702275], + [-73.94814, 40.705821], + [-73.945142, 40.709607], + [-73.942648, 40.713598], + [-73.940682, 40.717756], + [-73.939262, 40.722039], + [-73.938403, 40.726407], + [-73.938113, 40.730818], + [-73.938395, 40.735229], + [-73.939247, 40.739598], + [-73.940659, 40.743882], + [-73.94262, 40.748042], + [-73.945109, 40.752035], + [-73.948103, 40.755824], + [-73.951574, 40.759373], + [-73.955487, 40.762647], + [-73.959806, 40.765614], + [-73.964488, 40.768246], + [-73.969489, 40.770518], + [-73.97476, 40.772407], + [-73.98025, 40.773896], + [-73.985907, 40.77497], + [-73.991675, 40.775618], + [-73.9975, 40.775835] ] ] } @@ -105,71 +105,71 @@ "type": "Polygon", "coordinates": [ [ - [-74.056839, 40.730818], - [-74.055302, 40.732853], - [-74.052325, 40.734262], - [-74.048754, 40.735355], - [-74.044876, 40.736239], - [-74.040832, 40.73697], - [-74.036706, 40.737578], - [-74.032549, 40.738085], - [-74.028398, 40.738507], - [-74.024279, 40.738856], - [-74.020211, 40.739139], - [-74.016209, 40.739366], - [-74.012284, 40.739542], - [-74.008444, 40.739671], - [-74.004697, 40.73976], - [-74.001048, 40.73981], - [-73.9975, 40.739826], - [-73.993952, 40.73981], - [-73.990303, 40.73976], - [-73.986556, 40.739671], - [-73.982716, 40.739542], - [-73.978791, 40.739366], - [-73.974789, 40.739139], - [-73.970721, 40.738856], - [-73.966602, 40.738507], - [-73.962451, 40.738085], - [-73.958294, 40.737578], - [-73.954168, 40.73697], - [-73.950124, 40.736239], - [-73.946246, 40.735355], - [-73.942675, 40.734262], - [-73.939698, 40.732853], - [-73.938161, 40.730818], - [-73.939701, 40.728784], - [-73.942681, 40.727378], - [-73.946253, 40.726289], - [-73.950132, 40.725407], - [-73.954176, 40.72468], - [-73.958302, 40.724075], - [-73.962459, 40.72357], - [-73.966609, 40.723151], - [-73.970728, 40.722804], - [-73.974795, 40.722522], - [-73.978796, 40.722297], - [-73.98272, 40.722122], - [-73.986559, 40.721994], - [-73.990305, 40.721906], - [-73.993953, 40.721856], - [-73.9975, 40.72184], - [-74.001047, 40.721856], - [-74.004695, 40.721906], - [-74.008441, 40.721994], - [-74.01228, 40.722122], - [-74.016204, 40.722297], - [-74.020205, 40.722522], - [-74.024272, 40.722804], - [-74.028391, 40.723151], - [-74.032541, 40.72357], - [-74.036698, 40.724075], - [-74.040824, 40.72468], - [-74.044868, 40.725407], - [-74.048747, 40.726289], - [-74.052319, 40.727378], - [-74.055299, 40.728784], - [-74.056839, 40.730818] + [-74.056922, 40.730818], + [-74.055384, 40.732856], + [-74.052402, 40.734266], + [-74.048826, 40.735361], + [-74.044942, 40.736247], + [-74.040893, 40.736978], + [-74.036761, 40.737587], + [-74.032598, 40.738095], + [-74.028441, 40.738518], + [-74.024316, 40.738867], + [-74.020243, 40.739151], + [-74.016235, 40.739378], + [-74.012305, 40.739554], + [-74.00846, 40.739684], + [-74.004707, 40.739772], + [-74.001053, 40.739823], + [-73.9975, 40.739839], + [-73.993947, 40.739823], + [-73.990293, 40.739772], + [-73.98654, 40.739684], + [-73.982695, 40.739554], + [-73.978765, 40.739378], + [-73.974757, 40.739151], + [-73.970684, 40.738867], + [-73.966559, 40.738518], + [-73.962402, 40.738095], + [-73.958239, 40.737587], + [-73.954107, 40.736978], + [-73.950058, 40.736247], + [-73.946174, 40.735361], + [-73.942598, 40.734266], + [-73.939616, 40.732856], + [-73.938078, 40.730818], + [-73.93962, 40.728781], + [-73.942604, 40.727374], + [-73.946181, 40.726282], + [-73.950065, 40.7254], + [-73.954115, 40.724672], + [-73.958247, 40.724066], + [-73.96241, 40.72356], + [-73.966566, 40.72314], + [-73.97069, 40.722793], + [-73.974763, 40.72251], + [-73.97877, 40.722285], + [-73.982699, 40.72211], + [-73.986543, 40.721981], + [-73.990295, 40.721893], + [-73.993948, 40.721843], + [-73.9975, 40.721827], + [-74.001052, 40.721843], + [-74.004705, 40.721893], + [-74.008457, 40.721981], + [-74.012301, 40.72211], + [-74.01623, 40.722285], + [-74.020237, 40.72251], + [-74.02431, 40.722793], + [-74.028434, 40.72314], + [-74.03259, 40.72356], + [-74.036753, 40.724066], + [-74.040885, 40.724672], + [-74.044935, 40.7254], + [-74.048819, 40.726282], + [-74.052396, 40.727374], + [-74.05538, 40.728781], + [-74.056922, 40.730818] ] ] } @@ -186,71 +186,71 @@ "type": "Polygon", "coordinates": [ [ - [-73.9975, 40.775799], - [-73.994813, 40.774633], - [-73.992956, 40.772376], - [-73.991515, 40.769669], - [-73.990349, 40.76673], - [-73.989387, 40.763666], - [-73.988587, 40.760539], - [-73.987919, 40.757389], - [-73.987364, 40.754244], - [-73.986906, 40.751122], - [-73.986533, 40.74804], - [-73.986235, 40.745008], - [-73.986004, 40.742034], - [-73.985834, 40.739125], - [-73.985719, 40.736286], - [-73.985653, 40.73352], - [-73.985632, 40.730832], - [-73.985654, 40.728144], - [-73.985721, 40.725379], - [-73.985837, 40.72254], - [-73.986008, 40.719631], - [-73.98624, 40.716657], - [-73.986538, 40.713625], - [-73.986912, 40.710543], - [-73.987371, 40.707422], - [-73.987927, 40.704276], - [-73.988595, 40.701126], - [-73.989395, 40.697999], - [-73.990357, 40.694935], - [-73.991522, 40.691996], - [-73.992961, 40.68929], - [-73.994817, 40.687033], - [-73.9975, 40.685867], - [-74.000183, 40.687033], - [-74.002039, 40.68929], - [-74.003478, 40.691996], - [-74.004643, 40.694935], - [-74.005605, 40.697999], - [-74.006405, 40.701126], - [-74.007073, 40.704276], - [-74.007629, 40.707422], - [-74.008088, 40.710543], - [-74.008462, 40.713625], - [-74.00876, 40.716657], - [-74.008992, 40.719631], - [-74.009163, 40.72254], - [-74.009279, 40.725379], - [-74.009346, 40.728144], - [-74.009368, 40.730832], - [-74.009347, 40.73352], - [-74.009281, 40.736286], - [-74.009166, 40.739125], - [-74.008996, 40.742034], - [-74.008765, 40.745008], - [-74.008467, 40.74804], - [-74.008094, 40.751122], - [-74.007636, 40.754244], - [-74.007081, 40.757389], - [-74.006413, 40.760539], - [-74.005613, 40.763666], - [-74.004651, 40.76673], - [-74.003485, 40.769669], - [-74.002044, 40.772376], - [-74.000187, 40.774633], - [-73.9975, 40.775799] + [-73.9975, 40.775862], + [-73.99481, 40.774695], + [-73.992949, 40.772435], + [-73.991506, 40.769724], + [-73.990339, 40.766781], + [-73.989376, 40.763712], + [-73.988574, 40.760581], + [-73.987906, 40.757426], + [-73.98735, 40.754277], + [-73.986891, 40.751151], + [-73.986517, 40.748064], + [-73.986219, 40.745028], + [-73.985988, 40.74205], + [-73.985818, 40.739136], + [-73.985702, 40.736293], + [-73.985636, 40.733524], + [-73.985616, 40.730832], + [-73.985637, 40.728141], + [-73.985704, 40.725372], + [-73.985821, 40.722528], + [-73.985992, 40.719615], + [-73.986224, 40.716637], + [-73.986523, 40.713601], + [-73.986897, 40.710514], + [-73.987357, 40.707389], + [-73.987913, 40.704239], + [-73.988582, 40.701084], + [-73.989384, 40.697953], + [-73.990347, 40.694885], + [-73.991513, 40.691942], + [-73.992955, 40.689231], + [-73.994813, 40.686971], + [-73.9975, 40.685804], + [-74.000187, 40.686971], + [-74.002045, 40.689231], + [-74.003487, 40.691942], + [-74.004653, 40.694885], + [-74.005616, 40.697953], + [-74.006418, 40.701084], + [-74.007087, 40.704239], + [-74.007643, 40.707389], + [-74.008103, 40.710514], + [-74.008477, 40.713601], + [-74.008776, 40.716637], + [-74.009008, 40.719615], + [-74.009179, 40.722528], + [-74.009296, 40.725372], + [-74.009363, 40.728141], + [-74.009384, 40.730832], + [-74.009364, 40.733524], + [-74.009298, 40.736293], + [-74.009182, 40.739136], + [-74.009012, 40.74205], + [-74.008781, 40.745028], + [-74.008483, 40.748064], + [-74.008109, 40.751151], + [-74.00765, 40.754277], + [-74.007094, 40.757426], + [-74.006426, 40.760581], + [-74.005624, 40.763712], + [-74.004661, 40.766781], + [-74.003494, 40.769724], + [-74.002051, 40.772435], + [-74.00019, 40.774695], + [-73.9975, 40.775862] ] ] } diff --git a/packages/turf-helpers/README.md b/packages/turf-helpers/README.md index 21e253f37a..0cd33a67cf 100644 --- a/packages/turf-helpers/README.md +++ b/packages/turf-helpers/README.md @@ -569,6 +569,34 @@ turf.isObject('foo') Returns **[boolean][23]** true/false, including false for Arrays and Functions +## calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle + +Calculates the length of the circum radius of a regular polygon that best approximates a circle +with an equal area. The degree of the polygon is determined by steps. + +### Parameters + +* `circleRadius` **[number][13]** The radius of the target circle. +* `steps` **[number][13]** The degree of the regular polygon. (optional, default `64`) + +Returns **[number][13]** The length of the circum radius in the same units as circleRadius. + +## calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle + +Calculates the number of sides of a regular polygon that best approximates a circle +with an equal area, while not exceeding an allowable rim deviation in meters. + +This function determines the optimal number of sides for a regular polygon that +closely matches the area of a given circle while not exceeding an acceptable error +tolerance in the polygon's circumradius. + +### Parameters + +* `circleRadius` **[number][13]** The radius of the target circle. +* `maximumRimDeviation` **[number][13]?** The maximum allowable error for the polygon's circumradius when approximating the circle. + +Returns **[number][13]** The number of sides of the best-fit regular polygon. + [1]: https://www.thoughtco.com/degree-of-latitude-and-longitude-distance-4070616 [2]: #units diff --git a/packages/turf-helpers/index.ts b/packages/turf-helpers/index.ts index b4fc01ee57..bddeaecf56 100644 --- a/packages/turf-helpers/index.ts +++ b/packages/turf-helpers/index.ts @@ -837,6 +837,84 @@ export function isObject(input: any): boolean { return input !== null && typeof input === "object" && !Array.isArray(input); } +/** + * Calculates the length of the circum radius of a regular polygon that best approximates a circle + * with an equal area. The degree of the polygon is determined by steps. + * + * @function + * @param {number} circleRadius The radius of the target circle. + * @param {number} steps The degree of the regular polygon. + * @returns {number} The length of the circum radius in the same units as circleRadius. + */ +export function calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle( + circleRadius: number, + steps: number = 64 +): number { + if (circleRadius <= 0) { + throw new Error("circleRadius must be positive"); + } + steps = Math.max(3, Math.ceil(steps)); // ensure at least a triangle + // METHOD: construct a polygon with the same area as the circle, this minimizes the overall distance from the circle to the perimeter of the polygon, and is a better estimate of the circle than say an inscribed polygon + const circleArea = Math.PI * circleRadius * circleRadius; + const phi = Math.PI / steps; // angle between apothem and radius + // 1. calculate the polygonArea: + // polygonArea = circumRadius * sin(phi) * circumRadius * cos(phi) * steps + // polygonArea = circumRadius * circumRadius * 1/2 * sin(2 * phi) * steps // via double angle identity + // 2. set circleArea equal to polygonArea: + // circleArea = polygonArea + // circleArea = circumRadius * circumRadius * 1/2 * sin(2 * phi) * steps + // 3. solve for the circumRadius + // circleArea * 2.0 / (sin(2 * phi) * steps) = circumRadiusInMeters * circumRadiusInMeters + const circumRadiusInMeters = Math.sqrt( + (circleArea * 2.0) / (Math.sin(2.0 * phi) * steps) + ); + + return circumRadiusInMeters; +} + +/** + * Calculates the number of sides of a regular polygon that best approximates a circle + * with an equal area, while not exceeding an allowable rim deviation in meters. + * + * This function determines the optimal number of sides for a regular polygon that + * closely matches the area of a given circle while not exceeding an acceptable error + * tolerance in the polygon's circumradius. + * + * @function + * @param {number} circleRadius The radius of the target circle. + * @param {number} [maximumRimDeviation] The maximum allowable error for the polygon's circumradius when approximating the circle. + * @returns {number} The number of sides of the best-fit regular polygon. + */ +export function calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle( + circleRadius: number, + maximumRimDeviation: number +): number { + if (circleRadius <= 0) { + throw new Error("circleRadius must be positive"); + } + if (maximumRimDeviation <= 0) { + throw new Error("maximumRimDeviation must be positive"); + } + // step 1: assume highest allowable error + const circumRadius = circleRadius + maximumRimDeviation; + + // step 2: equate the area of the circle to the area of the polygon and solve for the number of sides + // Math.PI * circleRadius * circleRadius = circumRadius * circumRadius * 1/2 * sin(2 * Math.PI / numberOfSides) * numberOfSides + // 2 * Math.PI * circleRadius * circleRadius / circumRadius * circumRadius = sin(2 * Math.PI / numberOfSides) * numberOfSides + // let x = 2 * pi/numberOfSides + // sin(x)* 2pi/x = 2 * pi * circleRadius * circleRadius / circumRadius * circumRadius + // use taylor series to approximate sin(x) * x ≈ 1 - x*x/6 + // 1 - x*x/6 ≈ (circleRadius * circleRadius) / (circumRadius * circumRadius) + // re-sub and solve for numberOfSides + const approximateNumberOfSides = + (2 * Math.PI) / + Math.sqrt( + 6 * (1 - (circleRadius * circleRadius) / (circumRadius * circumRadius)) + ); + + return Math.max(3, Math.ceil(approximateNumberOfSides)); +} + /** * Validate BBox * diff --git a/packages/turf-helpers/package.json b/packages/turf-helpers/package.json index cf92218a95..022c74bb28 100644 --- a/packages/turf-helpers/package.json +++ b/packages/turf-helpers/package.json @@ -4,9 +4,10 @@ "description": "Provides helper functions to create GeoJSON features, like points, lines, or areas on a map.", "author": "Turf Authors", "contributors": [ - "Tom MacWright <@tmcw>", - "Stefano Borghi <@stebogit>", "Denis Carriere <@DenisCarriere>", + "Scott Wiedemann <@lemmingapex>", + "Stefano Borghi <@stebogit>", + "Tom MacWright <@tmcw>", "William Nordmann <@wnordmann>" ], "license": "MIT", diff --git a/packages/turf-line-arc/README.md b/packages/turf-line-arc/README.md index 97609db470..c3b4f236c0 100644 --- a/packages/turf-line-arc/README.md +++ b/packages/turf-line-arc/README.md @@ -16,6 +16,7 @@ Creates a circular arc, of a circle of the given radius and center point, betwee * `options` **[Object][3]** Optional parameters (optional, default `{}`) * `options.steps` **[number][2]** number of steps (straight segments) that will constitute the arc (optional, default `64`) + * `options.maximumRimDeviation` **[number][2]?** if provided, will ignore steps and use a number of steps such that the rim of returned approximate regular polygon is at most this far away from the true arc * `options.units` **Units** Supports all valid Turf [Units][4]. (optional, default `'kilometers'`) ### Examples diff --git a/packages/turf-line-arc/index.ts b/packages/turf-line-arc/index.ts index efc7c03c48..7d25fe2d4e 100644 --- a/packages/turf-line-arc/index.ts +++ b/packages/turf-line-arc/index.ts @@ -1,7 +1,13 @@ import { Feature, LineString } from "geojson"; import { circle } from "@turf/circle"; import { destination } from "@turf/destination"; -import { Coord, lineString, Units } from "@turf/helpers"; +import { + calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle, + calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle, + Coord, + lineString, + Units, +} from "@turf/helpers"; /** * Creates a circular arc, of a circle of the given radius and center point, between bearing1 and bearing2; @@ -14,6 +20,7 @@ import { Coord, lineString, Units } from "@turf/helpers"; * @param {number} bearing2 angle, in decimal degrees, of the second radius of the arc * @param {Object} [options={}] Optional parameters * @param {number} [options.steps=64] number of steps (straight segments) that will constitute the arc + * @param {number} [options.maximumRimDeviation] if provided, will ignore steps and use a number of steps such that the rim of returned approximate regular polygon is at most this far away from the true arc * @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units}. * @returns {Feature} line arc * @example @@ -34,11 +41,19 @@ function lineArc( bearing2: number, options: { steps?: number; + maximumRimDeviation?: number; units?: Units; } = {} ): Feature { // default params - const steps = options.steps || 64; + let steps = options.steps || 64; + if (options.maximumRimDeviation && options.maximumRimDeviation > 0) { + steps = + calculateNumberOfRegularPolygonSidesToBestApproximateEqualAreaCircle( + radius, + options.maximumRimDeviation + ); + } const angle1 = convertAngleTo360(bearing1); const angle2 = convertAngleTo360(bearing2); @@ -47,10 +62,13 @@ function lineArc( ? center.properties : {}; + const circumRadius = + calculatePolygonCircumRadiusToBestApproximateEqualAreaCircle(radius, steps); + // handle angle parameters if (angle1 === angle2) { return lineString( - circle(center, radius, options).geometry.coordinates[0], + circle(center, circumRadius, options).geometry.coordinates[0], properties ); } @@ -66,7 +84,7 @@ function lineArc( // (alpha) by arcStep degrees until we reach the end bearing. while (alpha <= arcEndDegree) { coordinates.push( - destination(center, radius, alpha, options).geometry.coordinates + destination(center, circumRadius, alpha, options).geometry.coordinates ); i++; alpha = arcStartDegree + i * arcStep; diff --git a/packages/turf-line-arc/package.json b/packages/turf-line-arc/package.json index 4cd34680ab..ffcab6f9e3 100644 --- a/packages/turf-line-arc/package.json +++ b/packages/turf-line-arc/package.json @@ -3,6 +3,9 @@ "version": "7.2.0", "description": "Creates a circular arc, of a circle of the given radius and center point, between two bearings.", "author": "Turf Authors", + "contributors": [ + "Scott Wiedemann <@lemmingapex>" + ], "license": "MIT", "bugs": { "url": "https://github.com/Turfjs/turf/issues" diff --git a/packages/turf-line-arc/test/out/line-arc-full-360.geojson b/packages/turf-line-arc/test/out/line-arc-full-360.geojson index ca7443d504..443125511f 100644 --- a/packages/turf-line-arc/test/out/line-arc-full-360.geojson +++ b/packages/turf-line-arc/test/out/line-arc-full-360.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.343, 44.539966], - [11.336816, 44.539749], - [11.330693, 44.539101], - [11.324687, 44.538028], - [11.318859, 44.536541], - [11.313264, 44.534653], - [11.307955, 44.532383], - [11.302985, 44.529752], - [11.298401, 44.526787], - [11.294247, 44.523516], - [11.290563, 44.51997], - [11.287385, 44.516183], - [11.284743, 44.512193], - [11.282663, 44.508037], - [11.281164, 44.503756], - [11.28026, 44.49939], - [11.279962, 44.494983], - [11.28027, 44.490575], - [11.281182, 44.486211], - [11.28269, 44.481931], - [11.284777, 44.477777], - [11.287425, 44.47379], - [11.290608, 44.470006], - [11.294294, 44.466464], - [11.298449, 44.463196], - [11.303033, 44.460234], - [11.308, 44.457607], - [11.313304, 44.45534], - [11.318893, 44.453454], - [11.324714, 44.451969], - [11.330711, 44.450897], - [11.336826, 44.45025], - [11.343, 44.450034], - [11.349174, 44.45025], - [11.355289, 44.450897], - [11.361286, 44.451969], - [11.367107, 44.453454], - [11.372696, 44.45534], - [11.378, 44.457607], - [11.382967, 44.460234], - [11.387551, 44.463196], - [11.391706, 44.466464], - [11.395392, 44.470006], - [11.398575, 44.47379], - [11.401223, 44.477777], - [11.40331, 44.481931], - [11.404818, 44.486211], - [11.40573, 44.490575], - [11.406038, 44.494983], - [11.40574, 44.49939], - [11.404836, 44.503756], - [11.403337, 44.508037], - [11.401257, 44.512193], - [11.398615, 44.516183], - [11.395437, 44.51997], - [11.391753, 44.523516], - [11.387599, 44.526787], - [11.383015, 44.529752], - [11.378045, 44.532383], - [11.372736, 44.534653], - [11.367141, 44.536541], - [11.361313, 44.538028], - [11.355307, 44.539101], - [11.349184, 44.539749], - [11.343, 44.539966] + [11.343, 44.540038], + [11.336806, 44.539821], + [11.330673, 44.539172], + [11.324658, 44.538098], + [11.31882, 44.536607], + [11.313216, 44.534716], + [11.307899, 44.532443], + [11.302921, 44.529808], + [11.298329, 44.526838], + [11.294168, 44.523562], + [11.290479, 44.52001], + [11.287295, 44.516217], + [11.284649, 44.512221], + [11.282565, 44.508058], + [11.281064, 44.50377], + [11.28016, 44.499397], + [11.27986, 44.494983], + [11.280169, 44.490568], + [11.281083, 44.486197], + [11.282593, 44.48191], + [11.284684, 44.47775], + [11.287336, 44.473756], + [11.290524, 44.469966], + [11.294216, 44.466418], + [11.298378, 44.463144], + [11.302968, 44.460178], + [11.307944, 44.457547], + [11.313256, 44.455276], + [11.318855, 44.453387], + [11.324685, 44.4519], + [11.330691, 44.450826], + [11.336816, 44.450178], + [11.343, 44.449962], + [11.349184, 44.450178], + [11.355309, 44.450826], + [11.361315, 44.4519], + [11.367145, 44.453387], + [11.372744, 44.455276], + [11.378056, 44.457547], + [11.383032, 44.460178], + [11.387622, 44.463144], + [11.391784, 44.466418], + [11.395476, 44.469966], + [11.398664, 44.473756], + [11.401316, 44.47775], + [11.403407, 44.48191], + [11.404917, 44.486197], + [11.405831, 44.490568], + [11.40614, 44.494983], + [11.40584, 44.499397], + [11.404936, 44.50377], + [11.403435, 44.508058], + [11.401351, 44.512221], + [11.398705, 44.516217], + [11.395521, 44.52001], + [11.391832, 44.523562], + [11.387671, 44.526838], + [11.383079, 44.529808], + [11.378101, 44.532443], + [11.372784, 44.534716], + [11.36718, 44.536607], + [11.361342, 44.538098], + [11.355327, 44.539172], + [11.349194, 44.539821], + [11.343, 44.540038] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc-greater-360.geojson b/packages/turf-line-arc/test/out/line-arc-greater-360.geojson index a22155c6ac..90c3793b1e 100644 --- a/packages/turf-line-arc/test/out/line-arc-greater-360.geojson +++ b/packages/turf-line-arc/test/out/line-arc-greater-360.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.343, 44.539966], - [11.343344, 44.539965], - [11.343688, 44.539963], - [11.344032, 44.53996], - [11.344376, 44.539955], - [11.34472, 44.539949], - [11.345064, 44.539942], - [11.345408, 44.539933], - [11.345752, 44.539923], - [11.346096, 44.539912], - [11.346439, 44.539899], - [11.346783, 44.539885], - [11.347126, 44.53987], - [11.347469, 44.539853], - [11.347813, 44.539835], - [11.348156, 44.539816], - [11.348498, 44.539795], - [11.348841, 44.539773], - [11.349184, 44.539749], - [11.349526, 44.539725], - [11.349868, 44.539699], - [11.35021, 44.539671], - [11.350552, 44.539642], - [11.350893, 44.539612], - [11.351234, 44.539581], - [11.351575, 44.539548], - [11.351916, 44.539514], - [11.352257, 44.539479], - [11.352597, 44.539442], - [11.352937, 44.539404], - [11.353276, 44.539365], - [11.353616, 44.539324], - [11.353955, 44.539282], - [11.354294, 44.539239], - [11.354632, 44.539194], - [11.35497, 44.539149], - [11.355307, 44.539101], - [11.355645, 44.539053], - [11.355982, 44.539003], - [11.356318, 44.538952], - [11.356654, 44.538899], - [11.35699, 44.538846], - [11.357325, 44.53879], - [11.35766, 44.538734], - [11.357995, 44.538676], - [11.358329, 44.538617], - [11.358662, 44.538557], - [11.358995, 44.538496], - [11.359328, 44.538433], - [11.35966, 44.538369], - [11.359991, 44.538303], - [11.360322, 44.538236], - [11.360653, 44.538168], - [11.360983, 44.538099], - [11.361313, 44.538028], - [11.361642, 44.537956], - [11.36197, 44.537883], - [11.362298, 44.537809], - [11.362625, 44.537733], - [11.362952, 44.537656], - [11.363278, 44.537578], - [11.363603, 44.537498], - [11.363928, 44.537418], - [11.364252, 44.537336], - [11.364576, 44.537252] + [11.343, 44.540002], + [11.343344, 44.540001], + [11.343689, 44.539999], + [11.344033, 44.539996], + [11.344377, 44.539991], + [11.344722, 44.539985], + [11.345066, 44.539978], + [11.34541, 44.539969], + [11.345754, 44.539959], + [11.346098, 44.539948], + [11.346442, 44.539935], + [11.346786, 44.539921], + [11.347129, 44.539906], + [11.347473, 44.539889], + [11.347816, 44.539871], + [11.34816, 44.539852], + [11.348503, 44.539831], + [11.348846, 44.539809], + [11.349189, 44.539785], + [11.349531, 44.539761], + [11.349874, 44.539734], + [11.350216, 44.539707], + [11.350558, 44.539678], + [11.3509, 44.539648], + [11.351241, 44.539617], + [11.351582, 44.539584], + [11.351923, 44.53955], + [11.352264, 44.539515], + [11.352605, 44.539478], + [11.352945, 44.53944], + [11.353285, 44.539401], + [11.353624, 44.53936], + [11.353964, 44.539318], + [11.354303, 44.539275], + [11.354641, 44.53923], + [11.354979, 44.539184], + [11.355317, 44.539137], + [11.355655, 44.539088], + [11.355992, 44.539038], + [11.356329, 44.538987], + [11.356665, 44.538935], + [11.357001, 44.538881], + [11.357337, 44.538826], + [11.357672, 44.538769], + [11.358007, 44.538712], + [11.358341, 44.538652], + [11.358675, 44.538592], + [11.359008, 44.538531], + [11.359341, 44.538468], + [11.359673, 44.538403], + [11.360005, 44.538338], + [11.360336, 44.538271], + [11.360667, 44.538203], + [11.360998, 44.538134], + [11.361327, 44.538063], + [11.361657, 44.537991], + [11.361985, 44.537918], + [11.362313, 44.537843], + [11.362641, 44.537767], + [11.362968, 44.53769], + [11.363294, 44.537612], + [11.36362, 44.537533], + [11.363945, 44.537452], + [11.36427, 44.53737], + [11.364593, 44.537286] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc-one-step.geojson b/packages/turf-line-arc/test/out/line-arc-one-step.geojson index aae28c16bf..4f478d6e5f 100644 --- a/packages/turf-line-arc/test/out/line-arc-one-step.geojson +++ b/packages/turf-line-arc/test/out/line-arc-one-step.geojson @@ -25,8 +25,8 @@ "geometry": { "type": "LineString", "coordinates": [ - [17.014763, 46.606416], - [17.240322, 46.246701] + [20.347468, 47.650932], + [20.668076, 47.082465] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc-zero-steps.geojson b/packages/turf-line-arc/test/out/line-arc-zero-steps.geojson index c43632b441..c85c616e4e 100644 --- a/packages/turf-line-arc/test/out/line-arc-zero-steps.geojson +++ b/packages/turf-line-arc/test/out/line-arc-zero-steps.geojson @@ -25,71 +25,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [17.014763, 46.606416], - [17.018658, 46.600907], - [17.022542, 46.595393], - [17.026413, 46.589876], - [17.030274, 46.584356], - [17.034122, 46.578831], - [17.037959, 46.573303], - [17.041784, 46.567771], - [17.045597, 46.562236], - [17.049399, 46.556697], - [17.053189, 46.551154], - [17.056967, 46.545607], - [17.060733, 46.540057], - [17.064488, 46.534503], - [17.068231, 46.528946], - [17.071962, 46.523385], - [17.075682, 46.51782], - [17.079389, 46.512252], - [17.083085, 46.50668], - [17.086769, 46.501105], - [17.090442, 46.495526], - [17.094102, 46.489943], - [17.097751, 46.484357], - [17.101388, 46.478768], - [17.105013, 46.473174], - [17.108627, 46.467578], - [17.112228, 46.461978], - [17.115818, 46.456374], - [17.119396, 46.450767], - [17.122963, 46.445157], - [17.126517, 46.439543], - [17.13006, 46.433925], - [17.133591, 46.428305], - [17.13711, 46.42268], - [17.140617, 46.417053], - [17.144112, 46.411422], - [17.147596, 46.405787], - [17.151068, 46.40015], - [17.154528, 46.394508], - [17.157976, 46.388864], - [17.161412, 46.383216], - [17.164836, 46.377565], - [17.168249, 46.371911], - [17.171649, 46.366253], - [17.175038, 46.360592], - [17.178415, 46.354928], - [17.18178, 46.34926], - [17.185134, 46.34359], - [17.188475, 46.337916], - [17.191805, 46.332238], - [17.195122, 46.326558], - [17.198428, 46.320874], - [17.201722, 46.315187], - [17.205004, 46.309497], - [17.208274, 46.303804], - [17.211533, 46.298108], - [17.214779, 46.292408], - [17.218013, 46.286706], - [17.221236, 46.281], - [17.224447, 46.275291], - [17.227646, 46.269579], - [17.230832, 46.263864], - [17.234007, 46.258146], - [17.237171, 46.252425], - [17.240322, 46.246701] + [17.019493, 46.607997], + [17.023391, 46.602483], + [17.027278, 46.596966], + [17.031152, 46.591444], + [17.035015, 46.585919], + [17.038866, 46.58039], + [17.042706, 46.574857], + [17.046534, 46.569321], + [17.05035, 46.563781], + [17.054154, 46.558237], + [17.057946, 46.552689], + [17.061727, 46.547138], + [17.065496, 46.541583], + [17.069254, 46.536025], + [17.072999, 46.530463], + [17.076733, 46.524897], + [17.080455, 46.519328], + [17.084165, 46.513755], + [17.087864, 46.508179], + [17.09155, 46.502599], + [17.095225, 46.497015], + [17.098888, 46.491428], + [17.10254, 46.485837], + [17.106179, 46.480243], + [17.109807, 46.474645], + [17.113423, 46.469044], + [17.117027, 46.463439], + [17.12062, 46.457831], + [17.1242, 46.452219], + [17.127769, 46.446604], + [17.131326, 46.440986], + [17.134871, 46.435364], + [17.138404, 46.429738], + [17.141926, 46.424109], + [17.145435, 46.418477], + [17.148933, 46.412841], + [17.152419, 46.407202], + [17.155893, 46.40156], + [17.159355, 46.395914], + [17.162806, 46.390265], + [17.166244, 46.384613], + [17.169671, 46.378957], + [17.173086, 46.373298], + [17.176489, 46.367635], + [17.17988, 46.36197], + [17.18326, 46.356301], + [17.186627, 46.350629], + [17.189982, 46.344953], + [17.193326, 46.339274], + [17.196658, 46.333592], + [17.199978, 46.327907], + [17.203286, 46.322219], + [17.206582, 46.316527], + [17.209866, 46.310833], + [17.213139, 46.305135], + [17.216399, 46.299434], + [17.219648, 46.29373], + [17.222884, 46.288022], + [17.226109, 46.282312], + [17.229322, 46.276598], + [17.232523, 46.270881], + [17.235712, 46.265162], + [17.238889, 46.259439], + [17.242054, 46.253713], + [17.245208, 46.247984] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc1.geojson b/packages/turf-line-arc/test/out/line-arc1.geojson index 85e64cac6f..8b63969784 100644 --- a/packages/turf-line-arc/test/out/line-arc1.geojson +++ b/packages/turf-line-arc/test/out/line-arc1.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.364576, 44.537252], - [11.365221, 44.537082], - [11.365864, 44.536906], - [11.366504, 44.536726], - [11.367141, 44.536541], - [11.367775, 44.53635], - [11.368406, 44.536155], - [11.369035, 44.535955], - [11.36966, 44.53575], - [11.370282, 44.53554], - [11.3709, 44.535325], - [11.371516, 44.535106], - [11.372128, 44.534882], - [11.372736, 44.534653], - [11.373341, 44.534419], - [11.373943, 44.53418], - [11.37454, 44.533937], - [11.375134, 44.53369], - [11.375724, 44.533437], - [11.37631, 44.53318], - [11.376893, 44.532919], - [11.377471, 44.532653], - [11.378045, 44.532383], - [11.378615, 44.532108], - [11.37918, 44.531828], - [11.379741, 44.531545], - [11.380298, 44.531257], - [11.380851, 44.530964], - [11.381399, 44.530668], - [11.381942, 44.530367], - [11.382481, 44.530062], - [11.383015, 44.529752], - [11.383544, 44.529439], - [11.384069, 44.529121], - [11.384588, 44.5288], - [11.385103, 44.528474], - [11.385612, 44.528145], - [11.386117, 44.527811], - [11.386616, 44.527474], - [11.38711, 44.527132], - [11.387599, 44.526787], - [11.388083, 44.526438], - [11.388561, 44.526086], - [11.389034, 44.525729], - [11.389501, 44.525369], - [11.389963, 44.525006], - [11.390419, 44.524638], - [11.390869, 44.524268], - [11.391314, 44.523893], - [11.391753, 44.523516], - [11.392186, 44.523135], - [11.392614, 44.52275], - [11.393035, 44.522363], - [11.393451, 44.521972], - [11.39386, 44.521578], - [11.394264, 44.52118], - [11.394661, 44.52078], - [11.395052, 44.520376], - [11.395437, 44.51997], - [11.395816, 44.51956], - [11.396188, 44.519148], - [11.396554, 44.518733], - [11.396914, 44.518314], - [11.397267, 44.517894], - [11.397614, 44.51747] + [11.364593, 44.537286], + [11.365239, 44.537116], + [11.365882, 44.53694], + [11.366523, 44.53676], + [11.36716, 44.536574], + [11.367795, 44.536384], + [11.368427, 44.536188], + [11.369056, 44.535988], + [11.369681, 44.535783], + [11.370304, 44.535573], + [11.370923, 44.535358], + [11.371539, 44.535138], + [11.372151, 44.534914], + [11.37276, 44.534685], + [11.373366, 44.534451], + [11.373968, 44.534212], + [11.374566, 44.533969], + [11.37516, 44.533721], + [11.375751, 44.533468], + [11.376337, 44.533211], + [11.37692, 44.532949], + [11.377498, 44.532683], + [11.378073, 44.532413], + [11.378643, 44.532137], + [11.379209, 44.531858], + [11.379771, 44.531574], + [11.380328, 44.531286], + [11.380881, 44.530993], + [11.38143, 44.530696], + [11.381974, 44.530395], + [11.382513, 44.53009], + [11.383047, 44.52978], + [11.383577, 44.529466], + [11.384102, 44.529149], + [11.384622, 44.528827], + [11.385137, 44.528501], + [11.385647, 44.528171], + [11.386152, 44.527837], + [11.386651, 44.5275], + [11.387146, 44.527158], + [11.387635, 44.526813], + [11.388119, 44.526463], + [11.388598, 44.526111], + [11.389071, 44.525754], + [11.389538, 44.525394], + [11.390001, 44.52503], + [11.390457, 44.524662], + [11.390908, 44.524291], + [11.391353, 44.523917], + [11.391792, 44.523539], + [11.392226, 44.523157], + [11.392654, 44.522773], + [11.393075, 44.522385], + [11.393491, 44.521993], + [11.393901, 44.521599], + [11.394305, 44.521201], + [11.394702, 44.520801], + [11.395094, 44.520397], + [11.395479, 44.51999], + [11.395858, 44.51958], + [11.396231, 44.519167], + [11.396597, 44.518752], + [11.396957, 44.518333], + [11.397311, 44.517912], + [11.397658, 44.517488] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc2.geojson b/packages/turf-line-arc/test/out/line-arc2.geojson index 7c27ae39b7..4099a3d280 100644 --- a/packages/turf-line-arc/test/out/line-arc2.geojson +++ b/packages/turf-line-arc/test/out/line-arc2.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.406038, 44.494983], - [11.405994, 44.493328], - [11.405864, 44.491675], - [11.405649, 44.490027], - [11.405349, 44.488385], - [11.404965, 44.486753], - [11.404496, 44.485131], - [11.403945, 44.483524], - [11.40331, 44.481931], - [11.402595, 44.480357], - [11.401798, 44.478802], - [11.400922, 44.477269], - [11.399967, 44.47576], - [11.398936, 44.474278], - [11.397828, 44.472823], - [11.396646, 44.471399], - [11.395392, 44.470006], - [11.394067, 44.468648], - [11.392673, 44.467325], - [11.391211, 44.466039], - [11.389684, 44.464793], - [11.388094, 44.463588], - [11.386443, 44.462425], - [11.384734, 44.461307], - [11.382967, 44.460234], - [11.381147, 44.459208], - [11.379275, 44.458231], - [11.377354, 44.457303], - [11.375387, 44.456427], - [11.373376, 44.455603], - [11.371323, 44.454832], - [11.369233, 44.454115], - [11.367107, 44.453454], - [11.364948, 44.452849], - [11.36276, 44.452302], - [11.360544, 44.451812], - [11.358306, 44.451381], - [11.356046, 44.451008], - [11.353769, 44.450695], - [11.351477, 44.450443], - [11.349174, 44.45025], - [11.346863, 44.450119], - [11.344546, 44.450048], - [11.342227, 44.450037], - [11.339909, 44.450088], - [11.337596, 44.4502], - [11.335289, 44.450372], - [11.332993, 44.450605], - [11.330711, 44.450897], - [11.328445, 44.45125], - [11.326199, 44.451662], - [11.323976, 44.452132], - [11.321778, 44.452661], - [11.31961, 44.453246], - [11.317472, 44.453889], - [11.315369, 44.454587], - [11.313304, 44.45534], - [11.311279, 44.456146], - [11.309297, 44.457005], - [11.30736, 44.457916], - [11.305471, 44.458877], - [11.303634, 44.459887], - [11.301849, 44.460944], - [11.30012, 44.462047], - [11.298449, 44.463196] + [11.406089, 44.494983], + [11.406045, 44.493326], + [11.405915, 44.491672], + [11.405699, 44.490023], + [11.405399, 44.48838], + [11.405014, 44.486746], + [11.404546, 44.485123], + [11.403994, 44.483514], + [11.403359, 44.481921], + [11.402642, 44.480345], + [11.401845, 44.478789], + [11.400968, 44.477255], + [11.400013, 44.475745], + [11.39898, 44.474261], + [11.397872, 44.472805], + [11.396689, 44.47138], + [11.395434, 44.469986], + [11.394108, 44.468626], + [11.392712, 44.467302], + [11.39125, 44.466016], + [11.389722, 44.464769], + [11.38813, 44.463563], + [11.386478, 44.462399], + [11.384767, 44.46128], + [11.382999, 44.460206], + [11.381178, 44.459179], + [11.379304, 44.458201], + [11.377382, 44.457273], + [11.375413, 44.456396], + [11.3734, 44.455571], + [11.371346, 44.454799], + [11.369254, 44.454082], + [11.367126, 44.453421], + [11.364966, 44.452816], + [11.362775, 44.452267], + [11.360559, 44.451777], + [11.358318, 44.451345], + [11.356057, 44.450973], + [11.353778, 44.45066], + [11.351484, 44.450407], + [11.349179, 44.450214], + [11.346866, 44.450082], + [11.344547, 44.450011], + [11.342226, 44.450001], + [11.339907, 44.450052], + [11.337591, 44.450164], + [11.335283, 44.450336], + [11.332985, 44.450569], + [11.330701, 44.450862], + [11.328434, 44.451215], + [11.326186, 44.451627], + [11.323961, 44.452098], + [11.321761, 44.452627], + [11.319591, 44.453213], + [11.317452, 44.453856], + [11.315347, 44.454554], + [11.31328, 44.455308], + [11.311253, 44.456115], + [11.309269, 44.456975], + [11.307331, 44.457886], + [11.305441, 44.458848], + [11.303602, 44.459858], + [11.301816, 44.460917], + [11.300086, 44.462021], + [11.298414, 44.46317] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc3.geojson b/packages/turf-line-arc/test/out/line-arc3.geojson index 33911f2cc8..588d003e35 100644 --- a/packages/turf-line-arc/test/out/line-arc3.geojson +++ b/packages/turf-line-arc/test/out/line-arc3.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.387599, 44.526787], - [11.390757, 44.524361], - [11.393656, 44.521775], - [11.39628, 44.519044], - [11.398615, 44.516183], - [11.400648, 44.513208], - [11.402369, 44.510133], - [11.403767, 44.506977], - [11.404836, 44.503756], - [11.40557, 44.500487], - [11.405965, 44.497189], - [11.406018, 44.493879], - [11.40573, 44.490575], - [11.405102, 44.487296], - [11.404138, 44.484058], - [11.402842, 44.480879], - [11.401223, 44.477777], - [11.399288, 44.474769], - [11.397048, 44.47187], - [11.394516, 44.469097], - [11.391706, 44.466464], - [11.388631, 44.463985], - [11.38531, 44.461675], - [11.38176, 44.459545], - [11.378, 44.457607], - [11.374051, 44.455871], - [11.369934, 44.454348], - [11.365671, 44.453045], - [11.361286, 44.451969], - [11.356801, 44.451126], - [11.352243, 44.45052], - [11.347634, 44.450156], - [11.343, 44.450034], - [11.338366, 44.450156], - [11.333757, 44.45052], - [11.329199, 44.451126], - [11.324714, 44.451969], - [11.320329, 44.453045], - [11.316066, 44.454348], - [11.311949, 44.455871], - [11.308, 44.457607], - [11.30424, 44.459545], - [11.30069, 44.461675], - [11.297369, 44.463985], - [11.294294, 44.466464], - [11.291484, 44.469097], - [11.288952, 44.47187], - [11.286712, 44.474769], - [11.284777, 44.477777], - [11.283158, 44.480879], - [11.281862, 44.484058], - [11.280898, 44.487296], - [11.28027, 44.490575], - [11.279982, 44.493879], - [11.280035, 44.497189], - [11.28043, 44.500487], - [11.281164, 44.503756], - [11.282233, 44.506977], - [11.283631, 44.510133], - [11.285352, 44.513208], - [11.287385, 44.516183], - [11.28972, 44.519044], - [11.292344, 44.521775], - [11.295243, 44.524361], - [11.298401, 44.526787] + [11.387635, 44.526813], + [11.390796, 44.524384], + [11.393697, 44.521797], + [11.396323, 44.519064], + [11.39866, 44.5162], + [11.400695, 44.513222], + [11.402417, 44.510145], + [11.403816, 44.506987], + [11.404886, 44.503763], + [11.405621, 44.500492], + [11.406015, 44.497191], + [11.406069, 44.493878], + [11.405781, 44.490572], + [11.405152, 44.487289], + [11.404187, 44.484049], + [11.40289, 44.480868], + [11.401269, 44.477764], + [11.399333, 44.474753], + [11.397092, 44.471851], + [11.394558, 44.469076], + [11.391745, 44.466441], + [11.388668, 44.46396], + [11.385344, 44.461648], + [11.381791, 44.459516], + [11.378028, 44.457577], + [11.374076, 44.45584], + [11.369955, 44.454315], + [11.365689, 44.453011], + [11.3613, 44.451934], + [11.356812, 44.45109], + [11.35225, 44.450485], + [11.347638, 44.45012], + [11.343, 44.449998], + [11.338362, 44.45012], + [11.33375, 44.450485], + [11.329188, 44.45109], + [11.3247, 44.451934], + [11.320311, 44.453011], + [11.316045, 44.454315], + [11.311924, 44.45584], + [11.307972, 44.457577], + [11.304209, 44.459516], + [11.300656, 44.461648], + [11.297332, 44.46396], + [11.294255, 44.466441], + [11.291442, 44.469076], + [11.288908, 44.471851], + [11.286667, 44.474753], + [11.284731, 44.477764], + [11.28311, 44.480868], + [11.281813, 44.484049], + [11.280848, 44.487289], + [11.280219, 44.490572], + [11.279931, 44.493878], + [11.279985, 44.497191], + [11.280379, 44.500492], + [11.281114, 44.503763], + [11.282184, 44.506987], + [11.283583, 44.510145], + [11.285305, 44.513222], + [11.28734, 44.5162], + [11.289677, 44.519064], + [11.292303, 44.521797], + [11.295204, 44.524384], + [11.298365, 44.526813] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc4.geojson b/packages/turf-line-arc/test/out/line-arc4.geojson index ca1afface3..e511aeabb6 100644 --- a/packages/turf-line-arc/test/out/line-arc4.geojson +++ b/packages/turf-line-arc/test/out/line-arc4.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.294686, 44.523893], - [11.295075, 44.524221], - [11.295468, 44.524546], - [11.295866, 44.524868], - [11.296267, 44.525188], - [11.296674, 44.525505], - [11.297084, 44.525819], - [11.297499, 44.52613], - [11.297917, 44.526438], - [11.29834, 44.526744], - [11.298767, 44.527046], - [11.299198, 44.527346], - [11.299633, 44.527643], - [11.300072, 44.527937], - [11.300515, 44.528227], - [11.300961, 44.528515], - [11.301412, 44.5288], - [11.301866, 44.529081], - [11.302324, 44.52936], - [11.302786, 44.529635], - [11.303251, 44.529907], - [11.303721, 44.530176], - [11.304193, 44.530442], - [11.304669, 44.530705], - [11.305149, 44.530964], - [11.305632, 44.53122], - [11.306119, 44.531473], - [11.306609, 44.531722], - [11.307102, 44.531969], - [11.307599, 44.532211], - [11.308098, 44.532451], - [11.308601, 44.532686], - [11.309107, 44.532919], - [11.309617, 44.533148], - [11.310129, 44.533374], - [11.310644, 44.533596], - [11.311162, 44.533814], - [11.311683, 44.534029], - [11.312207, 44.534241], - [11.312734, 44.534448], - [11.313264, 44.534653], - [11.313796, 44.534853], - [11.314331, 44.53505], - [11.314868, 44.535244], - [11.315408, 44.535433], - [11.315951, 44.535619], - [11.316496, 44.535802], - [11.317044, 44.53598], - [11.317594, 44.536155], - [11.318146, 44.536326], - [11.3187, 44.536494], - [11.319257, 44.536657], - [11.319816, 44.536817], - [11.320377, 44.536973], - [11.32094, 44.537125], - [11.321505, 44.537273], - [11.322072, 44.537418], - [11.322641, 44.537558], - [11.323212, 44.537695], - [11.323784, 44.537828], - [11.324358, 44.537956], - [11.324934, 44.538081], - [11.325512, 44.538202], - [11.326091, 44.53832], - [11.326672, 44.538433] + [11.294647, 44.523917], + [11.295036, 44.524245], + [11.29543, 44.52457], + [11.295828, 44.524892], + [11.29623, 44.525212], + [11.296636, 44.525529], + [11.297047, 44.525843], + [11.297462, 44.526155], + [11.297881, 44.526463], + [11.298304, 44.526769], + [11.298731, 44.527072], + [11.299163, 44.527372], + [11.299598, 44.527669], + [11.300037, 44.527963], + [11.30048, 44.528254], + [11.300927, 44.528542], + [11.301378, 44.528827], + [11.301833, 44.529109], + [11.302291, 44.529387], + [11.302754, 44.529663], + [11.303219, 44.529935], + [11.303689, 44.530205], + [11.304162, 44.530471], + [11.304639, 44.530734], + [11.305119, 44.530993], + [11.305602, 44.531249], + [11.306089, 44.531502], + [11.30658, 44.531752], + [11.307073, 44.531998], + [11.30757, 44.532241], + [11.30807, 44.532481], + [11.308574, 44.532717], + [11.30908, 44.532949], + [11.30959, 44.533179], + [11.310102, 44.533404], + [11.310618, 44.533627], + [11.311137, 44.533845], + [11.311658, 44.53406], + [11.312183, 44.534272], + [11.31271, 44.53448], + [11.31324, 44.534685], + [11.313772, 44.534885], + [11.314308, 44.535082], + [11.314846, 44.535276], + [11.315386, 44.535466], + [11.315929, 44.535652], + [11.316475, 44.535834], + [11.317023, 44.536013], + [11.317573, 44.536188], + [11.318126, 44.536359], + [11.318681, 44.536527], + [11.319238, 44.536691], + [11.319797, 44.53685], + [11.320359, 44.537007], + [11.320922, 44.537159], + [11.321488, 44.537307], + [11.322055, 44.537452], + [11.322624, 44.537592], + [11.323196, 44.537729], + [11.323769, 44.537862], + [11.324343, 44.537991], + [11.32492, 44.538116], + [11.325498, 44.538237], + [11.326078, 44.538354], + [11.326659, 44.538468] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc5.geojson b/packages/turf-line-arc/test/out/line-arc5.geojson index 5f6dfc5d5f..1e92514ad3 100644 --- a/packages/turf-line-arc/test/out/line-arc5.geojson +++ b/packages/turf-line-arc/test/out/line-arc5.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.326672, 44.538433], - [11.33213, 44.539293], - [11.337673, 44.539805], - [11.343258, 44.539966], - [11.348841, 44.539773], - [11.354378, 44.539228], - [11.359826, 44.538336], - [11.365141, 44.537103], - [11.370282, 44.53554], - [11.375208, 44.533658], - [11.379881, 44.531473], - [11.384264, 44.529001], - [11.388323, 44.526262], - [11.392025, 44.523278], - [11.395341, 44.520072], - [11.398247, 44.516669], - [11.400718, 44.513095], - [11.402735, 44.50938], - [11.404284, 44.505552], - [11.405351, 44.501642], - [11.405928, 44.497679], - [11.406011, 44.493695], - [11.4056, 44.489722], - [11.404697, 44.48579], - [11.40331, 44.481931], - [11.401451, 44.478175], - [11.399132, 44.47455], - [11.396374, 44.471086], - [11.393197, 44.46781], - [11.389626, 44.464748], - [11.385691, 44.461923], - [11.38142, 44.459357], - [11.376848, 44.457071], - [11.372012, 44.455083], - [11.366948, 44.453408], - [11.361696, 44.452059], - [11.356298, 44.451047], - [11.350796, 44.450379], - [11.345233, 44.450062], - [11.339652, 44.450097], - [11.334097, 44.450485], - [11.328613, 44.451222], - [11.32324, 44.452302], - [11.318023, 44.453717], - [11.313001, 44.455456], - [11.308215, 44.457505], - [11.303701, 44.459848], - [11.299495, 44.462468], - [11.295629, 44.465342], - [11.292135, 44.468449], - [11.28904, 44.471765], - [11.286368, 44.475263], - [11.28414, 44.478916], - [11.282374, 44.482696], - [11.281083, 44.486572], - [11.280278, 44.490514], - [11.279966, 44.494492], - [11.280148, 44.498474], - [11.280824, 44.502429], - [11.281988, 44.506325], - [11.283631, 44.510133], - [11.285741, 44.513822], - [11.2883, 44.517364], - [11.29129, 44.52073], - [11.294686, 44.523893] + [11.326659, 44.538468], + [11.332121, 44.539329], + [11.337669, 44.539841], + [11.343258, 44.540002], + [11.348846, 44.539809], + [11.354387, 44.539264], + [11.359839, 44.538371], + [11.365159, 44.537137], + [11.370304, 44.535573], + [11.375234, 44.533689], + [11.379911, 44.531502], + [11.384297, 44.529028], + [11.388359, 44.526287], + [11.392064, 44.523301], + [11.395383, 44.520092], + [11.398291, 44.516686], + [11.400764, 44.51311], + [11.402783, 44.509392], + [11.404333, 44.505561], + [11.405401, 44.501647], + [11.405978, 44.497681], + [11.406062, 44.493694], + [11.40565, 44.489718], + [11.404747, 44.485783], + [11.403359, 44.481921], + [11.401498, 44.478161], + [11.399177, 44.474534], + [11.396417, 44.471067], + [11.393237, 44.467789], + [11.389664, 44.464723], + [11.385725, 44.461896], + [11.381451, 44.459328], + [11.376876, 44.457041], + [11.372035, 44.455051], + [11.366967, 44.453374], + [11.361711, 44.452024], + [11.356309, 44.451011], + [11.350802, 44.450344], + [11.345234, 44.450026], + [11.339649, 44.450061], + [11.33409, 44.450449], + [11.328601, 44.451187], + [11.323225, 44.452267], + [11.318003, 44.453684], + [11.312977, 44.455424], + [11.308187, 44.457475], + [11.303669, 44.45982], + [11.29946, 44.462441], + [11.295591, 44.465318], + [11.292095, 44.468428], + [11.288997, 44.471746], + [11.286323, 44.475247], + [11.284093, 44.478903], + [11.282325, 44.482686], + [11.281034, 44.486565], + [11.280228, 44.490511], + [11.279915, 44.494492], + [11.280098, 44.498477], + [11.280774, 44.502435], + [11.281939, 44.506335], + [11.283583, 44.510145], + [11.285695, 44.513837], + [11.288256, 44.517382], + [11.291248, 44.52075], + [11.294647, 44.523917] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc6.geojson b/packages/turf-line-arc/test/out/line-arc6.geojson index 46d44a0ff8..cb94bef275 100644 --- a/packages/turf-line-arc/test/out/line-arc6.geojson +++ b/packages/turf-line-arc/test/out/line-arc6.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [11.397614, 44.51747], - [11.400151, 44.513989], - [11.402252, 44.510364], - [11.403903, 44.506622], - [11.405089, 44.502791], - [11.405803, 44.498902], - [11.406038, 44.494983], - [11.405794, 44.491064], - [11.405072, 44.487175], - [11.403878, 44.483346], - [11.402221, 44.479605], - [11.400114, 44.475982], - [11.397572, 44.472504], - [11.394615, 44.469197], - [11.391266, 44.466086], - [11.387551, 44.463196], - [11.383496, 44.460547], - [11.379135, 44.45816], - [11.374498, 44.456054], - [11.369623, 44.454244], - [11.364545, 44.452744], - [11.359303, 44.451565], - [11.353938, 44.450717], - [11.34849, 44.450205], - [11.343, 44.450034], - [11.33751, 44.450205], - [11.332062, 44.450717], - [11.326697, 44.451565], - [11.321455, 44.452744], - [11.316377, 44.454244], - [11.311502, 44.456054], - [11.306865, 44.45816], - [11.302504, 44.460547], - [11.298449, 44.463196], - [11.294734, 44.466086], - [11.291385, 44.469197], - [11.288428, 44.472504], - [11.285886, 44.475982], - [11.283779, 44.479605], - [11.282122, 44.483346], - [11.280928, 44.487175], - [11.280206, 44.491064], - [11.279962, 44.494983], - [11.280197, 44.498902], - [11.280911, 44.502791], - [11.282097, 44.506622], - [11.283748, 44.510364], - [11.285849, 44.513989], - [11.288386, 44.51747], - [11.291339, 44.52078], - [11.294686, 44.523893], - [11.298401, 44.526787], - [11.302456, 44.529439], - [11.30682, 44.531828], - [11.31146, 44.533937], - [11.31634, 44.53575], - [11.321424, 44.537252], - [11.326672, 44.538433], - [11.332045, 44.539282], - [11.337502, 44.539795], - [11.343, 44.539966], - [11.348498, 44.539795], - [11.353955, 44.539282], - [11.359328, 44.538433], - [11.364576, 44.537252] + [11.397658, 44.517488], + [11.400197, 44.514004], + [11.4023, 44.510376], + [11.403952, 44.506631], + [11.405139, 44.502798], + [11.405853, 44.498905], + [11.406089, 44.494983], + [11.405845, 44.491061], + [11.405122, 44.487169], + [11.403927, 44.483336], + [11.402269, 44.479593], + [11.400159, 44.475967], + [11.397616, 44.472486], + [11.394657, 44.469176], + [11.391305, 44.466063], + [11.387586, 44.46317], + [11.383529, 44.460519], + [11.379164, 44.458131], + [11.374523, 44.456023], + [11.369644, 44.454211], + [11.364562, 44.45271], + [11.359316, 44.45153], + [11.353947, 44.450681], + [11.348494, 44.450169], + [11.343, 44.449998], + [11.337506, 44.450169], + [11.332053, 44.450681], + [11.326684, 44.45153], + [11.321438, 44.45271], + [11.316356, 44.454211], + [11.311477, 44.456023], + [11.306836, 44.458131], + [11.302471, 44.460519], + [11.298414, 44.46317], + [11.294695, 44.466063], + [11.291343, 44.469176], + [11.288384, 44.472486], + [11.285841, 44.475967], + [11.283731, 44.479593], + [11.282073, 44.483336], + [11.280878, 44.487169], + [11.280155, 44.491061], + [11.279911, 44.494983], + [11.280147, 44.498905], + [11.280861, 44.502798], + [11.282048, 44.506631], + [11.2837, 44.510376], + [11.285803, 44.514004], + [11.288342, 44.517488], + [11.291298, 44.520801], + [11.294647, 44.523917], + [11.298365, 44.526813], + [11.302423, 44.529466], + [11.306791, 44.531858], + [11.311434, 44.533969], + [11.316319, 44.535783], + [11.321407, 44.537286], + [11.326659, 44.538468], + [11.332036, 44.539318], + [11.337497, 44.539831], + [11.343, 44.540002], + [11.348503, 44.539831], + [11.353964, 44.539318], + [11.359341, 44.538468], + [11.364593, 44.537286] ] } } diff --git a/packages/turf-line-arc/test/out/line-arc7.geojson b/packages/turf-line-arc/test/out/line-arc7.geojson index ede1081731..b7e80937b5 100644 --- a/packages/turf-line-arc/test/out/line-arc7.geojson +++ b/packages/turf-line-arc/test/out/line-arc7.geojson @@ -23,71 +23,71 @@ "geometry": { "type": "LineString", "coordinates": [ - [17.014763, 46.606416], - [17.018658, 46.600907], - [17.022542, 46.595393], - [17.026413, 46.589876], - [17.030274, 46.584356], - [17.034122, 46.578831], - [17.037959, 46.573303], - [17.041784, 46.567771], - [17.045597, 46.562236], - [17.049399, 46.556697], - [17.053189, 46.551154], - [17.056967, 46.545607], - [17.060733, 46.540057], - [17.064488, 46.534503], - [17.068231, 46.528946], - [17.071962, 46.523385], - [17.075682, 46.51782], - [17.079389, 46.512252], - [17.083085, 46.50668], - [17.086769, 46.501105], - [17.090442, 46.495526], - [17.094102, 46.489943], - [17.097751, 46.484357], - [17.101388, 46.478768], - [17.105013, 46.473174], - [17.108627, 46.467578], - [17.112228, 46.461978], - [17.115818, 46.456374], - [17.119396, 46.450767], - [17.122963, 46.445157], - [17.126517, 46.439543], - [17.13006, 46.433925], - [17.133591, 46.428305], - [17.13711, 46.42268], - [17.140617, 46.417053], - [17.144112, 46.411422], - [17.147596, 46.405787], - [17.151068, 46.40015], - [17.154528, 46.394508], - [17.157976, 46.388864], - [17.161412, 46.383216], - [17.164836, 46.377565], - [17.168249, 46.371911], - [17.171649, 46.366253], - [17.175038, 46.360592], - [17.178415, 46.354928], - [17.18178, 46.34926], - [17.185134, 46.34359], - [17.188475, 46.337916], - [17.191805, 46.332238], - [17.195122, 46.326558], - [17.198428, 46.320874], - [17.201722, 46.315187], - [17.205004, 46.309497], - [17.208274, 46.303804], - [17.211533, 46.298108], - [17.214779, 46.292408], - [17.218013, 46.286706], - [17.221236, 46.281], - [17.224447, 46.275291], - [17.227646, 46.269579], - [17.230832, 46.263864], - [17.234007, 46.258146], - [17.237171, 46.252425], - [17.240322, 46.246701] + [17.019493, 46.607997], + [17.023391, 46.602483], + [17.027278, 46.596966], + [17.031152, 46.591444], + [17.035015, 46.585919], + [17.038866, 46.58039], + [17.042706, 46.574857], + [17.046534, 46.569321], + [17.05035, 46.563781], + [17.054154, 46.558237], + [17.057946, 46.552689], + [17.061727, 46.547138], + [17.065496, 46.541583], + [17.069254, 46.536025], + [17.072999, 46.530463], + [17.076733, 46.524897], + [17.080455, 46.519328], + [17.084165, 46.513755], + [17.087864, 46.508179], + [17.09155, 46.502599], + [17.095225, 46.497015], + [17.098888, 46.491428], + [17.10254, 46.485837], + [17.106179, 46.480243], + [17.109807, 46.474645], + [17.113423, 46.469044], + [17.117027, 46.463439], + [17.12062, 46.457831], + [17.1242, 46.452219], + [17.127769, 46.446604], + [17.131326, 46.440986], + [17.134871, 46.435364], + [17.138404, 46.429738], + [17.141926, 46.424109], + [17.145435, 46.418477], + [17.148933, 46.412841], + [17.152419, 46.407202], + [17.155893, 46.40156], + [17.159355, 46.395914], + [17.162806, 46.390265], + [17.166244, 46.384613], + [17.169671, 46.378957], + [17.173086, 46.373298], + [17.176489, 46.367635], + [17.17988, 46.36197], + [17.18326, 46.356301], + [17.186627, 46.350629], + [17.189982, 46.344953], + [17.193326, 46.339274], + [17.196658, 46.333592], + [17.199978, 46.327907], + [17.203286, 46.322219], + [17.206582, 46.316527], + [17.209866, 46.310833], + [17.213139, 46.305135], + [17.216399, 46.299434], + [17.219648, 46.29373], + [17.222884, 46.288022], + [17.226109, 46.282312], + [17.229322, 46.276598], + [17.232523, 46.270881], + [17.235712, 46.265162], + [17.238889, 46.259439], + [17.242054, 46.253713], + [17.245208, 46.247984] ] } } diff --git a/packages/turf-nearest-point-to-line/test.ts b/packages/turf-nearest-point-to-line/test.ts index 4df9e7ec1c..0e352c75e5 100644 --- a/packages/turf-nearest-point-to-line/test.ts +++ b/packages/turf-nearest-point-to-line/test.ts @@ -9,8 +9,8 @@ import { truncate } from "@turf/truncate"; import { geometryCollection, featureCollection, - point, lineString, + point, round, } from "@turf/helpers"; import { nearestPointToLine } from "./index.js"; diff --git a/packages/turf-nearest-point-to-line/test/out/fiji.geojson b/packages/turf-nearest-point-to-line/test/out/fiji.geojson index fe1c68c6a5..07163da91c 100644 --- a/packages/turf-nearest-point-to-line/test/out/fiji.geojson +++ b/packages/turf-nearest-point-to-line/test/out/fiji.geojson @@ -69,71 +69,71 @@ "type": "Polygon", "coordinates": [ [ - [180.258179, -16.922837], - [180.25495, -16.922989], - [180.251752, -16.923443], - [180.248617, -16.924194], - [180.245573, -16.925236], - [180.24265, -16.926558], - [180.239878, -16.928148], - [180.237281, -16.92999], - [180.234885, -16.932066], - [180.232714, -16.934358], - [180.230788, -16.936841], - [180.229125, -16.939494], - [180.227743, -16.942289], - [180.226653, -16.945201], - [180.225867, -16.948201], - [180.225392, -16.95126], - [180.225233, -16.954349], - [180.225391, -16.957438], - [180.225865, -16.960497], - [180.22665, -16.963497], - [180.227739, -16.966409], - [180.229121, -16.969205], - [180.230783, -16.971858], - [180.232708, -16.974342], - [180.23488, -16.976634], - [180.237275, -16.978711], - [180.239872, -16.980554], - [180.242646, -16.982144], - [180.245569, -16.983466], - [180.248613, -16.984508], - [180.25175, -16.98526], - [180.254949, -16.985714], - [180.258179, -16.985865], - [180.261409, -16.985714], - [180.264607, -16.98526], - [180.267744, -16.984508], - [180.270789, -16.983466], - [180.273712, -16.982144], - [180.276485, -16.980554], - [180.279082, -16.978711], - [180.281478, -16.976634], - [180.283649, -16.974342], - [180.285575, -16.971858], - [180.287237, -16.969205], - [180.288619, -16.966409], - [180.289707, -16.963497], - [180.290493, -16.960497], - [180.290966, -16.957438], - [180.291125, -16.954349], - [180.290965, -16.95126], - [180.29049, -16.948201], - [180.289704, -16.945201], - [180.288615, -16.942289], - [180.287232, -16.939494], - [180.28557, -16.936841], - [180.283644, -16.934358], - [180.281472, -16.932066], - [180.279077, -16.92999], - [180.27648, -16.928148], - [180.273707, -16.926558], - [180.270785, -16.925236], - [180.267741, -16.924194], - [180.264605, -16.923443], - [180.261407, -16.922989], - [180.258179, -16.922837] + [180.258179, -16.922812], + [180.254947, -16.922964], + [180.251747, -16.923418], + [180.248609, -16.92417], + [180.245563, -16.925213], + [180.242638, -16.926536], + [180.239863, -16.928127], + [180.237264, -16.92997], + [180.234866, -16.932048], + [180.232693, -16.934342], + [180.230766, -16.936827], + [180.229102, -16.939482], + [180.227718, -16.94228], + [180.226628, -16.945194], + [180.225841, -16.948196], + [180.225366, -16.951257], + [180.225206, -16.954349], + [180.225365, -16.95744], + [180.225839, -16.960502], + [180.226625, -16.963504], + [180.227714, -16.966419], + [180.229097, -16.969217], + [180.230761, -16.971872], + [180.232688, -16.974358], + [180.234861, -16.976652], + [180.237259, -16.978731], + [180.239858, -16.980575], + [180.242633, -16.982166], + [180.245559, -16.98349], + [180.248606, -16.984532], + [180.251745, -16.985285], + [180.254946, -16.985739], + [180.258179, -16.985891], + [180.261411, -16.985739], + [180.264612, -16.985285], + [180.267752, -16.984532], + [180.270799, -16.98349], + [180.273724, -16.982166], + [180.2765, -16.980575], + [180.279099, -16.978731], + [180.281496, -16.976652], + [180.283669, -16.974358], + [180.285597, -16.971872], + [180.28726, -16.969217], + [180.288643, -16.966419], + [180.289733, -16.963504], + [180.290519, -16.960502], + [180.290993, -16.95744], + [180.291151, -16.954349], + [180.290992, -16.951257], + [180.290516, -16.948196], + [180.28973, -16.945194], + [180.288639, -16.94228], + [180.287255, -16.939482], + [180.285592, -16.936827], + [180.283664, -16.934342], + [180.281491, -16.932048], + [180.279093, -16.92997], + [180.276495, -16.928127], + [180.273719, -16.926536], + [180.270795, -16.925213], + [180.267749, -16.92417], + [180.26461, -16.923418], + [180.26141, -16.922964], + [180.258179, -16.922812] ] ] } diff --git a/packages/turf-nearest-point-to-line/test/out/on-line.geojson b/packages/turf-nearest-point-to-line/test/out/on-line.geojson index 223856dc28..9d594571af 100644 --- a/packages/turf-nearest-point-to-line/test/out/on-line.geojson +++ b/packages/turf-nearest-point-to-line/test/out/on-line.geojson @@ -84,71 +84,71 @@ "type": "Polygon", "coordinates": [ [ - [-22.818604, 15.324969], - [-22.819518, 15.324926], - [-22.820423, 15.324796], - [-22.82131, 15.324582], - [-22.822172, 15.324285], - [-22.822999, 15.323907], - [-22.823784, 15.323453], - [-22.824519, 15.322928], - [-22.825197, 15.322335], - [-22.825812, 15.321681], - [-22.826357, 15.320972], - [-22.826827, 15.320215], - [-22.827218, 15.319417], - [-22.827526, 15.318586], - [-22.827749, 15.31773], - [-22.827883, 15.316857], - [-22.827928, 15.315976], - [-22.827883, 15.315094], - [-22.827749, 15.314221], - [-22.827526, 15.313365], - [-22.827218, 15.312534], - [-22.826827, 15.311736], - [-22.826356, 15.310979], - [-22.825811, 15.310271], - [-22.825197, 15.309617], - [-22.824519, 15.309024], - [-22.823784, 15.308498], - [-22.822999, 15.308045], - [-22.822172, 15.307667], - [-22.82131, 15.30737], - [-22.820423, 15.307156], - [-22.819517, 15.307026], - [-22.818604, 15.306983], - [-22.81769, 15.307026], - [-22.816784, 15.307156], - [-22.815897, 15.30737], - [-22.815035, 15.307667], - [-22.814208, 15.308045], - [-22.813423, 15.308498], - [-22.812688, 15.309024], - [-22.81201, 15.309617], - [-22.811396, 15.310271], - [-22.810851, 15.310979], - [-22.81038, 15.311736], - [-22.809989, 15.312534], - [-22.809681, 15.313365], - [-22.809458, 15.314221], - [-22.809324, 15.315094], - [-22.809279, 15.315976], - [-22.809324, 15.316857], - [-22.809458, 15.31773], - [-22.809681, 15.318586], - [-22.809989, 15.319417], - [-22.81038, 15.320215], - [-22.81085, 15.320972], - [-22.811395, 15.321681], - [-22.81201, 15.322335], - [-22.812688, 15.322928], - [-22.813423, 15.323453], - [-22.814208, 15.323907], - [-22.815035, 15.324285], - [-22.815897, 15.324582], - [-22.816784, 15.324796], - [-22.81769, 15.324926], - [-22.818604, 15.324969] + [-22.818604, 15.324976], + [-22.819518, 15.324933], + [-22.820424, 15.324803], + [-22.821313, 15.324589], + [-22.822175, 15.324291], + [-22.823003, 15.323914], + [-22.823788, 15.323459], + [-22.824524, 15.322933], + [-22.825202, 15.32234], + [-22.825817, 15.321686], + [-22.826363, 15.320976], + [-22.826834, 15.320219], + [-22.827225, 15.31942], + [-22.827534, 15.318588], + [-22.827756, 15.317732], + [-22.82789, 15.316858], + [-22.827935, 15.315976], + [-22.82789, 15.315094], + [-22.827756, 15.31422], + [-22.827533, 15.313363], + [-22.827225, 15.312531], + [-22.826833, 15.311733], + [-22.826362, 15.310975], + [-22.825817, 15.310266], + [-22.825202, 15.309612], + [-22.824523, 15.309018], + [-22.823788, 15.308492], + [-22.823002, 15.308038], + [-22.822175, 15.307661], + [-22.821312, 15.307363], + [-22.820424, 15.307148], + [-22.819518, 15.307019], + [-22.818604, 15.306976], + [-22.817689, 15.307019], + [-22.816783, 15.307148], + [-22.815895, 15.307363], + [-22.815033, 15.307661], + [-22.814205, 15.308038], + [-22.813419, 15.308492], + [-22.812684, 15.309018], + [-22.812005, 15.309612], + [-22.81139, 15.310266], + [-22.810845, 15.310975], + [-22.810374, 15.311733], + [-22.809982, 15.312531], + [-22.809674, 15.313363], + [-22.809451, 15.31422], + [-22.809317, 15.315094], + [-22.809272, 15.315976], + [-22.809317, 15.316858], + [-22.809451, 15.317732], + [-22.809673, 15.318588], + [-22.809982, 15.31942], + [-22.810373, 15.320219], + [-22.810844, 15.320976], + [-22.81139, 15.321686], + [-22.812005, 15.32234], + [-22.812683, 15.322933], + [-22.813419, 15.323459], + [-22.814204, 15.323914], + [-22.815032, 15.324291], + [-22.815895, 15.324589], + [-22.816783, 15.324803], + [-22.817689, 15.324933], + [-22.818604, 15.324976] ] ] } diff --git a/packages/turf-nearest-point-to-line/test/out/one.geojson b/packages/turf-nearest-point-to-line/test/out/one.geojson index a3f2d1401d..3ac358a033 100644 --- a/packages/turf-nearest-point-to-line/test/out/one.geojson +++ b/packages/turf-nearest-point-to-line/test/out/one.geojson @@ -57,71 +57,71 @@ "type": "Polygon", "coordinates": [ [ - [29.750977, 18.020365], - [29.703552, 18.018144], - [29.656587, 18.011502], - [29.610539, 18.000503], - [29.565852, 17.985254], - [29.522962, 17.965904], - [29.482282, 17.942639], - [29.444207, 17.915686], - [29.409104, 17.885305], - [29.37731, 17.851791], - [29.349133, 17.815468], - [29.324842, 17.776688], - [29.30467, 17.735825], - [29.288809, 17.693275], - [29.277408, 17.649448], - [29.270574, 17.604766], - [29.26837, 17.559662], - [29.270813, 17.514569], - [29.277877, 17.469921], - [29.28949, 17.426147], - [29.305538, 17.38367], - [29.325862, 17.342896], - [29.350266, 17.304217], - [29.378513, 17.268003], - [29.41033, 17.234603], - [29.44541, 17.204337], - [29.483415, 17.177493], - [29.523982, 17.154329], - [29.56672, 17.135068], - [29.61122, 17.119892], - [29.657057, 17.108947], - [29.703791, 17.102338], - [29.750977, 17.100128], - [29.798162, 17.102338], - [29.844897, 17.108947], - [29.890733, 17.119892], - [29.935233, 17.135068], - [29.977971, 17.154329], - [30.018538, 17.177493], - [30.056543, 17.204337], - [30.091623, 17.234603], - [30.12344, 17.268003], - [30.151687, 17.304217], - [30.176091, 17.342896], - [30.196416, 17.38367], - [30.212463, 17.426147], - [30.224076, 17.469921], - [30.23114, 17.514569], - [30.233584, 17.559662], - [30.231379, 17.604766], - [30.224546, 17.649448], - [30.213145, 17.693275], - [30.197283, 17.735825], - [30.177111, 17.776688], - [30.15282, 17.815468], - [30.124643, 17.851791], - [30.09285, 17.885305], - [30.057746, 17.915686], - [30.019671, 17.942639], - [29.978991, 17.965904], - [29.936101, 17.985254], - [29.891415, 18.000503], - [29.845366, 18.011502], - [29.798401, 18.018144], - [29.750977, 18.020365] + [29.750977, 18.020735], + [29.703514, 18.018512], + [29.656511, 18.011864], + [29.610425, 18.000857], + [29.565703, 17.985596], + [29.522778, 17.96623], + [29.482066, 17.942946], + [29.44396, 17.915971], + [29.408828, 17.885566], + [29.37701, 17.852025], + [29.34881, 17.815673], + [29.3245, 17.776861], + [29.304311, 17.735966], + [29.288437, 17.693381], + [29.277027, 17.649519], + [29.270187, 17.604802], + [29.267982, 17.559661], + [29.270427, 17.514531], + [29.277497, 17.469848], + [29.289119, 17.426039], + [29.30518, 17.383527], + [29.325521, 17.342721], + [29.349945, 17.30401], + [29.378214, 17.267768], + [29.410057, 17.234341], + [29.445165, 17.20405], + [29.483201, 17.177185], + [29.5238, 17.154003], + [29.566572, 17.134726], + [29.611108, 17.119538], + [29.656981, 17.108584], + [29.703753, 17.10197], + [29.750977, 17.099758], + [29.7982, 17.10197], + [29.844972, 17.108584], + [29.890845, 17.119538], + [29.935381, 17.134726], + [29.978153, 17.154003], + [30.018752, 17.177185], + [30.056788, 17.20405], + [30.091896, 17.234341], + [30.123739, 17.267768], + [30.152008, 17.30401], + [30.176432, 17.342721], + [30.196773, 17.383527], + [30.212834, 17.426039], + [30.224456, 17.469848], + [30.231526, 17.514531], + [30.233971, 17.559661], + [30.231766, 17.604802], + [30.224926, 17.649519], + [30.213516, 17.693381], + [30.197642, 17.735966], + [30.177454, 17.776861], + [30.153143, 17.815673], + [30.124944, 17.852025], + [30.093125, 17.885566], + [30.057993, 17.915971], + [30.019887, 17.942946], + [29.979175, 17.96623], + [29.93625, 17.985596], + [29.891528, 18.000857], + [29.845442, 18.011864], + [29.79844, 18.018512], + [29.750977, 18.020735] ] ] } diff --git a/packages/turf-nearest-point-to-line/test/out/resolute.geojson b/packages/turf-nearest-point-to-line/test/out/resolute.geojson index 8db2fc52eb..497cf642d2 100644 --- a/packages/turf-nearest-point-to-line/test/out/resolute.geojson +++ b/packages/turf-nearest-point-to-line/test/out/resolute.geojson @@ -61,71 +61,71 @@ "type": "Polygon", "coordinates": [ [ - [-87.231445, 75.74515], - [-87.325775, 75.74399], - [-87.419152, 75.740523], - [-87.510634, 75.734783], - [-87.599301, 75.726828], - [-87.684266, 75.716739], - [-87.764681, 75.704616], - [-87.839753, 75.690582], - [-87.908747, 75.674778], - [-87.970996, 75.657359], - [-88.025906, 75.638501], - [-88.072961, 75.618389], - [-88.111732, 75.597222], - [-88.141873, 75.575209], - [-88.16313, 75.552563], - [-88.175335, 75.529507], - [-88.178414, 75.506262], - [-88.172379, 75.483054], - [-88.157331, 75.460105], - [-88.133455, 75.437635], - [-88.101017, 75.415857], - [-88.060362, 75.394978], - [-88.011905, 75.375194], - [-87.956132, 75.356691], - [-87.893592, 75.339643], - [-87.824888, 75.324208], - [-87.750677, 75.31053], - [-87.671662, 75.298735], - [-87.588583, 75.288933], - [-87.502212, 75.281214], - [-87.413351, 75.275649], - [-87.322818, 75.27229], - [-87.231445, 75.271167], - [-87.140073, 75.27229], - [-87.04954, 75.275649], - [-86.960678, 75.281214], - [-86.874308, 75.288933], - [-86.791229, 75.298735], - [-86.712213, 75.31053], - [-86.638003, 75.324208], - [-86.569299, 75.339643], - [-86.506758, 75.356691], - [-86.450986, 75.375194], - [-86.402529, 75.394978], - [-86.361873, 75.415857], - [-86.329435, 75.437635], - [-86.305559, 75.460105], - [-86.290511, 75.483054], - [-86.284477, 75.506262], - [-86.287555, 75.529507], - [-86.299761, 75.552563], - [-86.321017, 75.575209], - [-86.351158, 75.597222], - [-86.389929, 75.618389], - [-86.436985, 75.638501], - [-86.491894, 75.657359], - [-86.554143, 75.674778], - [-86.623137, 75.690582], - [-86.69821, 75.704616], - [-86.778625, 75.716739], - [-86.863589, 75.726828], - [-86.952256, 75.734783], - [-87.043739, 75.740523], - [-87.137115, 75.74399], - [-87.231445, 75.74515] + [-87.231445, 75.745341], + [-87.325852, 75.74418], + [-87.419305, 75.74071], + [-87.510862, 75.734965], + [-87.599601, 75.727004], + [-87.684635, 75.716906], + [-87.765115, 75.704774], + [-87.840248, 75.690728], + [-87.909298, 75.674911], + [-87.971597, 75.657478], + [-88.02655, 75.638605], + [-88.073643, 75.618477], + [-88.112444, 75.597293], + [-88.142609, 75.575261], + [-88.163881, 75.552598], + [-88.176095, 75.529522], + [-88.179175, 75.506259], + [-88.173134, 75.483032], + [-88.158073, 75.460065], + [-88.134177, 75.437577], + [-88.101712, 75.415782], + [-88.061023, 75.394886], + [-88.012527, 75.375086], + [-87.956709, 75.356568], + [-87.894118, 75.339506], + [-87.825359, 75.324059], + [-87.751089, 75.31037], + [-87.672011, 75.298566], + [-87.588865, 75.288757], + [-87.502427, 75.281032], + [-87.413495, 75.275462], + [-87.32289, 75.2721], + [-87.231445, 75.270976], + [-87.140001, 75.2721], + [-87.049396, 75.275462], + [-86.960464, 75.281032], + [-86.874025, 75.288757], + [-86.79088, 75.298566], + [-86.711801, 75.31037], + [-86.637532, 75.324059], + [-86.568773, 75.339506], + [-86.506182, 75.356568], + [-86.450364, 75.375086], + [-86.401868, 75.394886], + [-86.361179, 75.415782], + [-86.328714, 75.437577], + [-86.304818, 75.460065], + [-86.289756, 75.483032], + [-86.283716, 75.506259], + [-86.286796, 75.529522], + [-86.29901, 75.552598], + [-86.320282, 75.575261], + [-86.350447, 75.597293], + [-86.389248, 75.618477], + [-86.436341, 75.638605], + [-86.491294, 75.657478], + [-86.553593, 75.674911], + [-86.622642, 75.690728], + [-86.697775, 75.704774], + [-86.778256, 75.716906], + [-86.863289, 75.727004], + [-86.952029, 75.734965], + [-87.043585, 75.74071], + [-87.137038, 75.74418], + [-87.231445, 75.745341] ] ] } diff --git a/packages/turf-nearest-point-to-line/test/out/segment.geojson b/packages/turf-nearest-point-to-line/test/out/segment.geojson index cdd6387f8d..96ee686836 100644 --- a/packages/turf-nearest-point-to-line/test/out/segment.geojson +++ b/packages/turf-nearest-point-to-line/test/out/segment.geojson @@ -55,71 +55,71 @@ "type": "Polygon", "coordinates": [ [ - [27.268066, 15.046567], - [27.18652, 15.042684], - [27.105767, 15.031072], - [27.026595, 15.011846], - [26.949772, 14.985192], - [26.876046, 14.951369], - [26.806133, 14.910706], - [26.740708, 14.8636], - [26.680405, 14.810507], - [26.625805, 14.751943], - [26.577432, 14.688476], - [26.535751, 14.620721], - [26.501157, 14.549334], - [26.473978, 14.475007], - [26.454469, 14.398456], - [26.442812, 14.320422], - [26.439108, 14.241657], - [26.443387, 14.162919], - [26.455599, 14.084966], - [26.475617, 14.008548], - [26.503243, 13.934398], - [26.538204, 13.863228], - [26.580159, 13.795721], - [26.628699, 13.732522], - [26.683356, 13.674237], - [26.743602, 13.621423], - [26.808859, 13.574585], - [26.8785, 13.534169], - [26.951859, 13.500563], - [27.028234, 13.474087], - [27.106897, 13.454993], - [27.187096, 13.443463], - [27.268066, 13.439607], - [27.349037, 13.443463], - [27.429236, 13.454993], - [27.507899, 13.474087], - [27.584274, 13.500563], - [27.657633, 13.534169], - [27.727274, 13.574585], - [27.792531, 13.621423], - [27.852777, 13.674237], - [27.907434, 13.732522], - [27.955974, 13.795721], - [27.997929, 13.863228], - [28.03289, 13.934398], - [28.060516, 14.008548], - [28.080534, 14.084966], - [28.092746, 14.162919], - [28.097024, 14.241657], - [28.093321, 14.320422], - [28.081663, 14.398456], - [28.062155, 14.475007], - [28.034976, 14.549334], - [28.000382, 14.620721], - [27.9587, 14.688476], - [27.910328, 14.751943], - [27.855728, 14.810507], - [27.795425, 14.8636], - [27.73, 14.910706], - [27.660086, 14.951369], - [27.586361, 14.985192], - [27.509538, 15.011846], - [27.430366, 15.031072], - [27.349613, 15.042684], - [27.268066, 15.046567] + [27.268066, 15.047212], + [27.186454, 15.043326], + [27.105636, 15.031706], + [27.0264, 15.012464], + [26.949515, 14.985788], + [26.87573, 14.951938], + [26.80576, 14.911243], + [26.740283, 14.864098], + [26.679931, 14.810962], + [26.625287, 14.752351], + [26.576876, 14.688833], + [26.535161, 14.621023], + [26.500539, 14.549579], + [26.473339, 14.475192], + [26.453815, 14.39858], + [26.442148, 14.320483], + [26.438442, 14.241655], + [26.442725, 14.162853], + [26.454946, 14.084838], + [26.474981, 14.008358], + [26.502629, 13.934149], + [26.537618, 13.862922], + [26.579607, 13.79536], + [26.628186, 13.732111], + [26.682887, 13.673779], + [26.743182, 13.620923], + [26.808491, 13.574047], + [26.878188, 13.533599], + [26.951606, 13.499966], + [27.028042, 13.473469], + [27.106767, 13.454359], + [27.187031, 13.44282], + [27.268066, 13.438961], + [27.349102, 13.44282], + [27.429365, 13.454359], + [27.508091, 13.473469], + [27.584527, 13.499966], + [27.657945, 13.533599], + [27.727642, 13.574047], + [27.792951, 13.620923], + [27.853246, 13.673779], + [27.907947, 13.732111], + [27.956526, 13.79536], + [27.998514, 13.862922], + [28.033504, 13.934149], + [28.061152, 14.008358], + [28.081187, 14.084838], + [28.093408, 14.162853], + [28.097691, 14.241655], + [28.093985, 14.320483], + [28.082318, 14.39858], + [28.062794, 14.475192], + [28.035593, 14.549579], + [28.000972, 14.621023], + [27.959257, 14.688833], + [27.910845, 14.752351], + [27.856201, 14.810962], + [27.79585, 14.864098], + [27.730373, 14.911243], + [27.660403, 14.951938], + [27.586617, 14.985788], + [27.509733, 15.012464], + [27.430497, 15.031706], + [27.349679, 15.043326], + [27.268066, 15.047212] ] ] } diff --git a/packages/turf-nearest-point-to-line/test/out/two.geojson b/packages/turf-nearest-point-to-line/test/out/two.geojson index 5eb1480d59..4dbc51a612 100644 --- a/packages/turf-nearest-point-to-line/test/out/two.geojson +++ b/packages/turf-nearest-point-to-line/test/out/two.geojson @@ -62,71 +62,71 @@ "type": "Polygon", "coordinates": [ [ - [-38.012695, 26.896432], - [-38.089796, 26.893033], - [-38.166141, 26.88287], - [-38.240981, 26.866042], - [-38.313584, 26.842715], - [-38.38324, 26.813117], - [-38.449269, 26.777538], - [-38.51103, 26.736326], - [-38.567924, 26.689884], - [-38.619402, 26.638664], - [-38.66497, 26.583167], - [-38.704193, 26.523933], - [-38.7367, 26.461537], - [-38.762187, 26.396584], - [-38.78042, 26.329705], - [-38.791234, 26.261546], - [-38.794539, 26.192764], - [-38.790315, 26.124023], - [-38.778618, 26.055983], - [-38.759571, 25.989299], - [-38.73337, 25.92461], - [-38.700277, 25.862534], - [-38.660619, 25.803664], - [-38.614783, 25.748564], - [-38.563214, 25.697757], - [-38.506411, 25.651726], - [-38.444918, 25.610911], - [-38.379324, 25.575697], - [-38.310254, 25.546419], - [-38.238365, 25.523355], - [-38.164339, 25.506723], - [-38.088877, 25.49668], - [-38.012695, 25.493322], - [-37.936513, 25.49668], - [-37.861052, 25.506723], - [-37.787026, 25.523355], - [-37.715137, 25.546419], - [-37.646067, 25.575697], - [-37.580473, 25.610911], - [-37.51898, 25.651726], - [-37.462176, 25.697757], - [-37.410608, 25.748564], - [-37.364772, 25.803664], - [-37.325114, 25.862534], - [-37.292021, 25.92461], - [-37.26582, 25.989299], - [-37.246773, 26.055983], - [-37.235075, 26.124023], - [-37.230852, 26.192764], - [-37.234157, 26.261546], - [-37.244971, 26.329705], - [-37.263203, 26.396584], - [-37.288691, 26.461537], - [-37.321198, 26.523933], - [-37.360421, 26.583167], - [-37.405989, 26.638664], - [-37.457466, 26.689884], - [-37.51436, 26.736326], - [-37.576121, 26.777538], - [-37.642151, 26.813117], - [-37.711806, 26.842715], - [-37.784409, 26.866042], - [-37.85925, 26.88287], - [-37.935594, 26.893033], - [-38.012695, 26.896432] + [-38.012695, 26.896995], + [-38.089859, 26.893594], + [-38.166265, 26.883423], + [-38.241166, 26.866582], + [-38.313827, 26.843236], + [-38.38354, 26.813614], + [-38.449622, 26.778006], + [-38.511433, 26.736761], + [-38.568372, 26.690281], + [-38.619891, 26.63902], + [-38.665496, 26.583478], + [-38.70475, 26.524196], + [-38.737283, 26.46175], + [-38.762791, 26.396745], + [-38.781038, 26.329812], + [-38.79186, 26.261597], + [-38.795167, 26.19276], + [-38.79094, 26.123964], + [-38.779233, 26.05587], + [-38.76017, 25.989132], + [-38.733948, 25.924391], + [-38.700828, 25.862265], + [-38.661138, 25.803349], + [-38.615265, 25.748204], + [-38.563655, 25.697356], + [-38.506806, 25.651289], + [-38.445264, 25.610441], + [-38.379617, 25.575199], + [-38.310492, 25.545898], + [-38.238545, 25.522815], + [-38.16446, 25.506169], + [-38.088938, 25.496119], + [-38.012695, 25.492758], + [-37.936452, 25.496119], + [-37.860931, 25.506169], + [-37.786846, 25.522815], + [-37.714899, 25.545898], + [-37.645774, 25.575199], + [-37.580127, 25.610441], + [-37.518585, 25.651289], + [-37.461736, 25.697356], + [-37.410126, 25.748204], + [-37.364253, 25.803349], + [-37.324563, 25.862265], + [-37.291443, 25.924391], + [-37.265221, 25.989132], + [-37.246158, 26.05587], + [-37.234451, 26.123964], + [-37.230223, 26.19276], + [-37.23353, 26.261597], + [-37.244353, 26.329812], + [-37.2626, 26.396745], + [-37.288107, 26.46175], + [-37.320641, 26.524196], + [-37.359895, 26.583478], + [-37.405499, 26.63902], + [-37.457018, 26.690281], + [-37.513958, 26.736761], + [-37.575768, 26.778006], + [-37.641851, 26.813614], + [-37.711563, 26.843236], + [-37.784225, 26.866582], + [-37.859125, 26.883423], + [-37.935532, 26.893594], + [-38.012695, 26.896995] ] ] } diff --git a/packages/turf-sector/README.md b/packages/turf-sector/README.md index 8d226c7510..81de9113e7 100644 --- a/packages/turf-sector/README.md +++ b/packages/turf-sector/README.md @@ -17,6 +17,7 @@ between (clockwise) bearing1 and bearing2; 0 bearing is North of center point, p * `options.units` **Units** Supports all valid Turf [Units][5] (optional, default `'kilometers'`) * `options.steps` **[number][3]** number of steps (optional, default `64`) + * `options.maximumRimDeviation` **[number][3]?** if provided, will ignore steps and use a number of steps such that the rim of returned approximate regular polygon is at most this far away from the true circle * `options.properties` **Properties** Translate properties to Feature Polygon (optional, default `{}`) ### Examples diff --git a/packages/turf-sector/index.ts b/packages/turf-sector/index.ts index c817ea4c4b..633ce6cbce 100644 --- a/packages/turf-sector/index.ts +++ b/packages/turf-sector/index.ts @@ -2,7 +2,7 @@ import { Feature, Polygon, GeoJsonProperties } from "geojson"; import { circle } from "@turf/circle"; import { lineArc } from "@turf/line-arc"; import { coordEach } from "@turf/meta"; -import { Units, Coord, isObject, polygon } from "@turf/helpers"; +import { Coord, isObject, polygon, Units } from "@turf/helpers"; import { getCoords } from "@turf/invariant"; /** @@ -17,6 +17,7 @@ import { getCoords } from "@turf/invariant"; * @param {Object} [options={}] Optional parameters * @param {Units} [options.units='kilometers'] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units} * @param {number} [options.steps=64] number of steps + * @param {number} [options.maximumRimDeviation] if provided, will ignore steps and use a number of steps such that the rim of returned approximate regular polygon is at most this far away from the true circle * @param {Properties} [options.properties={}] Translate properties to Feature Polygon * @returns {Feature} sector polygon * @example @@ -37,6 +38,7 @@ function sector( bearing2: number, options: { steps?: number; + maximumRimDeviation?: number; units?: Units; properties?: GeoJsonProperties; } = {} diff --git a/packages/turf-sector/package.json b/packages/turf-sector/package.json index fa813426ba..6c0bfff7bf 100644 --- a/packages/turf-sector/package.json +++ b/packages/turf-sector/package.json @@ -3,6 +3,9 @@ "version": "7.2.0", "description": "Creates a circular sector of a circle.", "author": "Turf Authors", + "contributors": [ + "Scott Wiedemann <@lemmingapex>" + ], "license": "MIT", "bugs": { "url": "https://github.com/Turfjs/turf/issues" diff --git a/packages/turf-sector/test/out/pacman.geojson b/packages/turf-sector/test/out/pacman.geojson index 9fe79eb621..4e8a13b67a 100644 --- a/packages/turf-sector/test/out/pacman.geojson +++ b/packages/turf-sector/test/out/pacman.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [176.868896, -17.821916], - [178.151889, -18.668804], - [178.077565, -18.762645], - [177.995563, -18.850599], - [177.906393, -18.932108], - [177.810611, -19.006651], - [177.708821, -19.073754], - [177.601663, -19.132988], - [177.489819, -19.183974], - [177.373999, -19.226385], - [177.254942, -19.25995], - [177.13341, -19.284453], - [177.010181, -19.299738], - [176.886045, -19.305705], - [176.7618, -19.302317], - [176.638241, -19.289596], - [176.516163, -19.267622], - [176.396346, -19.236538], - [176.279558, -19.196542], - [176.166545, -19.147892], - [176.058025, -19.090898], - [175.954688, -19.025925], - [175.857187, -18.953388], - [175.766135, -18.873751], - [175.682103, -18.787521], - [175.605613, -18.695246], - [175.537137, -18.597512], - [175.477096, -18.494939], - [175.425853, -18.388176], - [175.383715, -18.277896], - [175.350929, -18.164796], - [175.327683, -18.049587], - [175.314104, -17.932991], - [175.310257, -17.815739], - [175.316147, -17.698564], - [175.331719, -17.582197], - [175.356857, -17.467363], - [175.391387, -17.354776], - [175.435078, -17.245134], - [175.487644, -17.139116], - [175.548744, -17.037379], - [175.617989, -16.940549], - [175.694941, -16.849225], - [175.779113, -16.763968], - [175.869982, -16.685303], - [175.96698, -16.613713], - [176.069507, -16.549637], - [176.17693, -16.493468], - [176.288587, -16.445549], - [176.403793, -16.406175], - [176.521842, -16.375586], - [176.64201, -16.353969], - [176.763565, -16.341457], - [176.885762, -16.338124], - [177.007856, -16.343994], - [177.129102, -16.359028], - [177.248759, -16.383135], - [177.366095, -16.416169], - [177.480392, -16.457926], - [177.590948, -16.508152], - [177.697086, -16.566539], - [177.79815, -16.632729], - [177.893515, -16.706317], - [177.982592, -16.786851], - [178.064823, -16.873835], - [178.139695, -16.966736], + [178.152926, -18.669481], + [178.078542, -18.763398], + [177.996475, -18.851424], + [177.907232, -18.932998], + [177.811374, -19.007602], + [177.709501, -19.074759], + [177.602257, -19.134041], + [177.490322, -19.185068], + [177.374408, -19.227513], + [177.255255, -19.261105], + [177.133624, -19.285629], + [177.010295, -19.300925], + [176.886059, -19.306898], + [176.761713, -19.303507], + [176.638054, -19.290775], + [176.515877, -19.268784], + [176.395963, -19.237675], + [176.279081, -19.197647], + [176.165976, -19.148957], + [176.057369, -19.091916], + [175.953948, -19.026891], + [175.856368, -18.954296], + [175.765243, -18.874594], + [175.681143, -18.788294], + [175.604592, -18.695944], + [175.536062, -18.598131], + [175.475973, -18.495476], + [175.42469, -18.388626], + [175.382518, -18.278258], + [175.349707, -18.165067], + [175.326443, -18.049765], + [175.312853, -17.933075], + [175.309004, -17.815729], + [175.3149, -17.698459], + [175.330485, -17.581999], + [175.355644, -17.467073], + [175.390203, -17.354396], + [175.433929, -17.244666], + [175.486538, -17.138564], + [175.547688, -17.036745], + [175.616989, -16.939838], + [175.694002, -16.848441], + [175.778242, -16.763116], + [175.869184, -16.684388], + [175.96626, -16.61274], + [176.068869, -16.548613], + [176.176378, -16.492399], + [176.288124, -16.444442], + [176.403422, -16.405037], + [176.521565, -16.374423], + [176.641829, -16.352789], + [176.763481, -16.340267], + [176.885775, -16.336932], + [177.007967, -16.342806], + [177.12931, -16.357852], + [177.249062, -16.381979], + [177.366492, -16.415038], + [177.48088, -16.456829], + [177.591525, -16.507095], + [177.697747, -16.565529], + [177.798892, -16.631772], + [177.894334, -16.705418], + [177.983482, -16.786016], + [178.065779, -16.87307], + [178.140711, -16.966045], [176.868896, -17.821916] ] ] diff --git a/packages/turf-sector/test/out/sector-full-360.geojson b/packages/turf-sector/test/out/sector-full-360.geojson index 5f7208de77..40c032b9b2 100644 --- a/packages/turf-sector/test/out/sector-full-360.geojson +++ b/packages/turf-sector/test/out/sector-full-360.geojson @@ -26,71 +26,71 @@ "type": "Polygon", "coordinates": [ [ - [11.343, 44.539966], - [11.336816, 44.539749], - [11.330693, 44.539101], - [11.324687, 44.538028], - [11.318859, 44.536541], - [11.313264, 44.534653], - [11.307955, 44.532383], - [11.302985, 44.529752], - [11.298401, 44.526787], - [11.294247, 44.523516], - [11.290563, 44.51997], - [11.287385, 44.516183], - [11.284743, 44.512193], - [11.282663, 44.508037], - [11.281164, 44.503756], - [11.28026, 44.49939], - [11.279962, 44.494983], - [11.28027, 44.490575], - [11.281182, 44.486211], - [11.28269, 44.481931], - [11.284777, 44.477777], - [11.287425, 44.47379], - [11.290608, 44.470006], - [11.294294, 44.466464], - [11.298449, 44.463196], - [11.303033, 44.460234], - [11.308, 44.457607], - [11.313304, 44.45534], - [11.318893, 44.453454], - [11.324714, 44.451969], - [11.330711, 44.450897], - [11.336826, 44.45025], - [11.343, 44.450034], - [11.349174, 44.45025], - [11.355289, 44.450897], - [11.361286, 44.451969], - [11.367107, 44.453454], - [11.372696, 44.45534], - [11.378, 44.457607], - [11.382967, 44.460234], - [11.387551, 44.463196], - [11.391706, 44.466464], - [11.395392, 44.470006], - [11.398575, 44.47379], - [11.401223, 44.477777], - [11.40331, 44.481931], - [11.404818, 44.486211], - [11.40573, 44.490575], - [11.406038, 44.494983], - [11.40574, 44.49939], - [11.404836, 44.503756], - [11.403337, 44.508037], - [11.401257, 44.512193], - [11.398615, 44.516183], - [11.395437, 44.51997], - [11.391753, 44.523516], - [11.387599, 44.526787], - [11.383015, 44.529752], - [11.378045, 44.532383], - [11.372736, 44.534653], - [11.367141, 44.536541], - [11.361313, 44.538028], - [11.355307, 44.539101], - [11.349184, 44.539749], - [11.343, 44.539966] + [11.343, 44.540002], + [11.336811, 44.539785], + [11.330683, 44.539137], + [11.324673, 44.538063], + [11.31884, 44.536574], + [11.31324, 44.534685], + [11.307927, 44.532413], + [11.302953, 44.52978], + [11.298365, 44.526813], + [11.294208, 44.523539], + [11.290521, 44.51999], + [11.28734, 44.5162], + [11.284696, 44.512207], + [11.282614, 44.508048], + [11.281114, 44.503763], + [11.28021, 44.499394], + [11.279911, 44.494983], + [11.280219, 44.490572], + [11.281133, 44.486204], + [11.282641, 44.481921], + [11.284731, 44.477764], + [11.287381, 44.473773], + [11.290566, 44.469986], + [11.294255, 44.466441], + [11.298414, 44.46317], + [11.303001, 44.460206], + [11.307972, 44.457577], + [11.31328, 44.455308], + [11.318874, 44.453421], + [11.3247, 44.451934], + [11.330701, 44.450862], + [11.336821, 44.450214], + [11.343, 44.449998], + [11.349179, 44.450214], + [11.355299, 44.450862], + [11.3613, 44.451934], + [11.367126, 44.453421], + [11.37272, 44.455308], + [11.378028, 44.457577], + [11.382999, 44.460206], + [11.387586, 44.46317], + [11.391745, 44.466441], + [11.395434, 44.469986], + [11.398619, 44.473773], + [11.401269, 44.477764], + [11.403359, 44.481921], + [11.404867, 44.486204], + [11.405781, 44.490572], + [11.406089, 44.494983], + [11.40579, 44.499394], + [11.404886, 44.503763], + [11.403386, 44.508048], + [11.401304, 44.512207], + [11.39866, 44.5162], + [11.395479, 44.51999], + [11.391792, 44.523539], + [11.387635, 44.526813], + [11.383047, 44.52978], + [11.378073, 44.532413], + [11.37276, 44.534685], + [11.36716, 44.536574], + [11.361327, 44.538063], + [11.355317, 44.539137], + [11.349189, 44.539785], + [11.343, 44.540002] ] ] } diff --git a/packages/turf-sector/test/out/sector-greater-360.geojson b/packages/turf-sector/test/out/sector-greater-360.geojson index 9a8c59ce04..5e1f16f376 100644 --- a/packages/turf-sector/test/out/sector-greater-360.geojson +++ b/packages/turf-sector/test/out/sector-greater-360.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.343, 44.539966], - [11.343344, 44.539965], - [11.343688, 44.539963], - [11.344032, 44.53996], - [11.344376, 44.539955], - [11.34472, 44.539949], - [11.345064, 44.539942], - [11.345408, 44.539933], - [11.345752, 44.539923], - [11.346096, 44.539912], - [11.346439, 44.539899], - [11.346783, 44.539885], - [11.347126, 44.53987], - [11.347469, 44.539853], - [11.347813, 44.539835], - [11.348156, 44.539816], - [11.348498, 44.539795], - [11.348841, 44.539773], - [11.349184, 44.539749], - [11.349526, 44.539725], - [11.349868, 44.539699], - [11.35021, 44.539671], - [11.350552, 44.539642], - [11.350893, 44.539612], - [11.351234, 44.539581], - [11.351575, 44.539548], - [11.351916, 44.539514], - [11.352257, 44.539479], - [11.352597, 44.539442], - [11.352937, 44.539404], - [11.353276, 44.539365], - [11.353616, 44.539324], - [11.353955, 44.539282], - [11.354294, 44.539239], - [11.354632, 44.539194], - [11.35497, 44.539149], - [11.355307, 44.539101], - [11.355645, 44.539053], - [11.355982, 44.539003], - [11.356318, 44.538952], - [11.356654, 44.538899], - [11.35699, 44.538846], - [11.357325, 44.53879], - [11.35766, 44.538734], - [11.357995, 44.538676], - [11.358329, 44.538617], - [11.358662, 44.538557], - [11.358995, 44.538496], - [11.359328, 44.538433], - [11.35966, 44.538369], - [11.359991, 44.538303], - [11.360322, 44.538236], - [11.360653, 44.538168], - [11.360983, 44.538099], - [11.361313, 44.538028], - [11.361642, 44.537956], - [11.36197, 44.537883], - [11.362298, 44.537809], - [11.362625, 44.537733], - [11.362952, 44.537656], - [11.363278, 44.537578], - [11.363603, 44.537498], - [11.363928, 44.537418], - [11.364252, 44.537336], - [11.364576, 44.537252], + [11.343, 44.540002], + [11.343344, 44.540001], + [11.343689, 44.539999], + [11.344033, 44.539996], + [11.344377, 44.539991], + [11.344722, 44.539985], + [11.345066, 44.539978], + [11.34541, 44.539969], + [11.345754, 44.539959], + [11.346098, 44.539948], + [11.346442, 44.539935], + [11.346786, 44.539921], + [11.347129, 44.539906], + [11.347473, 44.539889], + [11.347816, 44.539871], + [11.34816, 44.539852], + [11.348503, 44.539831], + [11.348846, 44.539809], + [11.349189, 44.539785], + [11.349531, 44.539761], + [11.349874, 44.539734], + [11.350216, 44.539707], + [11.350558, 44.539678], + [11.3509, 44.539648], + [11.351241, 44.539617], + [11.351582, 44.539584], + [11.351923, 44.53955], + [11.352264, 44.539515], + [11.352605, 44.539478], + [11.352945, 44.53944], + [11.353285, 44.539401], + [11.353624, 44.53936], + [11.353964, 44.539318], + [11.354303, 44.539275], + [11.354641, 44.53923], + [11.354979, 44.539184], + [11.355317, 44.539137], + [11.355655, 44.539088], + [11.355992, 44.539038], + [11.356329, 44.538987], + [11.356665, 44.538935], + [11.357001, 44.538881], + [11.357337, 44.538826], + [11.357672, 44.538769], + [11.358007, 44.538712], + [11.358341, 44.538652], + [11.358675, 44.538592], + [11.359008, 44.538531], + [11.359341, 44.538468], + [11.359673, 44.538403], + [11.360005, 44.538338], + [11.360336, 44.538271], + [11.360667, 44.538203], + [11.360998, 44.538134], + [11.361327, 44.538063], + [11.361657, 44.537991], + [11.361985, 44.537918], + [11.362313, 44.537843], + [11.362641, 44.537767], + [11.362968, 44.53769], + [11.363294, 44.537612], + [11.36362, 44.537533], + [11.363945, 44.537452], + [11.36427, 44.53737], + [11.364593, 44.537286], [11.343, 44.495] ] ] diff --git a/packages/turf-sector/test/out/sector1.geojson b/packages/turf-sector/test/out/sector1.geojson index c38e4a345f..95d1499017 100644 --- a/packages/turf-sector/test/out/sector1.geojson +++ b/packages/turf-sector/test/out/sector1.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.364576, 44.537252], - [11.365221, 44.537082], - [11.365864, 44.536906], - [11.366504, 44.536726], - [11.367141, 44.536541], - [11.367775, 44.53635], - [11.368406, 44.536155], - [11.369035, 44.535955], - [11.36966, 44.53575], - [11.370282, 44.53554], - [11.3709, 44.535325], - [11.371516, 44.535106], - [11.372128, 44.534882], - [11.372736, 44.534653], - [11.373341, 44.534419], - [11.373943, 44.53418], - [11.37454, 44.533937], - [11.375134, 44.53369], - [11.375724, 44.533437], - [11.37631, 44.53318], - [11.376893, 44.532919], - [11.377471, 44.532653], - [11.378045, 44.532383], - [11.378615, 44.532108], - [11.37918, 44.531828], - [11.379741, 44.531545], - [11.380298, 44.531257], - [11.380851, 44.530964], - [11.381399, 44.530668], - [11.381942, 44.530367], - [11.382481, 44.530062], - [11.383015, 44.529752], - [11.383544, 44.529439], - [11.384069, 44.529121], - [11.384588, 44.5288], - [11.385103, 44.528474], - [11.385612, 44.528145], - [11.386117, 44.527811], - [11.386616, 44.527474], - [11.38711, 44.527132], - [11.387599, 44.526787], - [11.388083, 44.526438], - [11.388561, 44.526086], - [11.389034, 44.525729], - [11.389501, 44.525369], - [11.389963, 44.525006], - [11.390419, 44.524638], - [11.390869, 44.524268], - [11.391314, 44.523893], - [11.391753, 44.523516], - [11.392186, 44.523135], - [11.392614, 44.52275], - [11.393035, 44.522363], - [11.393451, 44.521972], - [11.39386, 44.521578], - [11.394264, 44.52118], - [11.394661, 44.52078], - [11.395052, 44.520376], - [11.395437, 44.51997], - [11.395816, 44.51956], - [11.396188, 44.519148], - [11.396554, 44.518733], - [11.396914, 44.518314], - [11.397267, 44.517894], - [11.397614, 44.51747], + [11.364593, 44.537286], + [11.365239, 44.537116], + [11.365882, 44.53694], + [11.366523, 44.53676], + [11.36716, 44.536574], + [11.367795, 44.536384], + [11.368427, 44.536188], + [11.369056, 44.535988], + [11.369681, 44.535783], + [11.370304, 44.535573], + [11.370923, 44.535358], + [11.371539, 44.535138], + [11.372151, 44.534914], + [11.37276, 44.534685], + [11.373366, 44.534451], + [11.373968, 44.534212], + [11.374566, 44.533969], + [11.37516, 44.533721], + [11.375751, 44.533468], + [11.376337, 44.533211], + [11.37692, 44.532949], + [11.377498, 44.532683], + [11.378073, 44.532413], + [11.378643, 44.532137], + [11.379209, 44.531858], + [11.379771, 44.531574], + [11.380328, 44.531286], + [11.380881, 44.530993], + [11.38143, 44.530696], + [11.381974, 44.530395], + [11.382513, 44.53009], + [11.383047, 44.52978], + [11.383577, 44.529466], + [11.384102, 44.529149], + [11.384622, 44.528827], + [11.385137, 44.528501], + [11.385647, 44.528171], + [11.386152, 44.527837], + [11.386651, 44.5275], + [11.387146, 44.527158], + [11.387635, 44.526813], + [11.388119, 44.526463], + [11.388598, 44.526111], + [11.389071, 44.525754], + [11.389538, 44.525394], + [11.390001, 44.52503], + [11.390457, 44.524662], + [11.390908, 44.524291], + [11.391353, 44.523917], + [11.391792, 44.523539], + [11.392226, 44.523157], + [11.392654, 44.522773], + [11.393075, 44.522385], + [11.393491, 44.521993], + [11.393901, 44.521599], + [11.394305, 44.521201], + [11.394702, 44.520801], + [11.395094, 44.520397], + [11.395479, 44.51999], + [11.395858, 44.51958], + [11.396231, 44.519167], + [11.396597, 44.518752], + [11.396957, 44.518333], + [11.397311, 44.517912], + [11.397658, 44.517488], [11.343, 44.495] ] ] diff --git a/packages/turf-sector/test/out/sector2.geojson b/packages/turf-sector/test/out/sector2.geojson index f175f3d260..2741b7e1ed 100644 --- a/packages/turf-sector/test/out/sector2.geojson +++ b/packages/turf-sector/test/out/sector2.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.406038, 44.494983], - [11.405994, 44.493328], - [11.405864, 44.491675], - [11.405649, 44.490027], - [11.405349, 44.488385], - [11.404965, 44.486753], - [11.404496, 44.485131], - [11.403945, 44.483524], - [11.40331, 44.481931], - [11.402595, 44.480357], - [11.401798, 44.478802], - [11.400922, 44.477269], - [11.399967, 44.47576], - [11.398936, 44.474278], - [11.397828, 44.472823], - [11.396646, 44.471399], - [11.395392, 44.470006], - [11.394067, 44.468648], - [11.392673, 44.467325], - [11.391211, 44.466039], - [11.389684, 44.464793], - [11.388094, 44.463588], - [11.386443, 44.462425], - [11.384734, 44.461307], - [11.382967, 44.460234], - [11.381147, 44.459208], - [11.379275, 44.458231], - [11.377354, 44.457303], - [11.375387, 44.456427], - [11.373376, 44.455603], - [11.371323, 44.454832], - [11.369233, 44.454115], - [11.367107, 44.453454], - [11.364948, 44.452849], - [11.36276, 44.452302], - [11.360544, 44.451812], - [11.358306, 44.451381], - [11.356046, 44.451008], - [11.353769, 44.450695], - [11.351477, 44.450443], - [11.349174, 44.45025], - [11.346863, 44.450119], - [11.344546, 44.450048], - [11.342227, 44.450037], - [11.339909, 44.450088], - [11.337596, 44.4502], - [11.335289, 44.450372], - [11.332993, 44.450605], - [11.330711, 44.450897], - [11.328445, 44.45125], - [11.326199, 44.451662], - [11.323976, 44.452132], - [11.321778, 44.452661], - [11.31961, 44.453246], - [11.317472, 44.453889], - [11.315369, 44.454587], - [11.313304, 44.45534], - [11.311279, 44.456146], - [11.309297, 44.457005], - [11.30736, 44.457916], - [11.305471, 44.458877], - [11.303634, 44.459887], - [11.301849, 44.460944], - [11.30012, 44.462047], - [11.298449, 44.463196], + [11.406089, 44.494983], + [11.406045, 44.493326], + [11.405915, 44.491672], + [11.405699, 44.490023], + [11.405399, 44.48838], + [11.405014, 44.486746], + [11.404546, 44.485123], + [11.403994, 44.483514], + [11.403359, 44.481921], + [11.402642, 44.480345], + [11.401845, 44.478789], + [11.400968, 44.477255], + [11.400013, 44.475745], + [11.39898, 44.474261], + [11.397872, 44.472805], + [11.396689, 44.47138], + [11.395434, 44.469986], + [11.394108, 44.468626], + [11.392712, 44.467302], + [11.39125, 44.466016], + [11.389722, 44.464769], + [11.38813, 44.463563], + [11.386478, 44.462399], + [11.384767, 44.46128], + [11.382999, 44.460206], + [11.381178, 44.459179], + [11.379304, 44.458201], + [11.377382, 44.457273], + [11.375413, 44.456396], + [11.3734, 44.455571], + [11.371346, 44.454799], + [11.369254, 44.454082], + [11.367126, 44.453421], + [11.364966, 44.452816], + [11.362775, 44.452267], + [11.360559, 44.451777], + [11.358318, 44.451345], + [11.356057, 44.450973], + [11.353778, 44.45066], + [11.351484, 44.450407], + [11.349179, 44.450214], + [11.346866, 44.450082], + [11.344547, 44.450011], + [11.342226, 44.450001], + [11.339907, 44.450052], + [11.337591, 44.450164], + [11.335283, 44.450336], + [11.332985, 44.450569], + [11.330701, 44.450862], + [11.328434, 44.451215], + [11.326186, 44.451627], + [11.323961, 44.452098], + [11.321761, 44.452627], + [11.319591, 44.453213], + [11.317452, 44.453856], + [11.315347, 44.454554], + [11.31328, 44.455308], + [11.311253, 44.456115], + [11.309269, 44.456975], + [11.307331, 44.457886], + [11.305441, 44.458848], + [11.303602, 44.459858], + [11.301816, 44.460917], + [11.300086, 44.462021], + [11.298414, 44.46317], [11.343, 44.495] ] ] diff --git a/packages/turf-sector/test/out/sector3.geojson b/packages/turf-sector/test/out/sector3.geojson index dec78ee084..8bc5f843ab 100644 --- a/packages/turf-sector/test/out/sector3.geojson +++ b/packages/turf-sector/test/out/sector3.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.387599, 44.526787], - [11.390757, 44.524361], - [11.393656, 44.521775], - [11.39628, 44.519044], - [11.398615, 44.516183], - [11.400648, 44.513208], - [11.402369, 44.510133], - [11.403767, 44.506977], - [11.404836, 44.503756], - [11.40557, 44.500487], - [11.405965, 44.497189], - [11.406018, 44.493879], - [11.40573, 44.490575], - [11.405102, 44.487296], - [11.404138, 44.484058], - [11.402842, 44.480879], - [11.401223, 44.477777], - [11.399288, 44.474769], - [11.397048, 44.47187], - [11.394516, 44.469097], - [11.391706, 44.466464], - [11.388631, 44.463985], - [11.38531, 44.461675], - [11.38176, 44.459545], - [11.378, 44.457607], - [11.374051, 44.455871], - [11.369934, 44.454348], - [11.365671, 44.453045], - [11.361286, 44.451969], - [11.356801, 44.451126], - [11.352243, 44.45052], - [11.347634, 44.450156], - [11.343, 44.450034], - [11.338366, 44.450156], - [11.333757, 44.45052], - [11.329199, 44.451126], - [11.324714, 44.451969], - [11.320329, 44.453045], - [11.316066, 44.454348], - [11.311949, 44.455871], - [11.308, 44.457607], - [11.30424, 44.459545], - [11.30069, 44.461675], - [11.297369, 44.463985], - [11.294294, 44.466464], - [11.291484, 44.469097], - [11.288952, 44.47187], - [11.286712, 44.474769], - [11.284777, 44.477777], - [11.283158, 44.480879], - [11.281862, 44.484058], - [11.280898, 44.487296], - [11.28027, 44.490575], - [11.279982, 44.493879], - [11.280035, 44.497189], - [11.28043, 44.500487], - [11.281164, 44.503756], - [11.282233, 44.506977], - [11.283631, 44.510133], - [11.285352, 44.513208], - [11.287385, 44.516183], - [11.28972, 44.519044], - [11.292344, 44.521775], - [11.295243, 44.524361], - [11.298401, 44.526787], + [11.387635, 44.526813], + [11.390796, 44.524384], + [11.393697, 44.521797], + [11.396323, 44.519064], + [11.39866, 44.5162], + [11.400695, 44.513222], + [11.402417, 44.510145], + [11.403816, 44.506987], + [11.404886, 44.503763], + [11.405621, 44.500492], + [11.406015, 44.497191], + [11.406069, 44.493878], + [11.405781, 44.490572], + [11.405152, 44.487289], + [11.404187, 44.484049], + [11.40289, 44.480868], + [11.401269, 44.477764], + [11.399333, 44.474753], + [11.397092, 44.471851], + [11.394558, 44.469076], + [11.391745, 44.466441], + [11.388668, 44.46396], + [11.385344, 44.461648], + [11.381791, 44.459516], + [11.378028, 44.457577], + [11.374076, 44.45584], + [11.369955, 44.454315], + [11.365689, 44.453011], + [11.3613, 44.451934], + [11.356812, 44.45109], + [11.35225, 44.450485], + [11.347638, 44.45012], + [11.343, 44.449998], + [11.338362, 44.45012], + [11.33375, 44.450485], + [11.329188, 44.45109], + [11.3247, 44.451934], + [11.320311, 44.453011], + [11.316045, 44.454315], + [11.311924, 44.45584], + [11.307972, 44.457577], + [11.304209, 44.459516], + [11.300656, 44.461648], + [11.297332, 44.46396], + [11.294255, 44.466441], + [11.291442, 44.469076], + [11.288908, 44.471851], + [11.286667, 44.474753], + [11.284731, 44.477764], + [11.28311, 44.480868], + [11.281813, 44.484049], + [11.280848, 44.487289], + [11.280219, 44.490572], + [11.279931, 44.493878], + [11.279985, 44.497191], + [11.280379, 44.500492], + [11.281114, 44.503763], + [11.282184, 44.506987], + [11.283583, 44.510145], + [11.285305, 44.513222], + [11.28734, 44.5162], + [11.289677, 44.519064], + [11.292303, 44.521797], + [11.295204, 44.524384], + [11.298365, 44.526813], [11.343, 44.495] ] ] diff --git a/packages/turf-sector/test/out/sector4.geojson b/packages/turf-sector/test/out/sector4.geojson index f6d0f1fa79..9bd07f7631 100644 --- a/packages/turf-sector/test/out/sector4.geojson +++ b/packages/turf-sector/test/out/sector4.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.294686, 44.523893], - [11.295075, 44.524221], - [11.295468, 44.524546], - [11.295866, 44.524868], - [11.296267, 44.525188], - [11.296674, 44.525505], - [11.297084, 44.525819], - [11.297499, 44.52613], - [11.297917, 44.526438], - [11.29834, 44.526744], - [11.298767, 44.527046], - [11.299198, 44.527346], - [11.299633, 44.527643], - [11.300072, 44.527937], - [11.300515, 44.528227], - [11.300961, 44.528515], - [11.301412, 44.5288], - [11.301866, 44.529081], - [11.302324, 44.52936], - [11.302786, 44.529635], - [11.303251, 44.529907], - [11.303721, 44.530176], - [11.304193, 44.530442], - [11.304669, 44.530705], - [11.305149, 44.530964], - [11.305632, 44.53122], - [11.306119, 44.531473], - [11.306609, 44.531722], - [11.307102, 44.531969], - [11.307599, 44.532211], - [11.308098, 44.532451], - [11.308601, 44.532686], - [11.309107, 44.532919], - [11.309617, 44.533148], - [11.310129, 44.533374], - [11.310644, 44.533596], - [11.311162, 44.533814], - [11.311683, 44.534029], - [11.312207, 44.534241], - [11.312734, 44.534448], - [11.313264, 44.534653], - [11.313796, 44.534853], - [11.314331, 44.53505], - [11.314868, 44.535244], - [11.315408, 44.535433], - [11.315951, 44.535619], - [11.316496, 44.535802], - [11.317044, 44.53598], - [11.317594, 44.536155], - [11.318146, 44.536326], - [11.3187, 44.536494], - [11.319257, 44.536657], - [11.319816, 44.536817], - [11.320377, 44.536973], - [11.32094, 44.537125], - [11.321505, 44.537273], - [11.322072, 44.537418], - [11.322641, 44.537558], - [11.323212, 44.537695], - [11.323784, 44.537828], - [11.324358, 44.537956], - [11.324934, 44.538081], - [11.325512, 44.538202], - [11.326091, 44.53832], - [11.326672, 44.538433], + [11.294647, 44.523917], + [11.295036, 44.524245], + [11.29543, 44.52457], + [11.295828, 44.524892], + [11.29623, 44.525212], + [11.296636, 44.525529], + [11.297047, 44.525843], + [11.297462, 44.526155], + [11.297881, 44.526463], + [11.298304, 44.526769], + [11.298731, 44.527072], + [11.299163, 44.527372], + [11.299598, 44.527669], + [11.300037, 44.527963], + [11.30048, 44.528254], + [11.300927, 44.528542], + [11.301378, 44.528827], + [11.301833, 44.529109], + [11.302291, 44.529387], + [11.302754, 44.529663], + [11.303219, 44.529935], + [11.303689, 44.530205], + [11.304162, 44.530471], + [11.304639, 44.530734], + [11.305119, 44.530993], + [11.305602, 44.531249], + [11.306089, 44.531502], + [11.30658, 44.531752], + [11.307073, 44.531998], + [11.30757, 44.532241], + [11.30807, 44.532481], + [11.308574, 44.532717], + [11.30908, 44.532949], + [11.30959, 44.533179], + [11.310102, 44.533404], + [11.310618, 44.533627], + [11.311137, 44.533845], + [11.311658, 44.53406], + [11.312183, 44.534272], + [11.31271, 44.53448], + [11.31324, 44.534685], + [11.313772, 44.534885], + [11.314308, 44.535082], + [11.314846, 44.535276], + [11.315386, 44.535466], + [11.315929, 44.535652], + [11.316475, 44.535834], + [11.317023, 44.536013], + [11.317573, 44.536188], + [11.318126, 44.536359], + [11.318681, 44.536527], + [11.319238, 44.536691], + [11.319797, 44.53685], + [11.320359, 44.537007], + [11.320922, 44.537159], + [11.321488, 44.537307], + [11.322055, 44.537452], + [11.322624, 44.537592], + [11.323196, 44.537729], + [11.323769, 44.537862], + [11.324343, 44.537991], + [11.32492, 44.538116], + [11.325498, 44.538237], + [11.326078, 44.538354], + [11.326659, 44.538468], [11.343, 44.495] ] ] diff --git a/packages/turf-sector/test/out/sector5.geojson b/packages/turf-sector/test/out/sector5.geojson index 9f45dc8c30..2707a165d9 100644 --- a/packages/turf-sector/test/out/sector5.geojson +++ b/packages/turf-sector/test/out/sector5.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.326672, 44.538433], - [11.33213, 44.539293], - [11.337673, 44.539805], - [11.343258, 44.539966], - [11.348841, 44.539773], - [11.354378, 44.539228], - [11.359826, 44.538336], - [11.365141, 44.537103], - [11.370282, 44.53554], - [11.375208, 44.533658], - [11.379881, 44.531473], - [11.384264, 44.529001], - [11.388323, 44.526262], - [11.392025, 44.523278], - [11.395341, 44.520072], - [11.398247, 44.516669], - [11.400718, 44.513095], - [11.402735, 44.50938], - [11.404284, 44.505552], - [11.405351, 44.501642], - [11.405928, 44.497679], - [11.406011, 44.493695], - [11.4056, 44.489722], - [11.404697, 44.48579], - [11.40331, 44.481931], - [11.401451, 44.478175], - [11.399132, 44.47455], - [11.396374, 44.471086], - [11.393197, 44.46781], - [11.389626, 44.464748], - [11.385691, 44.461923], - [11.38142, 44.459357], - [11.376848, 44.457071], - [11.372012, 44.455083], - [11.366948, 44.453408], - [11.361696, 44.452059], - [11.356298, 44.451047], - [11.350796, 44.450379], - [11.345233, 44.450062], - [11.339652, 44.450097], - [11.334097, 44.450485], - [11.328613, 44.451222], - [11.32324, 44.452302], - [11.318023, 44.453717], - [11.313001, 44.455456], - [11.308215, 44.457505], - [11.303701, 44.459848], - [11.299495, 44.462468], - [11.295629, 44.465342], - [11.292135, 44.468449], - [11.28904, 44.471765], - [11.286368, 44.475263], - [11.28414, 44.478916], - [11.282374, 44.482696], - [11.281083, 44.486572], - [11.280278, 44.490514], - [11.279966, 44.494492], - [11.280148, 44.498474], - [11.280824, 44.502429], - [11.281988, 44.506325], - [11.283631, 44.510133], - [11.285741, 44.513822], - [11.2883, 44.517364], - [11.29129, 44.52073], - [11.294686, 44.523893], + [11.326659, 44.538468], + [11.332121, 44.539329], + [11.337669, 44.539841], + [11.343258, 44.540002], + [11.348846, 44.539809], + [11.354387, 44.539264], + [11.359839, 44.538371], + [11.365159, 44.537137], + [11.370304, 44.535573], + [11.375234, 44.533689], + [11.379911, 44.531502], + [11.384297, 44.529028], + [11.388359, 44.526287], + [11.392064, 44.523301], + [11.395383, 44.520092], + [11.398291, 44.516686], + [11.400764, 44.51311], + [11.402783, 44.509392], + [11.404333, 44.505561], + [11.405401, 44.501647], + [11.405978, 44.497681], + [11.406062, 44.493694], + [11.40565, 44.489718], + [11.404747, 44.485783], + [11.403359, 44.481921], + [11.401498, 44.478161], + [11.399177, 44.474534], + [11.396417, 44.471067], + [11.393237, 44.467789], + [11.389664, 44.464723], + [11.385725, 44.461896], + [11.381451, 44.459328], + [11.376876, 44.457041], + [11.372035, 44.455051], + [11.366967, 44.453374], + [11.361711, 44.452024], + [11.356309, 44.451011], + [11.350802, 44.450344], + [11.345234, 44.450026], + [11.339649, 44.450061], + [11.33409, 44.450449], + [11.328601, 44.451187], + [11.323225, 44.452267], + [11.318003, 44.453684], + [11.312977, 44.455424], + [11.308187, 44.457475], + [11.303669, 44.45982], + [11.29946, 44.462441], + [11.295591, 44.465318], + [11.292095, 44.468428], + [11.288997, 44.471746], + [11.286323, 44.475247], + [11.284093, 44.478903], + [11.282325, 44.482686], + [11.281034, 44.486565], + [11.280228, 44.490511], + [11.279915, 44.494492], + [11.280098, 44.498477], + [11.280774, 44.502435], + [11.281939, 44.506335], + [11.283583, 44.510145], + [11.285695, 44.513837], + [11.288256, 44.517382], + [11.291248, 44.52075], + [11.294647, 44.523917], [11.343, 44.495] ] ] diff --git a/packages/turf-sector/test/out/sector6.geojson b/packages/turf-sector/test/out/sector6.geojson index bdaab18437..26766271c3 100644 --- a/packages/turf-sector/test/out/sector6.geojson +++ b/packages/turf-sector/test/out/sector6.geojson @@ -27,71 +27,71 @@ "coordinates": [ [ [11.343, 44.495], - [11.397614, 44.51747], - [11.400151, 44.513989], - [11.402252, 44.510364], - [11.403903, 44.506622], - [11.405089, 44.502791], - [11.405803, 44.498902], - [11.406038, 44.494983], - [11.405794, 44.491064], - [11.405072, 44.487175], - [11.403878, 44.483346], - [11.402221, 44.479605], - [11.400114, 44.475982], - [11.397572, 44.472504], - [11.394615, 44.469197], - [11.391266, 44.466086], - [11.387551, 44.463196], - [11.383496, 44.460547], - [11.379135, 44.45816], - [11.374498, 44.456054], - [11.369623, 44.454244], - [11.364545, 44.452744], - [11.359303, 44.451565], - [11.353938, 44.450717], - [11.34849, 44.450205], - [11.343, 44.450034], - [11.33751, 44.450205], - [11.332062, 44.450717], - [11.326697, 44.451565], - [11.321455, 44.452744], - [11.316377, 44.454244], - [11.311502, 44.456054], - [11.306865, 44.45816], - [11.302504, 44.460547], - [11.298449, 44.463196], - [11.294734, 44.466086], - [11.291385, 44.469197], - [11.288428, 44.472504], - [11.285886, 44.475982], - [11.283779, 44.479605], - [11.282122, 44.483346], - [11.280928, 44.487175], - [11.280206, 44.491064], - [11.279962, 44.494983], - [11.280197, 44.498902], - [11.280911, 44.502791], - [11.282097, 44.506622], - [11.283748, 44.510364], - [11.285849, 44.513989], - [11.288386, 44.51747], - [11.291339, 44.52078], - [11.294686, 44.523893], - [11.298401, 44.526787], - [11.302456, 44.529439], - [11.30682, 44.531828], - [11.31146, 44.533937], - [11.31634, 44.53575], - [11.321424, 44.537252], - [11.326672, 44.538433], - [11.332045, 44.539282], - [11.337502, 44.539795], - [11.343, 44.539966], - [11.348498, 44.539795], - [11.353955, 44.539282], - [11.359328, 44.538433], - [11.364576, 44.537252], + [11.397658, 44.517488], + [11.400197, 44.514004], + [11.4023, 44.510376], + [11.403952, 44.506631], + [11.405139, 44.502798], + [11.405853, 44.498905], + [11.406089, 44.494983], + [11.405845, 44.491061], + [11.405122, 44.487169], + [11.403927, 44.483336], + [11.402269, 44.479593], + [11.400159, 44.475967], + [11.397616, 44.472486], + [11.394657, 44.469176], + [11.391305, 44.466063], + [11.387586, 44.46317], + [11.383529, 44.460519], + [11.379164, 44.458131], + [11.374523, 44.456023], + [11.369644, 44.454211], + [11.364562, 44.45271], + [11.359316, 44.45153], + [11.353947, 44.450681], + [11.348494, 44.450169], + [11.343, 44.449998], + [11.337506, 44.450169], + [11.332053, 44.450681], + [11.326684, 44.45153], + [11.321438, 44.45271], + [11.316356, 44.454211], + [11.311477, 44.456023], + [11.306836, 44.458131], + [11.302471, 44.460519], + [11.298414, 44.46317], + [11.294695, 44.466063], + [11.291343, 44.469176], + [11.288384, 44.472486], + [11.285841, 44.475967], + [11.283731, 44.479593], + [11.282073, 44.483336], + [11.280878, 44.487169], + [11.280155, 44.491061], + [11.279911, 44.494983], + [11.280147, 44.498905], + [11.280861, 44.502798], + [11.282048, 44.506631], + [11.2837, 44.510376], + [11.285803, 44.514004], + [11.288342, 44.517488], + [11.291298, 44.520801], + [11.294647, 44.523917], + [11.298365, 44.526813], + [11.302423, 44.529466], + [11.306791, 44.531858], + [11.311434, 44.533969], + [11.316319, 44.535783], + [11.321407, 44.537286], + [11.326659, 44.538468], + [11.332036, 44.539318], + [11.337497, 44.539831], + [11.343, 44.540002], + [11.348503, 44.539831], + [11.353964, 44.539318], + [11.359341, 44.538468], + [11.364593, 44.537286], [11.343, 44.495] ] ] diff --git a/packages/turf-standard-deviational-ellipse/test/out/mta-stations-unweighted.json b/packages/turf-standard-deviational-ellipse/test/out/mta-stations-unweighted.json index 831bfbe7e5..b8d1d73876 100644 --- a/packages/turf-standard-deviational-ellipse/test/out/mta-stations-unweighted.json +++ b/packages/turf-standard-deviational-ellipse/test/out/mta-stations-unweighted.json @@ -109,71 +109,71 @@ "type": "Polygon", "coordinates": [ [ - [-74.03359324546851, 40.75132103218129], - [-74.02980293400115, 40.76012863103802], - [-74.02528552411586, 40.76887197102854], - [-74.0200350928131, 40.777482909918255], - [-74.01405082863232, 40.7858879763643], - [-74.00733773756559, 40.79400823663968], - [-73.99990742755185, 40.801759182943094], - [-73.99177898248347, 40.80905064919711], - [-73.98297993893047, 40.81578676164539], - [-73.97354738172352, 40.821865933378426], - [-73.96352917838684, 40.82718091429612], - [-73.9529853775278, 40.8316189111703], - [-73.94198980319563, 40.835061796717234], - [-73.93063188669697, 40.8373864324002], - [-73.919018790595, 40.8384651377768], - [-73.90727789847813, 40.83816635070532], - [-73.89555977154562, 40.83635553942771], - [-73.88443014504873, 40.83304344443191], - [-73.87437098343747, 40.82845426835252], - [-73.86541133661937, 40.82276283715078], - [-73.85756288120297, 40.8161319079139], - [-73.8508231008489, 40.80871263328326], - [-73.84517788429955, 40.80064504272652], - [-73.8406036708805, 40.79205853130578], - [-73.83706923820884, 40.78307234930186], - [-73.83453720269986, 40.77379608793092], - [-73.83296528646396, 40.76433015771664], - [-73.83230739197033, 40.75476625704031], - [-73.83251451691409, 40.74518782909243], - [-73.8335355350701, 40.73567050597184], - [-73.83531786388474, 40.72628253907192], - [-73.83780803569908, 40.71708521519108], - [-73.84095218649749, 40.70813325803411], - [-73.84476451396527, 40.699331854062216], - [-73.84930090197322, 40.690595566053084], - [-73.85456655089425, 40.68199237410667], - [-73.86056159765634, 40.67359555113398], - [-73.86728043775769, 40.66548379754552], - [-73.87471097122668, 40.657741355762894], - [-73.88283376112537, 40.650458098876975], - [-73.89162109071555, 40.64372958637409], - [-73.90103590221698, 40.63765707803131], - [-73.91103059593168, 40.63234749469166], - [-73.92154566302204, 40.62791331145134], - [-73.93250811787672, 40.624472364501344], - [-73.94382968598299, 40.6221475469883], - [-73.95540468933167, 40.62106636106392], - [-73.9671075517279, 40.62136028164354], - [-73.97878981795107, 40.62316387047818], - [-73.98988907748351, 40.626466916318215], - [-73.99992569571032, 40.63104607657647], - [-74.00887104266555, 40.63672711589932], - [-74.01671341138922, 40.64334780103107], - [-74.02345492440752, 40.65075742560566], - [-74.02910901786136, 40.658816323886754], - [-74.0336983714282, 40.667395381445], - [-74.03725318812609, 40.67637554829524], - [-74.03980975286483, 40.68564735834254], - [-74.04140921605757, 40.69511045782774], - [-74.04209656113622, 40.704673144647536], - [-74.04191972396667, 40.71425191984239], - [-74.0409288389554, 40.723771052124086], - [-74.03917559175294, 40.73316215600696], - [-74.03671266236184, 40.742363783879206], - [-74.03359324546851, 40.75132103218129] + [-74.03367352410493, 40.75133895125631], + [-74.02988006484512, 40.760153888646016], + [-74.0253589002971, 40.76890451400741], + [-74.02010410222427, 40.777522628282114], + [-74.01411485820589, 40.78593469884946], + [-74.00739617815074, 40.79406172614023], + [-73.99995967945753, 40.801819131854614], + [-73.99182446176339, 40.809116674692014], + [-73.98301808449584, 40.81585840090988], + [-73.97357766338317, 40.821942638848334], + [-73.96355110592967, 40.82726204893897], + [-73.95299851098336, 40.83170374387292], + [-73.94199376443393, 40.83514949785431], + [-73.9306263725625, 40.83747606967957], + [-73.91900358781352, 40.838555672484674], + [-73.90725290063516, 40.83825663451171], + [-73.89552499851676, 40.83644431196242], + [-73.88438608931268, 40.83312945449304], + [-73.87431853988299, 40.82853645184031], + [-73.86535142450558, 40.82284027582819], + [-73.857496429499, 40.81620381932606], + [-73.8507510362594, 40.808778361059225], + [-73.84510112148908, 40.80070404727968], + [-73.84052310451699, 40.79211038094129], + [-73.83698573652461, 40.78311671173307], + [-73.8344516023275, 40.77383272220256], + [-73.83287838834876, 40.764358906529445], + [-73.83221995819538, 40.754787039469264], + [-73.83242726830193, 40.745200633689116], + [-73.83344914944571, 40.7356753842405], + [-73.8352329749031, 40.7262795993075], + [-73.83772523215424, 40.71707461666733], + [-73.84087201204237, 40.708115205529346], + [-73.84468752399269, 40.69930647334831], + [-73.84922769829079, 40.69056291172053], + [-73.85449773934242, 40.68195255729954], + [-73.86049778391161, 40.67354874394342], + [-73.8672222225824, 40.66543023751613], + [-73.87465894510338, 40.657681350495466], + [-73.88278849820351, 40.65039203070724], + [-73.8915831419868, 40.64365791710025], + [-73.9010057878204, 40.63758035365674], + [-73.91100879647261, 40.632266350139325], + [-73.92153260976471, 40.62782847519475], + [-73.93250418164219, 40.62438466304102], + [-73.94383516454566, 40.62205790908268], + [-73.95541979305874, 40.62097582159588], + [-73.9671323871389, 40.621269984966844], + [-73.97882436878518, 40.62307507303677], + [-73.9899328604176, 40.62638086626974], + [-73.99997782889389, 40.63096383640973], + [-74.0089306205776, 40.63664960322466], + [-74.01677951874808, 40.64327579854965], + [-74.02352664753968, 40.65069159067845], + [-74.02918545400827, 40.658757197696545], + [-74.03377863635971, 40.66734339775049], + [-74.03733642234884, 40.676331041780735], + [-74.0398951266542, 40.68561057256944], + [-74.04149593349736, 40.69508155279604], + [-74.04218386331564, 40.70465220397684], + [-74.0420068914584, 40.71423895758266], + [-74.04101519367671, 40.72376601920739], + [-74.03926049829647, 40.73316494635118], + [-74.03679552886851, 40.742374240155414], + [-74.03367352410493, 40.75133895125631] ] ] } diff --git a/packages/turf-standard-deviational-ellipse/test/out/mta-stations-weighted.json b/packages/turf-standard-deviational-ellipse/test/out/mta-stations-weighted.json index b9af10aef2..0d2bcfb458 100644 --- a/packages/turf-standard-deviational-ellipse/test/out/mta-stations-weighted.json +++ b/packages/turf-standard-deviational-ellipse/test/out/mta-stations-weighted.json @@ -109,71 +109,71 @@ "type": "Polygon", "coordinates": [ [ - [-74.02452801068807, 40.775547173294186], - [-74.01893422646326, 40.78259752726428], - [-74.01268414445943, 40.78943811380472], - [-74.00579638065156, 40.796006107373], - [-73.99829617235616, 40.80223594694747], - [-73.99021592245862, 40.80805957219015], - [-73.98159576262077, 40.8134067167014], - [-73.9724841338293, 40.81820526653445], - [-73.9629383821334, 40.82238169342446], - [-73.95302536680158, 40.8258615737414], - [-73.94282207737366, 40.82857020607593], - [-73.93241625516164, 40.83043334270903], - [-73.92190701361201, 40.831378053136305], - [-73.91140545051374, 40.83133374149704], - [-73.90103524323057, 40.83023334445488], - [-73.89093321581471, 40.82801474214651], - [-73.88124986383536, 40.82462242277314], - [-73.87237279234334, 40.82014233496311], - [-73.86460097509195, 40.81477985802708], - [-73.85795003463295, 40.80866105611467], - [-73.85242093101229, 40.80190655870187], - [-73.84800215245467, 40.79463104771375], - [-73.84467163625422, 40.786942903004004], - [-73.84239845801515, 40.77894397546494], - [-73.84114432030273, 40.77072946332155], - [-73.84086486634928, 40.76238787196388], - [-73.84151084025547, 40.75400104139124], - [-73.8430291118138, 40.7456442282593], - [-73.84536358143308, 40.73738623183474], - [-73.84845597849838, 40.72928955501612], - [-73.85224656474314, 40.72141059307866], - [-73.85667475275184, 40.71379984402171], - [-73.86167964848912, 40.70650213540208], - [-73.86728368644258, 40.69945937985531], - [-73.87354025396233, 40.69262664020811], - [-73.88043036281451, 40.68606650975553], - [-73.88792850688942, 40.67984429861887], - [-73.89600213853876, 40.67402780376825], - [-73.90461112478266, 40.668687023307626], - [-73.91370718412121, 40.66389380684423], - [-73.92323330506247, 40.659721432427446], - [-73.93312314796478, 40.656244098923295], - [-73.94330043241949, 40.653536320714245], - [-73.953678313213, 40.65167220918066], - [-73.96415874896458, 40.65072462239258], - [-73.9746318689202, 40.650764160635475], - [-73.98497534519998, 40.651857980554134], - [-73.99505378020882, 40.65406839446653], - [-74.00471812214236, 40.657451213261425], - [-74.01358239966163, 40.66192116955677], - [-74.02134836223475, 40.66727365770246], - [-74.02800018349505, 40.67338307986641], - [-74.03353641529728, 40.68012919335254], - [-74.03796786068695, 40.687397618451094], - [-74.04131571419732, 40.695080192396205], - [-74.04360992940073, 40.70307519921561], - [-74.04488778136994, 40.7112874990724], - [-74.04519259763617, 40.71962857599848], - [-74.04457263584214, 40.72801651930139], - [-74.04308008991914, 40.73637595110584], - [-74.04077020950417, 40.744637910270065], - [-74.03770051963454, 40.75273970114755], - [-74.03393012963858, 40.76062471424352], - [-74.02951912168086, 40.76824222466161], - [-74.02452801068807, 40.775547173294186] + [-74.02459504813613, 40.775575519468546], + [-74.01899666750992, 40.78263167517764], + [-74.01274144777567, 40.78947789103693], + [-74.00584802006381, 40.796051289736845], + [-73.99834164233458, 40.80228625623095], + [-73.9902547440619, 40.80811467409573], + [-73.98162748991219, 40.81346621902932], + [-73.97250836077743, 40.81826871766483], + [-73.96295475000909, 40.8224485811598], + [-73.95303357207918, 40.82593132458068], + [-73.94282188014157, 40.82864218500179], + [-73.93240748804317, 40.83050685358194], + [-73.9218895911916, 40.83145233980446], + [-73.91137937925797, 40.83140798974847], + [-73.90100063188501, 40.8303066849597], + [-73.8908902862481, 40.828086254563964], + [-73.88119896229026, 40.82469114123066], + [-73.87231458452531, 40.82020736455928], + [-73.86453637289614, 40.81484047309616], + [-73.85787996271652, 40.808716634866066], + [-73.85234631461726, 40.80195657871713], + [-73.84792390705934, 40.79467508101983], + [-73.84459065882994, 40.78698061085473], + [-73.84231561969618, 40.77897510293702], + [-73.84106046030168, 40.77075383381143], + [-73.84078078697162, 40.76240538165465], + [-73.84142730288382, 40.75401165374589], + [-73.8429468337479, 40.74564796858543], + [-73.84528323348384, 40.73738318195697], + [-73.84837818324598, 40.72927984808513], + [-73.85217189537846, 40.721394408539126], + [-73.85660373242919, 40.71377740275714], + [-73.86161275012626, 40.706473695069334], + [-73.86722140135463, 40.699425150287446], + [-73.87348311727735, 40.69258679423417], + [-73.8803788938926, 40.68602127158941], + [-73.88788320400455, 40.67979394608636], + [-73.89596347313815, 40.673972670347375], + [-73.90457953530681, 40.668627499937045], + [-73.91368306936769, 40.66383034344774], + [-73.92321701707715, 40.65965453909474], + [-73.93311498444514, 40.65617434667766], + [-73.94330062861587, 40.65346434178757], + [-73.95368703331548, 40.65159869670265], + [-73.9641760769663, 40.65065032938599], + [-73.97465779895136, 40.650689898190535], + [-73.98500977133251, 40.651784615032504], + [-73.99509648573896, 40.65399684355748], + [-74.00476876836827, 40.65738244067823], + [-74.0136403311069, 40.66185606916255], + [-74.02141267842353, 40.66721295539788], + [-74.02806997085408, 40.67332739844433], + [-74.03361075886512, 40.680079056870106], + [-74.03804585409964, 40.68735345701739], + [-74.04139646816918, 40.695042347250705], + [-74.04369257888553, 40.703043927996895], + [-74.04497149156077, 40.711262981195404], + [-74.04527656893954, 40.71961091807407], + [-74.0446561079447, 40.728005760544214], + [-74.04316234504975, 40.73637206868647], + [-74.04085057498182, 40.74464082457561], + [-74.037778369782, 40.75274928092199], + [-74.0340048871331, 40.76064078158418], + [-74.02959025840465, 40.768264559853726], + [-74.02459504813613, 40.775575519468546] ] ] }