Skip to content

Commit 111d784

Browse files
Use 6 decimal digits as precision for test data
1 parent 6c59a1e commit 111d784

File tree

6 files changed

+494
-494
lines changed

6 files changed

+494
-494
lines changed

packages/turf-shortest-path/test/in/farmland.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"geometry": {
1414
"type": "Point",
15-
"coordinates": [13.811772324108205, 52.15187842149308]
15+
"coordinates": [13.811772, 52.151878]
1616
}
1717
},
1818
{
@@ -22,7 +22,7 @@
2222
},
2323
"geometry": {
2424
"type": "Point",
25-
"coordinates": [13.80780718427863, 52.15711694225445]
25+
"coordinates": [13.807807, 52.157116]
2626
}
2727
},
2828
{
@@ -34,11 +34,11 @@
3434
"type": "Polygon",
3535
"coordinates": [
3636
[
37-
[13.809135109049322, 52.1533094692154],
38-
[13.809135109049322, 52.152020775802356],
39-
[13.8130016727888, 52.152020775802356],
40-
[13.8130016727888, 52.1533094692154],
41-
[13.809135109049322, 52.1533094692154]
37+
[13.809135, 52.153309],
38+
[13.809135, 52.152021],
39+
[13.813001, 52.152021],
40+
[13.813001, 52.153309],
41+
[13.809135, 52.153309]
4242
]
4343
]
4444
}

packages/turf-shortest-path/test/in/multiple-obstacles.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"geometry": {
1414
"type": "Point",
15-
"coordinates": [-0.15850315869209908, 51.50751033097521]
15+
"coordinates": [-0.158503, 51.50751]
1616
}
1717
},
1818
{
@@ -22,7 +22,7 @@
2222
},
2323
"geometry": {
2424
"type": "Point",
25-
"coordinates": [-0.1569383441422758, 51.50724018084421]
25+
"coordinates": [-0.156938, 51.50724]
2626
}
2727
},
2828
{
@@ -34,12 +34,12 @@
3434
"type": "Polygon",
3535
"coordinates": [
3636
[
37-
[-0.15865694501789562, 51.50743756754056],
38-
[-0.15776266547817386, 51.50695735138396],
39-
[-0.1574032001721264, 51.507497594204295],
40-
[-0.15840268907001587, 51.50772132925411],
41-
[-0.15838515417763688, 51.507443024513464],
42-
[-0.15865694501789562, 51.50743756754056]
37+
[-0.158656, 51.507437],
38+
[-0.157762, 51.506957],
39+
[-0.157403, 51.507497],
40+
[-0.158402, 51.507721],
41+
[-0.158385, 51.507443],
42+
[-0.158656, 51.507437]
4343
]
4444
]
4545
}
@@ -53,11 +53,11 @@
5353
"type": "Polygon",
5454
"coordinates": [
5555
[
56-
[-0.1572162795729355, 51.507531658549084],
57-
[-0.1572162795729355, 51.50731127313941],
58-
[-0.15686981211763396, 51.50731127313941],
59-
[-0.15686981211763396, 51.507531658549084],
60-
[-0.1572162795729355, 51.507531658549084]
56+
[-0.157216, 51.507531],
57+
[-0.157216, 51.507311],
58+
[-0.156869, 51.507311],
59+
[-0.156869, 51.507531],
60+
[-0.157216, 51.507531]
6161
]
6262
]
6363
}
@@ -71,12 +71,12 @@
7171
"type": "Polygon",
7272
"coordinates": [
7373
[
74-
[-0.1574146287955216, 51.50737390306023],
75-
[-0.1575275779884464, 51.50701391127427],
76-
[-0.15717120381211203, 51.506986033003926],
77-
[-0.15690246263028484, 51.507049062112884],
78-
[-0.15719262521125188, 51.50723208845383],
79-
[-0.1574146287955216, 51.50737390306023]
74+
[-0.157414, 51.507373],
75+
[-0.157527, 51.507013],
76+
[-0.157171, 51.506986],
77+
[-0.156902, 51.507049],
78+
[-0.157192, 51.507232],
79+
[-0.157414, 51.507373]
8080
]
8181
]
8282
}
@@ -90,10 +90,10 @@
9090
"type": "Polygon",
9191
"coordinates": [
9292
[
93-
[-0.1578102237825476, 51.507865789233904],
94-
[-0.15731907760937247, 51.50750085205033],
95-
[-0.1572315089122469, 51.50772834570279],
96-
[-0.1578102237825476, 51.507865789233904]
93+
[-0.15781, 51.507865],
94+
[-0.157319, 51.507501],
95+
[-0.157231, 51.507728],
96+
[-0.15781, 51.507865]
9797
]
9898
]
9999
}

packages/turf-shortest-path/test/in/simple.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
"type": "Polygon",
3333
"coordinates": [
3434
[
35-
[8.206787109375, 40.730608477796636],
36-
[8.5693359375, 39.8928799002948],
37-
[8.349609375, 39.257778150283364],
38-
[8.843994140625, 38.90813299596705],
39-
[9.085693359375, 39.257778150283364],
40-
[9.591064453125, 39.16414104768742],
41-
[9.591064453125, 40.271143686084194],
42-
[9.82177734375, 40.47202439692057],
43-
[9.283447265625, 41.253032440653186],
44-
[8.206787109375, 40.730608477796636]
35+
[8.206787, 40.730608],
36+
[8.569335, 39.892879],
37+
[8.349609, 39.257778],
38+
[8.843994, 38.908132],
39+
[9.085693, 39.257778],
40+
[9.591064, 39.164141],
41+
[9.591064, 40.271143],
42+
[9.821777, 40.472024],
43+
[9.283447, 41.253032],
44+
[8.206787, 40.730608]
4545
]
4646
]
4747
}

packages/turf-shortest-path/test/out/farmland.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"type": "Polygon",
1111
"coordinates": [
1212
[
13-
[13.809135109049322, 52.1533094692154],
14-
[13.809135109049322, 52.152020775802356],
15-
[13.8130016727888, 52.152020775802356],
16-
[13.8130016727888, 52.1533094692154],
17-
[13.809135109049322, 52.1533094692154]
13+
[13.809135, 52.153309],
14+
[13.809135, 52.152021],
15+
[13.813001, 52.152021],
16+
[13.813001, 52.153309],
17+
[13.809135, 52.153309]
1818
]
1919
]
2020
}
@@ -26,7 +26,7 @@
2626
},
2727
"geometry": {
2828
"type": "Point",
29-
"coordinates": [13.811772324108205, 52.15187842149308]
29+
"coordinates": [13.811772, 52.151878]
3030
}
3131
},
3232
{
@@ -36,7 +36,7 @@
3636
},
3737
"geometry": {
3838
"type": "Point",
39-
"coordinates": [13.80780718427863, 52.15711694225445]
39+
"coordinates": [13.807807, 52.157116]
4040
}
4141
},
4242
{
@@ -49,11 +49,11 @@
4949
"type": "LineString",
5050
"coordinates": [
5151
[13.811772, 52.151878],
52-
[13.811577, 52.15198],
53-
[13.809232, 52.15198],
54-
[13.807766, 52.152879],
55-
[13.807766, 52.157106],
56-
[13.807807, 52.157117]
52+
[13.811577, 52.151979],
53+
[13.809231, 52.151979],
54+
[13.807766, 52.152878],
55+
[13.807766, 52.157105],
56+
[13.807807, 52.157116]
5757
]
5858
}
5959
}

0 commit comments

Comments
 (0)