forked from opengeospatial/mf-json
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMF-JSON_Trajectory.schema.json
More file actions
69 lines (69 loc) · 2.03 KB
/
Copy pathMF-JSON_Trajectory.schema.json
File metadata and controls
69 lines (69 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://www.opengis.net/spec/movingfeatures/json/1.0/trajectory/MF-JSON_Trajectory.schema.json",
"type": "object",
"title": "OGC Moving Feature JSON Trajecotry schema",
"required": [ "type" ],
"oneOf":[
{"$ref": "#/definitions/feature"},
{"$ref": "#/definitions/featureCollection"}
],
"definitions": {
"feature": {
"title": "Feature",
"description": "A MF-JSON trajectory feature",
"$id": "#/definitions/feature",
"type": "object",
"required": ["geometry", "properties"],
"properties": {
"type": {"type": "string", "enum": ["Feature"]},
"id": {"type": ["string", "number"]},
"geometry": {"$ref": "#/definitions/trajectory"}
},
"properties": {
"type": "object",
"required": ["datetimes"],
"properties": {
"datetimes": {
"type": "array",
"uniqueItems": true,
"minItems": 2,
"items": {"type": "string", "format": "date-time"}
}
}
}
}
},
"featureCollection": {
"title": "FeatureCollection",
"description": "A MF-JSON trajectory feature collection",
"$id": "#/definitions/featureCollection",
"type": "object",
"required": ["features"],
"properties": {
"type": {"type": "string", "enum": ["FeatureCollection"]},
"features": {
"type": "array",
"items": {"$ref": "#/definitions/feature"}
}
}
},
"trajectory": {
"title": "Geometry of trajectory (LineString)",
"$id": "#/definitions/trajectory",
"type": "object",
"required": ["type", "coordinates"],
"properties": {
"type": {"type": "string", "enum": ["LineString"]},
"coordinates": {
"type": "array",
"minItems": 2,
"items": {
"type": "array",
"minItems": 2,
"items": {"type": "number"}
}
}
}
}
}