Skip to content

Commit 665ee9c

Browse files
mapsamjohnk1AnwarBaroudi
authored
worldview fixtures (#104)
* 3.7.1-a1 * adds fixture 064 for worldview testing * using typical pre-rel version * adding multiple worldview test * 3.7.1-dev2 * add new worldviews * 3.7.1-dev3 * 3.7.1-dev4 * corrected 064 for our current worldview usage; worldview is now no longer in the input fixtures, just _mbx_worldview * 3.8.0 Co-authored-by: John Klancer <john.klancer@mapbox.com> Co-authored-by: Anwar Baroudi <anwar.baroudi@mapbox.com>
1 parent 9a3546f commit 665ee9c

40 files changed

+1384
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 3.8.0
2+
3+
* Add new worldview fixtures:
4+
* add new fixtures `064` Point features with added language & worldview properties prefixed with "_mbx_xxx".
5+
* add new fixtures `065` Worldviews: all legacy values
6+
* add new fixtures `066` Worldviews: all legacy and new values
7+
* add new fixtures `067` Worldviews: "all" values
8+
* add new fixtures `068` Worldviews: mixture of features
9+
* add new fixtures `069` Worldviews: _mbx_worldview is not a string
10+
* add new fixtures `070` Worldviews: _mbx_worldview and worldview properties in same feature with conflicting values
11+
* add new fixtures `071` Worldviews: all worldviews as separate features
12+
* add new fixtures `072` Worldviews: comma-separated list of non ISO 3166-1 alpha-2 codes
13+
114
## 3.7.0
215
* Add new fixture `063` which has a set of features with different language values, which is helpful for testing internationalization functionality downstream [#103](https://github.com/mapbox/mvt-fixtures/pull/103)
316
* Test on Node.js v16 + v14, remove testing for Node.js v8

FIXTURES.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,13 @@ id|description|valid v1|valid v2
5959
060|A layer named "water" with a single feature and unique properties (used as a layer compositing test with fixture 059) - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
6060
061|A linestring feature that includes a ClosePath command. A tile with such a command was added as a test fixture in https://github.com/mapbox/mapbox-gl-native/pull/2721, suggesting that such tiles may exist in practice, e.g. in old mapbox-gl-native offline databases. - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/1.0.1/vector_tile.proto) - recommended error handling `fatal`|:white_check_mark:|:x:
6161
062|points with different values for the same property - helpful for filtering tests - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
62-
063|Point features with all properties prefixed with "_mbx_name_". Helpful for testing search/dropping of properties based on a particular prefix. Also includes one value with a different prefix in the case where only some data is intended to be read/dropped. - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
62+
063|Point features with added language properties prefixed with "_mbx_name" and "name_". - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
63+
064|Point features with added language & worldview properties prefixed with "_mbx_xxx". - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
64+
065|Worldviews: all legacy values - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
65+
066|Worldviews: all legacy and new values - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
66+
067|Worldviews: "all" values - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
67+
068|Worldviews: mixture of features - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
68+
069|Worldviews: _mbx_worldview is not a string - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
69+
070|Worldviews: _mbx_worldview and worldview properties in same feature with conflicting values - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
70+
071|Worldviews: all worldviews as separate features - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:
71+
072|Worldviews: comma-separated list of non ISO 3166-1 alpha-2 codes - [spec source](https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md)|:white_check_mark:|:white_check_mark:

fixtures/064/info.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"description": "Point features with added language & worldview properties prefixed with \"_mbx_xxx\".",
3+
"specification_reference": "https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md",
4+
"validity": {
5+
"v1": true,
6+
"v2": true
7+
},
8+
"proto": "2.1"
9+
}

fixtures/064/tile.json

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
{
2+
"layers": [
3+
{
4+
"version": 2,
5+
"name": "top",
6+
"features": [
7+
{
8+
"id": 1,
9+
"tags": [
10+
0,
11+
0
12+
],
13+
"type": 1,
14+
"geometry": [
15+
9,
16+
50,
17+
32
18+
]
19+
},
20+
{
21+
"id": 2,
22+
"tags": [
23+
0,
24+
0
25+
],
26+
"type": 1,
27+
"geometry": [
28+
9,
29+
51,
30+
33
31+
]
32+
}
33+
],
34+
"keys": [
35+
"population"
36+
],
37+
"values": [
38+
{
39+
"int_value": 50
40+
}
41+
],
42+
"extent": 4096
43+
},
44+
{
45+
"version": 2,
46+
"name": "bottom",
47+
"features": [
48+
{
49+
"id": 10,
50+
"tags": [
51+
0,
52+
0,
53+
1,
54+
0,
55+
2,
56+
1,
57+
3,
58+
2,
59+
4,
60+
3,
61+
5,
62+
4,
63+
7,
64+
10
65+
],
66+
"type": 1,
67+
"geometry": [
68+
9,
69+
50,
70+
34
71+
]
72+
},
73+
{
74+
"id": 15,
75+
"tags": [
76+
0,
77+
5,
78+
4,
79+
6,
80+
2,
81+
7,
82+
3,
83+
7,
84+
1,
85+
8,
86+
6,
87+
9,
88+
7,
89+
13
90+
],
91+
"type": 1,
92+
"geometry": [
93+
9,
94+
54,
95+
38
96+
]
97+
},
98+
{
99+
"id": 20,
100+
"tags": [
101+
0,
102+
0,
103+
1,
104+
0,
105+
2,
106+
1,
107+
6,
108+
9,
109+
7,
110+
10
111+
],
112+
"type": 1,
113+
"geometry": [
114+
9,
115+
51,
116+
35
117+
]
118+
},
119+
{
120+
"id": 25,
121+
"tags": [
122+
0,
123+
0,
124+
3,
125+
1,
126+
4,
127+
3,
128+
6,
129+
9,
130+
7,
131+
12
132+
],
133+
"type": 1,
134+
"geometry": [
135+
9,
136+
52,
137+
36
138+
]
139+
},
140+
{
141+
"id": 30,
142+
"tags": [
143+
0,
144+
0,
145+
6,
146+
9,
147+
7,
148+
11
149+
],
150+
"type": 1,
151+
"geometry": [
152+
9,
153+
53,
154+
37
155+
]
156+
},
157+
{
158+
"id": 35,
159+
"tags": [
160+
0,
161+
5,
162+
6,
163+
9,
164+
7,
165+
14
166+
],
167+
"type": 1,
168+
"geometry": [
169+
9,
170+
54,
171+
38
172+
]
173+
},
174+
{
175+
"id": 40,
176+
"tags": [
177+
0,
178+
5,
179+
6,
180+
9,
181+
7,
182+
9
183+
],
184+
"type": 1,
185+
"geometry": [
186+
9,
187+
54,
188+
38
189+
]
190+
}
191+
],
192+
"keys": [
193+
"name",
194+
"name_en",
195+
"name_fr",
196+
"_mbx_name_fr",
197+
"_mbx_name_de",
198+
"_mbx_other",
199+
"population",
200+
"_mbx_worldview"
201+
],
202+
"values": [
203+
{
204+
"string_value": "Germany"
205+
},
206+
{
207+
"string_value": "Allemagne"
208+
},
209+
{
210+
"string_value": "La Allemagne"
211+
},
212+
{
213+
"string_value": "Deutschland"
214+
},
215+
{
216+
"string_value": "Alemania"
217+
},
218+
{
219+
"string_value": "España"
220+
},
221+
{
222+
"string_value": "Spanien"
223+
},
224+
{
225+
"string_value": "Espagne"
226+
},
227+
{
228+
"string_value": "Spain"
229+
},
230+
{
231+
"int_value": 100
232+
},
233+
{
234+
"string_value": "all"
235+
},
236+
{
237+
"string_value": "AD"
238+
},
239+
{
240+
"string_value": "CN"
241+
},
242+
{
243+
"string_value": "IN"
244+
},
245+
{
246+
"string_value": "CN,AD,IN"
247+
}
248+
],
249+
"extent": 4096
250+
}
251+
]
252+
}

fixtures/064/tile.mvt

467 Bytes
Binary file not shown.

fixtures/065/info.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"description": "Worldviews: all legacy values",
3+
"specification_reference": "https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md",
4+
"validity": {
5+
"v1": true,
6+
"v2": true
7+
},
8+
"proto": "2.1"
9+
}

fixtures/065/tile.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"layers": [
3+
{
4+
"version": 2,
5+
"name": "admin",
6+
"features": [
7+
{
8+
"id": 10,
9+
"tags": [
10+
0,
11+
0,
12+
1,
13+
1
14+
],
15+
"type": 1,
16+
"geometry": [
17+
9,
18+
54,
19+
38
20+
]
21+
}
22+
],
23+
"keys": [
24+
"name",
25+
"_mbx_worldview"
26+
],
27+
"values": [
28+
{
29+
"string_value": "All legacy worldviews"
30+
},
31+
{
32+
"string_value": "US,CN,JP,IN"
33+
}
34+
],
35+
"extent": 4096
36+
}
37+
]
38+
}

fixtures/065/tile.mvt

90 Bytes
Binary file not shown.

fixtures/066/info.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"description": "Worldviews: all legacy and new values",
3+
"specification_reference": "https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md",
4+
"validity": {
5+
"v1": true,
6+
"v2": true
7+
},
8+
"proto": "2.1"
9+
}

fixtures/066/tile.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"layers": [
3+
{
4+
"version": 2,
5+
"name": "admin",
6+
"features": [
7+
{
8+
"id": 10,
9+
"tags": [
10+
0,
11+
0,
12+
1,
13+
1
14+
],
15+
"type": 1,
16+
"geometry": [
17+
9,
18+
54,
19+
38
20+
]
21+
}
22+
],
23+
"keys": [
24+
"name",
25+
"_mbx_worldview"
26+
],
27+
"values": [
28+
{
29+
"string_value": "All legacy and new worldviews"
30+
},
31+
{
32+
"string_value": "US,CN,JP,IN,RU,TR,AR,MA"
33+
}
34+
],
35+
"extent": 4096
36+
}
37+
]
38+
}

0 commit comments

Comments
 (0)