envlib-api 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- envlib_api/__init__.py +3 -0
- envlib_api/__main__.py +3 -0
- envlib_api/api/__init__.py +7 -0
- envlib_api/api/app.py +435 -0
- envlib_api/api/compress.py +52 -0
- envlib_api/api/cost.py +107 -0
- envlib_api/api/edr.py +343 -0
- envlib_api/api/encode.py +285 -0
- envlib_api/api/errors.py +23 -0
- envlib_api/api/grid.py +317 -0
- envlib_api/api/params.py +71 -0
- envlib_api/api/read.py +65 -0
- envlib_api/api/resolve.py +191 -0
- envlib_api/api/server.py +35 -0
- envlib_api/api/stations.py +96 -0
- envlib_api/api/timesel.py +97 -0
- envlib_api/cli.py +179 -0
- envlib_api/config.py +158 -0
- envlib_api/healthcheck.py +38 -0
- envlib_api/mirror.py +353 -0
- envlib_api/refresher.py +265 -0
- envlib_api/tests/__init__.py +0 -0
- envlib_api/tests/api_support.py +307 -0
- envlib_api/tests/conftest.py +12 -0
- envlib_api/tests/grid_support.py +217 -0
- envlib_api/tests/schemas/README.md +12 -0
- envlib_api/tests/schemas/coveragejson/coveragejson.json +1794 -0
- envlib_api/tests/schemas/edr/schemas/collections/DataQuery.yaml +38 -0
- envlib_api/tests/schemas/edr/schemas/collections/areaDataQuery.yaml +10 -0
- envlib_api/tests/schemas/edr/schemas/collections/areaLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/collection.yaml +137 -0
- envlib_api/tests/schemas/edr/schemas/collections/collections.yaml +26 -0
- envlib_api/tests/schemas/edr/schemas/collections/corridorDataQuery.yaml +29 -0
- envlib_api/tests/schemas/edr/schemas/collections/corridorLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/crsObject.yaml +15 -0
- envlib_api/tests/schemas/edr/schemas/collections/cubeDataQuery.yaml +20 -0
- envlib_api/tests/schemas/edr/schemas/collections/cubeLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/extent.yaml +311 -0
- envlib_api/tests/schemas/edr/schemas/collections/instancesDataQuery.yaml +21 -0
- envlib_api/tests/schemas/edr/schemas/collections/instancesLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/itemsDataQuery.yaml +21 -0
- envlib_api/tests/schemas/edr/schemas/collections/itemsLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/locationsDataQuery.yaml +10 -0
- envlib_api/tests/schemas/edr/schemas/collections/locationsLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/observedPropertyCollection.yaml +51 -0
- envlib_api/tests/schemas/edr/schemas/collections/parameterNames.yaml +70 -0
- envlib_api/tests/schemas/edr/schemas/collections/positionDataQuery.yaml +12 -0
- envlib_api/tests/schemas/edr/schemas/collections/positionLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/radiusDataQuery.yaml +18 -0
- envlib_api/tests/schemas/edr/schemas/collections/radiusLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/trajectoryDataQuery.yaml +10 -0
- envlib_api/tests/schemas/edr/schemas/collections/trajectoryLink.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/collections/units.yaml +42 -0
- envlib_api/tests/schemas/edr/schemas/core/confClasses.yaml +8 -0
- envlib_api/tests/schemas/edr/schemas/core/exception.yaml +8 -0
- envlib_api/tests/schemas/edr/schemas/core/landingPage.yaml +76 -0
- envlib_api/tests/schemas/edr/schemas/core/link.yaml +31 -0
- envlib_api/tests/schemas/edr/schemas/covjson/anyAxis.yaml +11 -0
- envlib_api/tests/schemas/edr/schemas/covjson/coverage.yaml +14 -0
- envlib_api/tests/schemas/edr/schemas/covjson/coverageBase.yaml +68 -0
- envlib_api/tests/schemas/edr/schemas/covjson/coverageCollection.yaml +58 -0
- envlib_api/tests/schemas/edr/schemas/covjson/coverageJSON.yaml +46 -0
- envlib_api/tests/schemas/edr/schemas/covjson/covjsonI18n.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/covjson/covjsonObservedProperty.yaml +29 -0
- envlib_api/tests/schemas/edr/schemas/covjson/covjsonParameter.yaml +32 -0
- envlib_api/tests/schemas/edr/schemas/covjson/covjsonParameterGroup.yaml +31 -0
- envlib_api/tests/schemas/edr/schemas/covjson/covjsonUnit.yaml +31 -0
- envlib_api/tests/schemas/edr/schemas/covjson/domain.yaml +7 -0
- envlib_api/tests/schemas/edr/schemas/covjson/domainBase.yaml +337 -0
- envlib_api/tests/schemas/edr/schemas/covjson/ndArray.yaml +88 -0
- envlib_api/tests/schemas/edr/schemas/covjson/numericAxis.yaml +11 -0
- envlib_api/tests/schemas/edr/schemas/covjson/numericRegularlySpacedAxis.yaml +17 -0
- envlib_api/tests/schemas/edr/schemas/covjson/numericSingleValueAxis.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/covjson/numericValuesAxis.yaml +14 -0
- envlib_api/tests/schemas/edr/schemas/covjson/polygonValuesAxis.yaml +29 -0
- envlib_api/tests/schemas/edr/schemas/covjson/primitiveValuesAxis.yaml +22 -0
- envlib_api/tests/schemas/edr/schemas/covjson/referenceSystem.yaml +48 -0
- envlib_api/tests/schemas/edr/schemas/covjson/referenceSystemConnection.yaml +16 -0
- envlib_api/tests/schemas/edr/schemas/covjson/stringSingleValueAxis.yaml +9 -0
- envlib_api/tests/schemas/edr/schemas/covjson/stringValuesAxis.yaml +14 -0
- envlib_api/tests/schemas/edr/schemas/covjson/targetConcept.yaml +13 -0
- envlib_api/tests/schemas/edr/schemas/covjson/tiledNdArray.yaml +50 -0
- envlib_api/tests/schemas/edr/schemas/covjson/tupleValuesAxis.yaml +24 -0
- envlib_api/tests/schemas/edr/schemas/covjson/valuesAxis.yaml +27 -0
- envlib_api/tests/schemas/edr/schemas/covjson/valuesAxisBase.yaml +24 -0
- envlib_api/tests/schemas/edr/schemas/edr-geojson/edrFeatureCollectionGeoJSON.yaml +32 -0
- envlib_api/tests/schemas/edr/schemas/edr-geojson/edrProperties.yaml +49 -0
- envlib_api/tests/schemas/edr/schemas/edr-geojson/observedProperty.yaml +26 -0
- envlib_api/tests/schemas/edr/schemas/edr-geojson/parameter.yaml +28 -0
- envlib_api/tests/schemas/edr/schemas/edr-geojson/unit.yaml +24 -0
- envlib_api/tests/schemas/edr/schemas/geojson/featureGeoJSON.yaml +29 -0
- envlib_api/tests/schemas/edr/schemas/geojson/geometrycollectionGeoJSON.yaml +19 -0
- envlib_api/tests/schemas/edr/schemas/geojson/linestringGeoJSON.yaml +23 -0
- envlib_api/tests/schemas/edr/schemas/geojson/multilinestringGeoJSON.yaml +19 -0
- envlib_api/tests/schemas/edr/schemas/geojson/multipointGeoJSON.yaml +16 -0
- envlib_api/tests/schemas/edr/schemas/geojson/multipolygonGeoJSON.yaml +21 -0
- envlib_api/tests/schemas/edr/schemas/geojson/pointGeoJSON.yaml +14 -0
- envlib_api/tests/schemas/edr/schemas/geojson/polygonGeoJSON.yaml +19 -0
- envlib_api/tests/schemas/edr/schemas/i18n.yaml +4 -0
- envlib_api/tests/schemas/edr/schemas/numberMatched.yaml +7 -0
- envlib_api/tests/schemas/edr/schemas/numberReturned.yaml +12 -0
- envlib_api/tests/schemas/edr/schemas/parameterGroup.yaml +30 -0
- envlib_api/tests/schemas/edr/schemas/queries/instances.yaml +26 -0
- envlib_api/tests/support.py +320 -0
- envlib_api/tests/test_alerting_and_guards.py +325 -0
- envlib_api/tests/test_api.py +808 -0
- envlib_api/tests/test_api_review.py +428 -0
- envlib_api/tests/test_grid.py +1075 -0
- envlib_api/tests/test_ops.py +358 -0
- envlib_api/tests/test_refresher.py +354 -0
- envlib_api/tests/test_schemas.py +91 -0
- envlib_api-0.3.0.dist-info/METADATA +408 -0
- envlib_api-0.3.0.dist-info/RECORD +116 -0
- envlib_api-0.3.0.dist-info/WHEEL +4 -0
- envlib_api-0.3.0.dist-info/entry_points.txt +3 -0
- envlib_api-0.3.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/parameterGroup).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: Represents logical groups of parameters
|
|
6
|
+
properties:
|
|
7
|
+
type:
|
|
8
|
+
description: Type of the parameter group object, must be "ParameterGroup"
|
|
9
|
+
const: ParameterGroup
|
|
10
|
+
id:
|
|
11
|
+
type: string
|
|
12
|
+
label:
|
|
13
|
+
$ref: covjsonI18n.yaml
|
|
14
|
+
description:
|
|
15
|
+
$ref: covjsonI18n.yaml
|
|
16
|
+
observedProperty:
|
|
17
|
+
$ref: covjsonObservedProperty.yaml
|
|
18
|
+
members:
|
|
19
|
+
type: array
|
|
20
|
+
items:
|
|
21
|
+
type: string
|
|
22
|
+
minItems: 1
|
|
23
|
+
uniqueItems: true
|
|
24
|
+
required:
|
|
25
|
+
- type
|
|
26
|
+
- members
|
|
27
|
+
anyOf:
|
|
28
|
+
- required:
|
|
29
|
+
- label
|
|
30
|
+
- required:
|
|
31
|
+
- observedProperty
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/unit).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: The units of measure
|
|
6
|
+
properties:
|
|
7
|
+
id:
|
|
8
|
+
type: string
|
|
9
|
+
label:
|
|
10
|
+
$ref: covjsonI18n.yaml
|
|
11
|
+
symbol:
|
|
12
|
+
allOf:
|
|
13
|
+
- type:
|
|
14
|
+
- string
|
|
15
|
+
- object
|
|
16
|
+
- if:
|
|
17
|
+
type: object
|
|
18
|
+
then:
|
|
19
|
+
properties:
|
|
20
|
+
type:
|
|
21
|
+
type: string
|
|
22
|
+
value:
|
|
23
|
+
type: string
|
|
24
|
+
required:
|
|
25
|
+
- type
|
|
26
|
+
- value
|
|
27
|
+
anyOf:
|
|
28
|
+
- required:
|
|
29
|
+
- label
|
|
30
|
+
- required:
|
|
31
|
+
- symbol
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/domain).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
allOf:
|
|
5
|
+
- $ref: domainBase.yaml
|
|
6
|
+
- required:
|
|
7
|
+
- referencing
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/domainBase).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: A Domain, which defines a set of positions and their extent in one or more referencing systems
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
type:
|
|
8
|
+
const: Domain
|
|
9
|
+
domainType:
|
|
10
|
+
type: string
|
|
11
|
+
axes:
|
|
12
|
+
type: object
|
|
13
|
+
description: Set of Axis objects, keyed by axis identifier
|
|
14
|
+
minProperties: 1
|
|
15
|
+
patternProperties:
|
|
16
|
+
.+:
|
|
17
|
+
$ref: anyAxis.yaml
|
|
18
|
+
referencing:
|
|
19
|
+
type: array
|
|
20
|
+
items:
|
|
21
|
+
$ref: referenceSystemConnection.yaml
|
|
22
|
+
required:
|
|
23
|
+
- type
|
|
24
|
+
- axes
|
|
25
|
+
dependentSchemas:
|
|
26
|
+
domainType:
|
|
27
|
+
allOf:
|
|
28
|
+
- if:
|
|
29
|
+
properties:
|
|
30
|
+
domainType:
|
|
31
|
+
const: Grid
|
|
32
|
+
then:
|
|
33
|
+
description: 'Grid domain: x and y are required, z and t optional'
|
|
34
|
+
properties:
|
|
35
|
+
axes:
|
|
36
|
+
properties:
|
|
37
|
+
x:
|
|
38
|
+
$ref: numericAxis.yaml
|
|
39
|
+
y:
|
|
40
|
+
$ref: numericAxis.yaml
|
|
41
|
+
z:
|
|
42
|
+
$ref: numericAxis.yaml
|
|
43
|
+
t:
|
|
44
|
+
$ref: stringValuesAxis.yaml
|
|
45
|
+
required:
|
|
46
|
+
- x
|
|
47
|
+
- y
|
|
48
|
+
additionalProperties: false
|
|
49
|
+
- if:
|
|
50
|
+
properties:
|
|
51
|
+
domainType:
|
|
52
|
+
const: Trajectory
|
|
53
|
+
then:
|
|
54
|
+
description: 'Trajectory domain: mandatory composite axis and optional z axis'
|
|
55
|
+
properties:
|
|
56
|
+
axes:
|
|
57
|
+
properties:
|
|
58
|
+
composite:
|
|
59
|
+
allOf:
|
|
60
|
+
- $ref: tupleValuesAxis.yaml
|
|
61
|
+
- properties:
|
|
62
|
+
values:
|
|
63
|
+
items:
|
|
64
|
+
$comment: In a Trajectory, tuples always have 3 (txy) or 4 (txyz) values
|
|
65
|
+
minItems: 3
|
|
66
|
+
maxItems: 4
|
|
67
|
+
coordinates:
|
|
68
|
+
enum:
|
|
69
|
+
- - t
|
|
70
|
+
- x
|
|
71
|
+
- y
|
|
72
|
+
- z
|
|
73
|
+
- - t
|
|
74
|
+
- x
|
|
75
|
+
- y
|
|
76
|
+
z:
|
|
77
|
+
$ref: numericSingleValueAxis.yaml
|
|
78
|
+
required:
|
|
79
|
+
- composite
|
|
80
|
+
additionalProperties: false
|
|
81
|
+
- if:
|
|
82
|
+
properties:
|
|
83
|
+
domainType:
|
|
84
|
+
const: VerticalProfile
|
|
85
|
+
then:
|
|
86
|
+
description: 'Vertical Profile domain: mandatory x, y and z axis and optional t axis'
|
|
87
|
+
properties:
|
|
88
|
+
axes:
|
|
89
|
+
properties:
|
|
90
|
+
x:
|
|
91
|
+
$ref: numericSingleValueAxis.yaml
|
|
92
|
+
y:
|
|
93
|
+
$ref: numericSingleValueAxis.yaml
|
|
94
|
+
z:
|
|
95
|
+
$ref: numericAxis.yaml
|
|
96
|
+
t:
|
|
97
|
+
$ref: stringSingleValueAxis.yaml
|
|
98
|
+
required:
|
|
99
|
+
- x
|
|
100
|
+
- y
|
|
101
|
+
- z
|
|
102
|
+
additionalProperties: false
|
|
103
|
+
- if:
|
|
104
|
+
properties:
|
|
105
|
+
domainType:
|
|
106
|
+
const: Point
|
|
107
|
+
then:
|
|
108
|
+
description: 'Point domain: mandatory x and y axis, optional z and t axis'
|
|
109
|
+
properties:
|
|
110
|
+
axes:
|
|
111
|
+
properties:
|
|
112
|
+
x:
|
|
113
|
+
$ref: numericSingleValueAxis.yaml
|
|
114
|
+
y:
|
|
115
|
+
$ref: numericSingleValueAxis.yaml
|
|
116
|
+
z:
|
|
117
|
+
$ref: numericSingleValueAxis.yaml
|
|
118
|
+
t:
|
|
119
|
+
$ref: stringSingleValueAxis.yaml
|
|
120
|
+
required:
|
|
121
|
+
- x
|
|
122
|
+
- y
|
|
123
|
+
additionalProperties: false
|
|
124
|
+
- if:
|
|
125
|
+
properties:
|
|
126
|
+
domainType:
|
|
127
|
+
const: PointSeries
|
|
128
|
+
then:
|
|
129
|
+
description: 'PointSeries domain: mandatory x, y and t axis, optional z axis'
|
|
130
|
+
properties:
|
|
131
|
+
axes:
|
|
132
|
+
properties:
|
|
133
|
+
x:
|
|
134
|
+
$ref: numericSingleValueAxis.yaml
|
|
135
|
+
y:
|
|
136
|
+
$ref: numericSingleValueAxis.yaml
|
|
137
|
+
z:
|
|
138
|
+
$ref: numericSingleValueAxis.yaml
|
|
139
|
+
t:
|
|
140
|
+
$ref: stringValuesAxis.yaml
|
|
141
|
+
required:
|
|
142
|
+
- x
|
|
143
|
+
- y
|
|
144
|
+
- t
|
|
145
|
+
additionalProperties: false
|
|
146
|
+
- if:
|
|
147
|
+
properties:
|
|
148
|
+
domainType:
|
|
149
|
+
const: MultiPoint
|
|
150
|
+
then:
|
|
151
|
+
description: 'MultiPoint domain: mandatory composite axis, optional t axis'
|
|
152
|
+
properties:
|
|
153
|
+
axes:
|
|
154
|
+
properties:
|
|
155
|
+
composite:
|
|
156
|
+
allOf:
|
|
157
|
+
- $ref: tupleValuesAxis.yaml
|
|
158
|
+
- properties:
|
|
159
|
+
values:
|
|
160
|
+
items:
|
|
161
|
+
$comment: In a MultiPoint, tuples always have 2 (xy) or 3 values (xyz)
|
|
162
|
+
minItems: 2
|
|
163
|
+
maxItems: 3
|
|
164
|
+
coordinates:
|
|
165
|
+
enum:
|
|
166
|
+
- - x
|
|
167
|
+
- y
|
|
168
|
+
- z
|
|
169
|
+
- - x
|
|
170
|
+
- y
|
|
171
|
+
t:
|
|
172
|
+
$ref: stringSingleValueAxis.yaml
|
|
173
|
+
required:
|
|
174
|
+
- composite
|
|
175
|
+
additionalProperties: false
|
|
176
|
+
- if:
|
|
177
|
+
properties:
|
|
178
|
+
domainType:
|
|
179
|
+
const: MultiPointSeries
|
|
180
|
+
then:
|
|
181
|
+
description: 'MultiPointSeries domain: mandatory composite and t axes'
|
|
182
|
+
properties:
|
|
183
|
+
axes:
|
|
184
|
+
properties:
|
|
185
|
+
composite:
|
|
186
|
+
allOf:
|
|
187
|
+
- $ref: tupleValuesAxis.yaml
|
|
188
|
+
- properties:
|
|
189
|
+
values:
|
|
190
|
+
items:
|
|
191
|
+
$comment: In a MultiPointSeries, tuples always have 2 (xy) or 3 values (xyz)
|
|
192
|
+
minItems: 2
|
|
193
|
+
maxItems: 3
|
|
194
|
+
coordinates:
|
|
195
|
+
enum:
|
|
196
|
+
- - x
|
|
197
|
+
- y
|
|
198
|
+
- z
|
|
199
|
+
- - x
|
|
200
|
+
- y
|
|
201
|
+
t:
|
|
202
|
+
$ref: stringValuesAxis.yaml
|
|
203
|
+
required:
|
|
204
|
+
- composite
|
|
205
|
+
- t
|
|
206
|
+
additionalProperties: false
|
|
207
|
+
- if:
|
|
208
|
+
properties:
|
|
209
|
+
domainType:
|
|
210
|
+
const: Section
|
|
211
|
+
then:
|
|
212
|
+
description: 'Section domain: mandatory composite and z axes'
|
|
213
|
+
properties:
|
|
214
|
+
axes:
|
|
215
|
+
properties:
|
|
216
|
+
composite:
|
|
217
|
+
allOf:
|
|
218
|
+
- $ref: tupleValuesAxis.yaml
|
|
219
|
+
- properties:
|
|
220
|
+
values:
|
|
221
|
+
items:
|
|
222
|
+
$comment: In a Section, tuples always have 3 values (txy)
|
|
223
|
+
minItems: 3
|
|
224
|
+
maxItems: 3
|
|
225
|
+
coordinates:
|
|
226
|
+
const:
|
|
227
|
+
- t
|
|
228
|
+
- x
|
|
229
|
+
- y
|
|
230
|
+
z:
|
|
231
|
+
$ref: numericAxis.yaml
|
|
232
|
+
required:
|
|
233
|
+
- composite
|
|
234
|
+
- z
|
|
235
|
+
additionalProperties: false
|
|
236
|
+
- if:
|
|
237
|
+
properties:
|
|
238
|
+
domainType:
|
|
239
|
+
const: Polygon
|
|
240
|
+
then:
|
|
241
|
+
description: 'Polygon domain: mandatory composite axis, optional z and t axes'
|
|
242
|
+
properties:
|
|
243
|
+
axes:
|
|
244
|
+
properties:
|
|
245
|
+
composite:
|
|
246
|
+
allOf:
|
|
247
|
+
- $ref: polygonValuesAxis.yaml
|
|
248
|
+
- properties:
|
|
249
|
+
values:
|
|
250
|
+
$comment: There can only be one polygon in the axis
|
|
251
|
+
maxItems: 1
|
|
252
|
+
coordinates:
|
|
253
|
+
const:
|
|
254
|
+
- x
|
|
255
|
+
- y
|
|
256
|
+
z:
|
|
257
|
+
$ref: numericSingleValueAxis.yaml
|
|
258
|
+
t:
|
|
259
|
+
$ref: stringSingleValueAxis.yaml
|
|
260
|
+
required:
|
|
261
|
+
- composite
|
|
262
|
+
additionalProperties: false
|
|
263
|
+
- if:
|
|
264
|
+
properties:
|
|
265
|
+
domainType:
|
|
266
|
+
const: PolygonSeries
|
|
267
|
+
then:
|
|
268
|
+
description: 'PolygonSeries domain: mandatory composite axis, optional z and t axes'
|
|
269
|
+
properties:
|
|
270
|
+
axes:
|
|
271
|
+
properties:
|
|
272
|
+
composite:
|
|
273
|
+
allOf:
|
|
274
|
+
- $ref: polygonValuesAxis.yaml
|
|
275
|
+
- properties:
|
|
276
|
+
values:
|
|
277
|
+
$comment: There can only be one polygon in the axis
|
|
278
|
+
maxItems: 1
|
|
279
|
+
coordinates:
|
|
280
|
+
const:
|
|
281
|
+
- x
|
|
282
|
+
- y
|
|
283
|
+
z:
|
|
284
|
+
$ref: numericSingleValueAxis.yaml
|
|
285
|
+
t:
|
|
286
|
+
$ref: stringValuesAxis.yaml
|
|
287
|
+
required:
|
|
288
|
+
- composite
|
|
289
|
+
additionalProperties: false
|
|
290
|
+
- if:
|
|
291
|
+
properties:
|
|
292
|
+
domainType:
|
|
293
|
+
const: MultiPolygon
|
|
294
|
+
then:
|
|
295
|
+
description: 'MultiPolygon domain: mandatory composite axis, optional z and t axes'
|
|
296
|
+
properties:
|
|
297
|
+
axes:
|
|
298
|
+
properties:
|
|
299
|
+
composite:
|
|
300
|
+
allOf:
|
|
301
|
+
- $ref: polygonValuesAxis.yaml
|
|
302
|
+
- properties:
|
|
303
|
+
coordinates:
|
|
304
|
+
const:
|
|
305
|
+
- x
|
|
306
|
+
- y
|
|
307
|
+
z:
|
|
308
|
+
$ref: numericSingleValueAxis.yaml
|
|
309
|
+
t:
|
|
310
|
+
$ref: stringSingleValueAxis.yaml
|
|
311
|
+
required:
|
|
312
|
+
- composite
|
|
313
|
+
additionalProperties: false
|
|
314
|
+
- if:
|
|
315
|
+
properties:
|
|
316
|
+
domainType:
|
|
317
|
+
const: MultiPolygonSeries
|
|
318
|
+
then:
|
|
319
|
+
description: 'MultiPolygonSeries domain: mandatory composite axis, optional z and t axes'
|
|
320
|
+
properties:
|
|
321
|
+
axes:
|
|
322
|
+
properties:
|
|
323
|
+
composite:
|
|
324
|
+
allOf:
|
|
325
|
+
- $ref: polygonValuesAxis.yaml
|
|
326
|
+
- properties:
|
|
327
|
+
coordinates:
|
|
328
|
+
const:
|
|
329
|
+
- x
|
|
330
|
+
- y
|
|
331
|
+
z:
|
|
332
|
+
$ref: numericSingleValueAxis.yaml
|
|
333
|
+
t:
|
|
334
|
+
$ref: stringValuesAxis.yaml
|
|
335
|
+
required:
|
|
336
|
+
- composite
|
|
337
|
+
additionalProperties: false
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/ndArray).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: Object representing a multidimensional (>= 0D) array with named axes, encoded as a flat one-dimensional
|
|
6
|
+
array in row-major order
|
|
7
|
+
properties:
|
|
8
|
+
type:
|
|
9
|
+
const: NdArray
|
|
10
|
+
dataType:
|
|
11
|
+
enum:
|
|
12
|
+
- float
|
|
13
|
+
- integer
|
|
14
|
+
- string
|
|
15
|
+
shape:
|
|
16
|
+
type: array
|
|
17
|
+
items:
|
|
18
|
+
type: number
|
|
19
|
+
axisNames:
|
|
20
|
+
type: array
|
|
21
|
+
items:
|
|
22
|
+
type: string
|
|
23
|
+
uniqueItems: true
|
|
24
|
+
values:
|
|
25
|
+
type: array
|
|
26
|
+
minItems: 1
|
|
27
|
+
allOf:
|
|
28
|
+
- if:
|
|
29
|
+
properties:
|
|
30
|
+
dataType:
|
|
31
|
+
const: float
|
|
32
|
+
then:
|
|
33
|
+
properties:
|
|
34
|
+
values:
|
|
35
|
+
items:
|
|
36
|
+
type:
|
|
37
|
+
- number
|
|
38
|
+
- 'null'
|
|
39
|
+
- if:
|
|
40
|
+
properties:
|
|
41
|
+
dataType:
|
|
42
|
+
const: integer
|
|
43
|
+
then:
|
|
44
|
+
properties:
|
|
45
|
+
values:
|
|
46
|
+
items:
|
|
47
|
+
type:
|
|
48
|
+
- integer
|
|
49
|
+
- 'null'
|
|
50
|
+
- if:
|
|
51
|
+
properties:
|
|
52
|
+
dataType:
|
|
53
|
+
const: string
|
|
54
|
+
then:
|
|
55
|
+
properties:
|
|
56
|
+
values:
|
|
57
|
+
items:
|
|
58
|
+
type:
|
|
59
|
+
- string
|
|
60
|
+
- 'null'
|
|
61
|
+
- if:
|
|
62
|
+
anyOf:
|
|
63
|
+
- properties:
|
|
64
|
+
values:
|
|
65
|
+
minItems: 2
|
|
66
|
+
- properties:
|
|
67
|
+
shape:
|
|
68
|
+
minItems: 1
|
|
69
|
+
required:
|
|
70
|
+
- shape
|
|
71
|
+
- properties:
|
|
72
|
+
axisNames:
|
|
73
|
+
minItems: 1
|
|
74
|
+
required:
|
|
75
|
+
- axisNames
|
|
76
|
+
then:
|
|
77
|
+
properties:
|
|
78
|
+
shape:
|
|
79
|
+
minItems: 1
|
|
80
|
+
axisNames:
|
|
81
|
+
minItems: 1
|
|
82
|
+
required:
|
|
83
|
+
- shape
|
|
84
|
+
- axisNames
|
|
85
|
+
required:
|
|
86
|
+
- type
|
|
87
|
+
- dataType
|
|
88
|
+
- values
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/numericAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Simple axis with numeric values
|
|
5
|
+
if:
|
|
6
|
+
required:
|
|
7
|
+
- values
|
|
8
|
+
then:
|
|
9
|
+
$ref: numericValuesAxis.yaml
|
|
10
|
+
else:
|
|
11
|
+
$ref: numericRegularlySpacedAxis.yaml
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/numericRegularlySpacedAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: A regularly-spaced numeric axis
|
|
5
|
+
properties:
|
|
6
|
+
start:
|
|
7
|
+
type: number
|
|
8
|
+
stop:
|
|
9
|
+
type: number
|
|
10
|
+
num:
|
|
11
|
+
type: integer
|
|
12
|
+
minimum: 1
|
|
13
|
+
required:
|
|
14
|
+
- start
|
|
15
|
+
- stop
|
|
16
|
+
- num
|
|
17
|
+
additionalProperties: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/numericSingleValueAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Axis defined by single numeric value
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: numericValuesAxis.yaml
|
|
7
|
+
- properties:
|
|
8
|
+
values:
|
|
9
|
+
maxItems: 1
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/numericValuesAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Axis defined by list of numeric axis values and optional bounds
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: valuesAxisBase.yaml
|
|
7
|
+
- properties:
|
|
8
|
+
values:
|
|
9
|
+
items:
|
|
10
|
+
type: number
|
|
11
|
+
bounds:
|
|
12
|
+
items:
|
|
13
|
+
type: number
|
|
14
|
+
additionalProperties: false
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/polygonValuesAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Polygon-based axis
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: valuesAxisBase.yaml
|
|
7
|
+
- properties:
|
|
8
|
+
dataType:
|
|
9
|
+
const: polygon
|
|
10
|
+
values:
|
|
11
|
+
items:
|
|
12
|
+
description: A GeoJSON polygon
|
|
13
|
+
type: array
|
|
14
|
+
items:
|
|
15
|
+
type: array
|
|
16
|
+
items:
|
|
17
|
+
description: 'The inner array: the coordinates themselves'
|
|
18
|
+
type: array
|
|
19
|
+
items:
|
|
20
|
+
type: number
|
|
21
|
+
minItems: 2
|
|
22
|
+
minItems: 1
|
|
23
|
+
minItems: 1
|
|
24
|
+
coordinates: {}
|
|
25
|
+
required:
|
|
26
|
+
- dataType
|
|
27
|
+
- values
|
|
28
|
+
- coordinates
|
|
29
|
+
additionalProperties: false
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/primitiveValuesAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Validates any axis with primitive values
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: valuesAxisBase.yaml
|
|
7
|
+
- $comment: This redundant branch exists to fail early with succinct errors
|
|
8
|
+
properties:
|
|
9
|
+
values:
|
|
10
|
+
items:
|
|
11
|
+
oneOf:
|
|
12
|
+
- type: number
|
|
13
|
+
- type: string
|
|
14
|
+
- if:
|
|
15
|
+
properties:
|
|
16
|
+
values:
|
|
17
|
+
items:
|
|
18
|
+
type: number
|
|
19
|
+
then:
|
|
20
|
+
$ref: numericValuesAxis.yaml
|
|
21
|
+
else:
|
|
22
|
+
$ref: stringValuesAxis.yaml
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/referenceSystem).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
required:
|
|
9
|
+
- type
|
|
10
|
+
allOf:
|
|
11
|
+
- if:
|
|
12
|
+
properties:
|
|
13
|
+
type:
|
|
14
|
+
const: TemporalRS
|
|
15
|
+
then:
|
|
16
|
+
description: Temporal reference system
|
|
17
|
+
properties:
|
|
18
|
+
calendar:
|
|
19
|
+
type: string
|
|
20
|
+
oneOf:
|
|
21
|
+
- const: Gregorian
|
|
22
|
+
- pattern: ^https?://
|
|
23
|
+
timeScale:
|
|
24
|
+
type: string
|
|
25
|
+
required:
|
|
26
|
+
- calendar
|
|
27
|
+
- if:
|
|
28
|
+
properties:
|
|
29
|
+
type:
|
|
30
|
+
const: IdentifierRS
|
|
31
|
+
then:
|
|
32
|
+
description: An identifier-based reference system
|
|
33
|
+
properties:
|
|
34
|
+
id:
|
|
35
|
+
type: string
|
|
36
|
+
label:
|
|
37
|
+
$ref: covjsonI18n.yaml
|
|
38
|
+
description:
|
|
39
|
+
$ref: covjsonI18n.yaml
|
|
40
|
+
targetConcept:
|
|
41
|
+
$ref: targetConcept.yaml
|
|
42
|
+
identifiers:
|
|
43
|
+
type: object
|
|
44
|
+
patternProperties:
|
|
45
|
+
.+:
|
|
46
|
+
$ref: targetConcept.yaml
|
|
47
|
+
required:
|
|
48
|
+
- targetConcept
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/referenceSystemConnection).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: 'Reference System Connection object: connects coordinates to reference systems'
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
coordinates:
|
|
8
|
+
type: array
|
|
9
|
+
items:
|
|
10
|
+
type: string
|
|
11
|
+
minItems: 1
|
|
12
|
+
system:
|
|
13
|
+
$ref: referenceSystem.yaml
|
|
14
|
+
required:
|
|
15
|
+
- coordinates
|
|
16
|
+
- system
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/stringSingleValueAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Axis defined by single string value
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: stringValuesAxis.yaml
|
|
7
|
+
- properties:
|
|
8
|
+
values:
|
|
9
|
+
maxItems: 1
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated by core/standard/code/generate_covjson_schemas.py from the
|
|
2
|
+
# CoverageJSON 1.0 schema (https://schemas.opengis.net/covjson/1.0/coveragejson.json, #/definitions/stringValuesAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Simple axis with string values (e.g. time strings)
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: valuesAxisBase.yaml
|
|
7
|
+
- properties:
|
|
8
|
+
values:
|
|
9
|
+
items:
|
|
10
|
+
type: string
|
|
11
|
+
bounds:
|
|
12
|
+
items:
|
|
13
|
+
type: string
|
|
14
|
+
additionalProperties: false
|