3
3
# see https://github.com/smart-data-models
4
4
5
5
# Standard GeoJSON terms.
6
- Geometry :
6
+ Geometry :
7
7
description : " GeoJSon geometry"
8
8
externalDocs :
9
9
url : " http://geojson.org/geojson-spec.html#geometry-objects"
10
- properties :
11
- type :
10
+ type : object
11
+ discriminator :
12
+ propertyName : type
13
+ properties :
14
+ type :
15
+ type : string
12
16
description : " the geometry type"
13
17
enum :
14
18
- Point
@@ -17,21 +21,50 @@ Geometry:
17
21
- MultiPoint
18
22
- MultiLineString
19
23
- MultiPolygon
20
- type : string
21
- required :
24
+ required :
22
25
- type
23
- type : object
26
+ - coordinates
24
27
x-ngsi :
25
28
type : GeoProperty
29
+
30
+ Point :
31
+ allOf :
32
+ -
33
+ $ref : " #/Geometry"
34
+ -
35
+ properties :
36
+ type :
37
+ type : string
38
+ description : " the geometry type"
39
+ enum :
40
+ - Point
41
+ coordinates : &Position
42
+ items :
43
+ type : number
44
+ maxItems : 3
45
+ minItems : 2
46
+ type : array
47
+ description : " GeoJSON Point"
48
+ externalDocs :
49
+ url : " http://geojson.org/geojson-spec.html#id2"
50
+ type : object
51
+ x-ngsi :
52
+ uri : " https://purl.org/geojson/vocab#Point"
53
+ uri-prefix : " https://purl.org/geojson/vocab#"
54
+
26
55
LineString :
27
56
allOf :
28
57
-
29
58
$ref : " #/Geometry"
30
59
-
31
60
properties :
61
+ type :
62
+ type : string
63
+ description : " the geometry type"
64
+ enum :
65
+ - LineString
32
66
coordinates :
33
- items :
34
- $ref : " #/Point2D"
67
+ items : *Position
35
68
type : array
36
69
description : " GeoJSON LineString"
37
70
externalDocs :
@@ -40,16 +73,20 @@ LineString:
40
73
x-ngsi :
41
74
uri : " https://purl.org/geojson/vocab#LineString"
42
75
uri-prefix : " https://purl.org/geojson/vocab#"
43
- MultiLineString :
76
+ MultiLineString :
44
77
allOf :
45
78
-
46
79
$ref : " #/Geometry"
47
80
-
48
81
properties :
82
+ type :
83
+ type : string
84
+ description : " the geometry type"
85
+ enum :
86
+ - MultiLineString
49
87
coordinates :
50
88
items :
51
- items :
52
- $ref : " #/Point2D"
89
+ items : *Position
53
90
type : array
54
91
type : array
55
92
description : " GeoJSON Multi Line String"
@@ -59,15 +96,19 @@ MultiLineString:
59
96
x-ngsi :
60
97
uri : " https://purl.org/geojson/vocab#MultiLineString"
61
98
uri-prefix : " https://purl.org/geojson/vocab#"
62
- MultiPoint :
99
+ MultiPoint :
63
100
allOf :
64
101
-
65
102
$ref : " #/Geometry"
66
103
-
67
104
properties :
105
+ type :
106
+ type : string
107
+ description : " the geometry type"
108
+ enum :
109
+ - MultiPoint
68
110
coordinates :
69
- items :
70
- $ref : " #/Point2D"
111
+ items : *Position
71
112
type : array
72
113
description : " GeoJSON Multi Point"
73
114
externalDocs :
@@ -76,17 +117,21 @@ MultiPoint:
76
117
x-ngsi :
77
118
uri : " https://purl.org/geojson/vocab#MultiPoint"
78
119
uri-prefix : " https://purl.org/geojson/vocab#"
79
- MultiPolygon :
120
+ MultiPolygon :
80
121
allOf :
81
122
-
82
123
$ref : " #/Geometry"
83
124
-
84
125
properties :
126
+ type :
127
+ type : string
128
+ description : " the geometry type"
129
+ enum :
130
+ - MultiPolygon
85
131
coordinates :
86
132
items :
87
133
items :
88
- items :
89
- $ref : " #/Point2D"
134
+ items : *Position
90
135
type : array
91
136
type : array
92
137
type : array
@@ -97,37 +142,21 @@ MultiPolygon:
97
142
x-ngsi :
98
143
uri : " https://purl.org/geojson/vocab#MultiPolygon"
99
144
uri-prefix : " https://purl.org/geojson/vocab#"
100
- Point :
101
- allOf :
102
- -
103
- $ref : " #/Geometry"
104
- -
105
- properties :
106
- coordinates :
107
- $ref : " #/Point2D"
108
- description : " GeoJSON Point"
109
- externalDocs :
110
- url : " http://geojson.org/geojson-spec.html#id2"
111
- type : object
112
- x-ngsi :
113
- uri : " https://purl.org/geojson/vocab#Point"
114
- uri-prefix : " https://purl.org/geojson/vocab#"
115
- Point2D :
116
- items :
117
- type : number
118
- maxItems : 2
119
- minItems : 2
120
- type : array
145
+
121
146
Polygon :
122
147
allOf :
123
148
-
124
149
$ref : " #/Geometry"
125
150
-
126
- properties :
151
+ properties :
152
+ type :
153
+ type : string
154
+ description : " the geometry type"
155
+ enum :
156
+ - Polygon
127
157
coordinates :
128
158
items :
129
- items :
130
- $ref : " #/Point2D"
159
+ items : *Position
131
160
type : array
132
161
type : array
133
162
description : " GeoJSON Polygon"
@@ -136,4 +165,4 @@ Polygon:
136
165
type : object
137
166
x-ngsi :
138
167
uri : " https://purl.org/geojson/vocab#Polygon"
139
- uri-prefix : " https://purl.org/geojson/vocab#"
168
+ uri-prefix : " https://purl.org/geojson/vocab#"
0 commit comments