adiwg-mdjson_schemas 2.0.0.pre.alpha.1 → 2.0.0.pre.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/examples/address.json +1 -0
  3. data/examples/allocation.json +8 -12
  4. data/examples/computedBbox.json +363 -376
  5. data/examples/legalConstraint.json +14 -21
  6. data/examples/locale.json +11 -14
  7. data/examples/phone.json +5 -9
  8. data/examples/securityConstraint.json +6 -13
  9. data/examples/series.json +5 -9
  10. data/examples/timeInterval.json +4 -8
  11. data/lib/adiwg/mdjson_schemas/version.rb +1 -1
  12. data/schema/additionalDocumentation.json +1 -0
  13. data/schema/associatedResource.json +44 -44
  14. data/schema/attribute.json +2 -3
  15. data/schema/attributeGroup.json +1 -1
  16. data/schema/bbox.json +1 -0
  17. data/schema/citation.json +4 -5
  18. data/schema/common.json +1 -2
  19. data/schema/constraint.json +7 -12
  20. data/schema/contact.json +13 -14
  21. data/schema/coverageDescription.json +1 -3
  22. data/schema/dataDictionary.json +1 -3
  23. data/schema/distribution.json +2 -5
  24. data/schema/distributor.json +1 -2
  25. data/schema/domain.json +2 -1
  26. data/schema/entity.json +8 -8
  27. data/schema/extent.json +1 -1
  28. data/schema/format.json +12 -13
  29. data/schema/funding.json +41 -35
  30. data/schema/geographicExtent.json +5 -10
  31. data/schema/geojson.json +63 -71
  32. data/schema/geometry.json +125 -132
  33. data/schema/georectifiedRepresentation.json +1 -9
  34. data/schema/georeferencableRepresentation.json +41 -45
  35. data/schema/graphic.json +1 -2
  36. data/schema/gridRepresentation.json +1 -1
  37. data/schema/identifier.json +1 -1
  38. data/schema/imageDescription.json +1 -1
  39. data/schema/keyword.json +15 -12
  40. data/schema/lineage.json +3 -9
  41. data/schema/locale.json +2 -2
  42. data/schema/maintInfo.json +14 -17
  43. data/schema/measure.json +5 -8
  44. data/schema/medium.json +1 -0
  45. data/schema/metadata.json +1 -5
  46. data/schema/metadataInfo.json +1 -4
  47. data/schema/onlineResource.json +2 -2
  48. data/schema/orderProcess.json +1 -1
  49. data/schema/releasability.json +4 -6
  50. data/schema/resourceInfo.json +1 -2
  51. data/schema/responsibility.json +1 -3
  52. data/schema/schema.json +2 -4
  53. data/schema/scope.json +1 -5
  54. data/schema/spatialReference.json +3 -5
  55. data/schema/spatialRepresentation.json +5 -6
  56. data/schema/spatialResolution.json +4 -4
  57. data/schema/taxonomy.json +4 -7
  58. data/schema/temporalExtent.json +1 -0
  59. data/schema/timeInstant.json +2 -4
  60. data/schema/timePeriod.json +6 -10
  61. data/schema/transferOption.json +7 -10
  62. data/schema/usage.json +2 -4
  63. data/schema/vectorRepresentation.json +42 -45
  64. data/schema/verticalExtent.json +2 -3
  65. data/test/tc_allocation.rb +8 -0
  66. data/test/tc_geographicExtent.rb +4 -0
  67. data/test/tc_legalConstraint.rb +8 -0
  68. data/test/tc_locale.rb +8 -0
  69. data/test/tc_phone.rb +8 -0
  70. data/test/tc_securityConstraint.rb +8 -0
  71. data/test/tc_series.rb +8 -0
  72. data/test/tc_timePeriod.rb +4 -0
  73. metadata +14 -6
  74. data/examples/gmlIdentifier.json +0 -8
  75. data/examples/keywordObject.json +0 -12
  76. data/examples/schema.json +0 -8
  77. data/examples/scopeDescription.json +0 -8
@@ -1,399 +1,386 @@
1
- {
2
- "geographicExtent": [
1
+ [{
2
+ "geographicElement": [{
3
+ "type": "Point",
4
+ "coordinates": [100.0, 0.0]
5
+ },
3
6
  {
4
- "geographicElement": [
5
- {
6
- "type": "Point",
7
- "coordinates": [100.0, 0.0]
8
- },
9
- {
10
- "type": "LineString",
11
- "coordinates": [
12
- [100.0, 0.0],
13
- [101.0, 1.0]
14
- ]
15
- },
16
- {
17
- "type": "Polygon",
18
- "coordinates": [
19
- [
20
- [100.0, 0.0],
21
- [101.0, 0.0],
22
- [101.0, 1.0],
23
- [100.0, 1.0],
24
- [100.0, 0.0]
25
- ]
26
- ]
27
- },
28
- {
29
- "type": "Polygon",
30
- "coordinates": [
31
- [
32
- [100.0, 0.0],
33
- [101.0, 0.0],
34
- [101.0, 1.0],
35
- [100.0, 1.0],
36
- [100.0, 0.0]
37
- ],
38
- [
39
- [100.8, 0.8],
40
- [100.8, 0.2],
41
- [100.2, 0.2],
42
- [100.2, 0.8],
43
- [100.8, 0.8]
44
- ]
45
- ]
46
- },
47
- {
48
- "type": "MultiPoint",
49
- "coordinates": [
50
- [100.0, 0.0],
51
- [101.0, 1.0]
52
- ]
53
- },
54
- {
55
- "type": "MultiLineString",
56
- "coordinates": [
57
- [
58
- [100.0, 0.0],
59
- [101.0, 1.0]
60
- ],
61
- [
62
- [102.0, 2.0],
63
- [103.0, 3.0]
64
- ]
65
- ]
66
- },
67
- {
68
- "type": "MultiPolygon",
69
- "coordinates": [
70
- [
71
- [
72
- [102.0, 2.0],
73
- [103.0, 2.0],
74
- [103.0, 3.0],
75
- [102.0, 3.0],
76
- [102.0, 2.0]
77
- ]
78
- ],
79
- [
80
- [
81
- [100.0, 0.0],
82
- [101.0, 0.0],
83
- [101.0, 1.0],
84
- [100.0, 1.0],
85
- [100.0, 0.0]
86
- ],
87
- [
88
- [100.2, 0.2],
89
- [100.2, 0.8],
90
- [100.8, 0.8],
91
- [100.8, 0.2],
92
- [100.2, 0.2]
93
- ]
94
- ]
95
- ]
96
- },
7
+ "type": "LineString",
8
+ "coordinates": [
9
+ [100.0, 0.0],
10
+ [101.0, 1.0]
11
+ ]
12
+ },
13
+ {
14
+ "type": "Polygon",
15
+ "coordinates": [
16
+ [
17
+ [100.0, 0.0],
18
+ [101.0, 0.0],
19
+ [101.0, 1.0],
20
+ [100.0, 1.0],
21
+ [100.0, 0.0]
22
+ ]
23
+ ]
24
+ },
25
+ {
26
+ "type": "Polygon",
27
+ "coordinates": [
28
+ [
29
+ [100.0, 0.0],
30
+ [101.0, 0.0],
31
+ [101.0, 1.0],
32
+ [100.0, 1.0],
33
+ [100.0, 0.0]
34
+ ],
35
+ [
36
+ [100.8, 0.8],
37
+ [100.8, 0.2],
38
+ [100.2, 0.2],
39
+ [100.2, 0.8],
40
+ [100.8, 0.8]
41
+ ]
42
+ ]
43
+ },
44
+ {
45
+ "type": "MultiPoint",
46
+ "coordinates": [
47
+ [100.0, 0.0],
48
+ [101.0, 1.0]
49
+ ]
50
+ },
51
+ {
52
+ "type": "MultiLineString",
53
+ "coordinates": [
54
+ [
55
+ [100.0, 0.0],
56
+ [101.0, 1.0]
57
+ ],
58
+ [
59
+ [102.0, 2.0],
60
+ [103.0, 3.0]
61
+ ]
62
+ ]
63
+ },
64
+ {
65
+ "type": "MultiPolygon",
66
+ "coordinates": [
67
+ [
68
+ [
69
+ [102.0, 2.0],
70
+ [103.0, 2.0],
71
+ [103.0, 3.0],
72
+ [102.0, 3.0],
73
+ [102.0, 2.0]
74
+ ]
75
+ ],
76
+ [
77
+ [
78
+ [100.0, 0.0],
79
+ [101.0, 0.0],
80
+ [101.0, 1.0],
81
+ [100.0, 1.0],
82
+ [100.0, 0.0]
83
+ ],
84
+ [
85
+ [100.2, 0.2],
86
+ [100.2, 0.8],
87
+ [100.8, 0.8],
88
+ [100.8, 0.2],
89
+ [100.2, 0.2]
90
+ ]
91
+ ]
92
+ ]
93
+ },
97
94
 
98
95
 
99
- {
100
- "type": "GeometryCollection",
101
- "bbox": [-10.0, -10.0, 10.0, 10.0],
102
- "geometries": [
103
- {
104
- "type": "Point",
105
- "coordinates": [100.0, 0.0]
106
- },
107
- {
108
- "type": "LineString",
109
- "coordinates": [
110
- [101.0, 0.0],
111
- [102.0, 1.0]
112
- ]
113
- }
114
- ]
115
- },
96
+ {
97
+ "type": "GeometryCollection",
98
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
99
+ "geometries": [{
100
+ "type": "Point",
101
+ "coordinates": [100.0, 0.0]
102
+ },
103
+ {
104
+ "type": "LineString",
105
+ "coordinates": [
106
+ [101.0, 0.0],
107
+ [102.0, 1.0]
108
+ ]
109
+ }
110
+ ]
111
+ },
116
112
 
117
113
 
118
- {
119
- "type": "Feature",
120
- "id": "featureId",
121
- "bbox": [-10.0, -10.0, 10.0, 10.0],
122
- "geometry": {
123
- "type": "Point",
124
- "coordinates": [102.0, 0.5]
125
- },
126
- "properties": {
127
- "see": "geometryProperties 2.0"
128
- }
129
- },
114
+ {
115
+ "type": "Feature",
116
+ "id": "featureId",
117
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
118
+ "geometry": {
119
+ "type": "Point",
120
+ "coordinates": [102.0, 0.5]
121
+ },
122
+ "properties": {
123
+ "see": "geometryProperties 2.0"
124
+ }
125
+ },
130
126
 
131
127
 
132
- {
133
- "type": "FeatureCollection",
134
- "bbox": [-10.0, -10.0, 10.0, 10.0],
135
- "features": [
136
- {
137
- "type": "Feature",
138
- "id": "featureId",
139
- "bbox": [-10.0, -10.0, 10.0, 10.0],
140
- "geometry": {
141
- "type": "Point",
142
- "coordinates": [102.0, 0.5]
143
- },
144
- "properties": {
145
- "see": "geometryProperties 2.0"
146
- }
147
- },
148
- {
149
- "type": "Feature",
150
- "id": "featureId",
151
- "bbox": [-10.0, -10.0, 10.0, 10.0],
152
- "geometry": {
153
- "type": "LineString",
154
- "coordinates": [
155
- [102.0, 0.0],
156
- [103.0, 1.0],
157
- [104.0, 0.0],
158
- [105.0, 1.0]
159
- ]
160
- },
161
- "properties": {
162
- "see": "geometryProperties 2.0"
163
- }
164
- },
165
- {
166
- "type": "Feature",
167
- "id": "featureId",
168
- "bbox": [-10.0, -10.0, 10.0, 10.0],
169
- "geometry": {
170
- "type": "GeometryCollection",
171
- "bbox": [-10.0, -10.0, 10.0, 10.0],
172
- "geometries": [
173
- {
174
- "type": "Point",
175
- "coordinates": [100.0, 0.0]
176
- },
177
- {
178
- "type": "LineString",
179
- "coordinates": [
180
- [101.0, 0.0],
181
- [102.0, 1.0]
182
- ]
183
- }
184
- ]
185
- },
186
- "properties": {
187
- "description": "description"
188
- }
189
- }
190
- ]
191
- }
192
- ]
193
- },
194
128
  {
195
- "geographicElement": [
196
- {
197
- "type": "Point",
198
- "coordinates": [-48.0, 65.0]
199
- },
200
- {
201
- "type": "LineString",
202
- "coordinates": [
203
- [-60.0, 62.45],
204
- [-65.0, 61.889]
205
- ]
129
+ "type": "FeatureCollection",
130
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
131
+ "features": [{
132
+ "type": "Feature",
133
+ "id": "featureId",
134
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
135
+ "geometry": {
136
+ "type": "Point",
137
+ "coordinates": [102.0, 0.5]
206
138
  },
207
- {
208
- "type": "LineString",
209
- "coordinates": [
210
- [-175.0, 62.45],
211
- [-178.0, 61.889]
212
- ]
139
+ "properties": {
140
+ "see": "geometryProperties 2.0"
141
+ }
142
+ },
143
+ {
144
+ "type": "Feature",
145
+ "id": "featureId",
146
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
147
+ "geometry": {
148
+ "type": "LineString",
149
+ "coordinates": [
150
+ [102.0, 0.0],
151
+ [103.0, 1.0],
152
+ [104.0, 0.0],
153
+ [105.0, 1.0]
154
+ ]
213
155
  },
214
- {
215
- "type": "Polygon",
216
- "coordinates": [
217
- [
218
- [-155.0, 64.4],
219
- [-177.0, 62.0],
220
- [-179.0, 61.0],
221
- [-168.0, 63.0],
222
- [-155.0, 64.4]
156
+ "properties": {
157
+ "see": "geometryProperties 2.0"
158
+ }
159
+ },
160
+ {
161
+ "type": "Feature",
162
+ "id": "featureId",
163
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
164
+ "geometry": {
165
+ "type": "GeometryCollection",
166
+ "bbox": [-10.0, -10.0, 10.0, 10.0],
167
+ "geometries": [{
168
+ "type": "Point",
169
+ "coordinates": [100.0, 0.0]
170
+ },
171
+ {
172
+ "type": "LineString",
173
+ "coordinates": [
174
+ [101.0, 0.0],
175
+ [102.0, 1.0]
223
176
  ]
224
- ]
177
+ }
178
+ ]
179
+ },
180
+ "properties": {
181
+ "description": "description"
225
182
  }
226
- ]
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "geographicElement": [{
190
+ "type": "Point",
191
+ "coordinates": [-48.0, 65.0]
227
192
  },
228
193
  {
229
- "geographicElement": [
230
- {
231
- "type": "Point",
232
- "coordinates": [148.0, 65.0]
233
- },
234
- {
235
- "type": "LineString",
236
- "coordinates": [
237
- [160.0, 62.45],
238
- [165.0, 61.889]
239
- ]
240
- },
241
- {
242
- "type": "LineString",
243
- "coordinates": [
244
- [175.0, 62.45],
245
- [-178.0, 61.889]
246
- ]
247
- },
248
- {
249
- "type": "Polygon",
250
- "coordinates": [
251
- [
252
- [155.0, 64.4],
253
- [-177.0, 62.0],
254
- [-179.0, 61.0],
255
- [168.0, 63.0],
256
- [155.0, 64.4]
257
- ]
258
- ]
259
- }
260
- ]
194
+ "type": "LineString",
195
+ "coordinates": [
196
+ [-60.0, 62.45],
197
+ [-65.0, 61.889]
198
+ ]
261
199
  },
262
200
  {
263
- "geographicElement": [
264
- {
265
- "type": "Point",
266
- "coordinates": [-170.0, 65.0]
267
- },
268
- {
269
- "type": "LineString",
270
- "coordinates": [
271
- [-150.0, 62.45],
272
- [-152.0, 61.889]
273
- ]
274
- },
275
- {
276
- "type": "LineString",
277
- "coordinates": [
278
- [-178.0, 62.45],
279
- [178.0, 61.889]
280
- ]
281
- },
282
- {
283
- "type": "Polygon",
284
- "coordinates": [
285
- [
286
- [-163.0, 64.4],
287
- [-173.0, 62.0],
288
- [-170.0, 61.0],
289
- [-164.0, 63.0],
290
- [-163.0, 64.4]
291
- ]
292
- ]
293
- }
294
- ]
201
+ "type": "LineString",
202
+ "coordinates": [
203
+ [-175.0, 62.45],
204
+ [-178.0, 61.889]
205
+ ]
295
206
  },
296
207
  {
297
- "geographicElement": [
298
- {
299
- "type": "Point",
300
- "coordinates": [48.0, 65.0]
301
- },
302
- {
303
- "type": "LineString",
304
- "coordinates": [
305
- [-35.0, 62.45],
306
- [-29.0, 61.889]
307
- ]
308
- },
309
- {
310
- "type": "LineString",
311
- "coordinates": [
312
- [31.0, 62.45],
313
- [42.0, 61.889]
314
- ]
315
- },
316
- {
317
- "type": "Polygon",
318
- "coordinates": [
319
- [
320
- [-19.0, 64.4],
321
- [23.0, 62.0],
322
- [21.0, 61.0],
323
- [17.0, 63.0],
324
- [-19.0, 64.4]
325
- ]
326
- ]
327
- }
328
- ]
208
+ "type": "Polygon",
209
+ "coordinates": [
210
+ [
211
+ [-155.0, 64.4],
212
+ [-177.0, 62.0],
213
+ [-179.0, 61.0],
214
+ [-168.0, 63.0],
215
+ [-155.0, 64.4]
216
+ ]
217
+ ]
218
+ }
219
+ ]
220
+ },
221
+ {
222
+ "geographicElement": [{
223
+ "type": "Point",
224
+ "coordinates": [148.0, 65.0]
329
225
  },
330
226
  {
331
- "geographicElement": [
332
- {
333
- "type": "Point",
334
- "coordinates": [-48.0, -65.0]
335
- },
336
- {
337
- "type": "LineString",
338
- "coordinates": [
339
- [-60.0, -62.45],
340
- [-65.0, -61.889]
341
- ]
342
- },
343
- {
344
- "type": "LineString",
345
- "coordinates": [
346
- [-175.0, -62.45],
347
- [-178.0, -61.889]
348
- ]
349
- },
350
- {
351
- "type": "Polygon",
352
- "coordinates": [
353
- [
354
- [-155.0, -64.4],
355
- [-177.0, -62.0],
356
- [-179.0, -61.0],
357
- [-168.0, -63.0],
358
- [-155.0, -64.4]
359
- ]
360
- ]
361
- }
362
- ]
227
+ "type": "LineString",
228
+ "coordinates": [
229
+ [160.0, 62.45],
230
+ [165.0, 61.889]
231
+ ]
363
232
  },
364
233
  {
365
- "geographicElement": [
366
- {
367
- "type": "Point",
368
- "coordinates": [-48.0, -65.0]
369
- },
370
- {
371
- "type": "LineString",
372
- "coordinates": [
373
- [-60.0, 62.45],
374
- [-65.0, -61.889]
375
- ]
376
- },
377
- {
378
- "type": "LineString",
379
- "coordinates": [
380
- [-175.0, 62.45],
381
- [-178.0, -61.889]
382
- ]
383
- },
384
- {
385
- "type": "Polygon",
386
- "coordinates": [
387
- [
388
- [-155.0, -64.4],
389
- [-177.0, -62.0],
390
- [-179.0, -61.0],
391
- [-168.0, -63.0],
392
- [-155.0, -64.4]
393
- ]
394
- ]
395
- }
396
- ]
234
+ "type": "LineString",
235
+ "coordinates": [
236
+ [175.0, 62.45],
237
+ [-178.0, 61.889]
238
+ ]
239
+ },
240
+ {
241
+ "type": "Polygon",
242
+ "coordinates": [
243
+ [
244
+ [155.0, 64.4],
245
+ [-177.0, 62.0],
246
+ [-179.0, 61.0],
247
+ [168.0, 63.0],
248
+ [155.0, 64.4]
249
+ ]
250
+ ]
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "geographicElement": [{
256
+ "type": "Point",
257
+ "coordinates": [-170.0, 65.0]
258
+ },
259
+ {
260
+ "type": "LineString",
261
+ "coordinates": [
262
+ [-150.0, 62.45],
263
+ [-152.0, 61.889]
264
+ ]
265
+ },
266
+ {
267
+ "type": "LineString",
268
+ "coordinates": [
269
+ [-178.0, 62.45],
270
+ [178.0, 61.889]
271
+ ]
272
+ },
273
+ {
274
+ "type": "Polygon",
275
+ "coordinates": [
276
+ [
277
+ [-163.0, 64.4],
278
+ [-173.0, 62.0],
279
+ [-170.0, 61.0],
280
+ [-164.0, 63.0],
281
+ [-163.0, 64.4]
282
+ ]
283
+ ]
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "geographicElement": [{
289
+ "type": "Point",
290
+ "coordinates": [48.0, 65.0]
291
+ },
292
+ {
293
+ "type": "LineString",
294
+ "coordinates": [
295
+ [-35.0, 62.45],
296
+ [-29.0, 61.889]
297
+ ]
298
+ },
299
+ {
300
+ "type": "LineString",
301
+ "coordinates": [
302
+ [31.0, 62.45],
303
+ [42.0, 61.889]
304
+ ]
305
+ },
306
+ {
307
+ "type": "Polygon",
308
+ "coordinates": [
309
+ [
310
+ [-19.0, 64.4],
311
+ [23.0, 62.0],
312
+ [21.0, 61.0],
313
+ [17.0, 63.0],
314
+ [-19.0, 64.4]
315
+ ]
316
+ ]
317
+ }
318
+ ]
319
+ },
320
+ {
321
+ "geographicElement": [{
322
+ "type": "Point",
323
+ "coordinates": [-48.0, -65.0]
324
+ },
325
+ {
326
+ "type": "LineString",
327
+ "coordinates": [
328
+ [-60.0, -62.45],
329
+ [-65.0, -61.889]
330
+ ]
331
+ },
332
+ {
333
+ "type": "LineString",
334
+ "coordinates": [
335
+ [-175.0, -62.45],
336
+ [-178.0, -61.889]
337
+ ]
338
+ },
339
+ {
340
+ "type": "Polygon",
341
+ "coordinates": [
342
+ [
343
+ [-155.0, -64.4],
344
+ [-177.0, -62.0],
345
+ [-179.0, -61.0],
346
+ [-168.0, -63.0],
347
+ [-155.0, -64.4]
348
+ ]
349
+ ]
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "geographicElement": [{
355
+ "type": "Point",
356
+ "coordinates": [-48.0, -65.0]
357
+ },
358
+ {
359
+ "type": "LineString",
360
+ "coordinates": [
361
+ [-60.0, 62.45],
362
+ [-65.0, -61.889]
363
+ ]
364
+ },
365
+ {
366
+ "type": "LineString",
367
+ "coordinates": [
368
+ [-175.0, 62.45],
369
+ [-178.0, -61.889]
370
+ ]
371
+ },
372
+ {
373
+ "type": "Polygon",
374
+ "coordinates": [
375
+ [
376
+ [-155.0, -64.4],
377
+ [-177.0, -62.0],
378
+ [-179.0, -61.0],
379
+ [-168.0, -63.0],
380
+ [-155.0, -64.4]
381
+ ]
382
+ ]
397
383
  }
398
- ]
399
- }
384
+ ]
385
+ }
386
+ ]