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,51 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
title: name of property
|
|
3
|
+
description: Description of the property
|
|
4
|
+
required:
|
|
5
|
+
- label
|
|
6
|
+
properties:
|
|
7
|
+
id:
|
|
8
|
+
description: >-
|
|
9
|
+
URI linking to an external registry which contains the definitive
|
|
10
|
+
definition of
|
|
11
|
+
|
|
12
|
+
the observed property
|
|
13
|
+
type: string
|
|
14
|
+
label:
|
|
15
|
+
oneOf:
|
|
16
|
+
- type: string
|
|
17
|
+
- type: object
|
|
18
|
+
description:
|
|
19
|
+
type: string
|
|
20
|
+
categories:
|
|
21
|
+
type: array
|
|
22
|
+
items:
|
|
23
|
+
minItems: 1
|
|
24
|
+
type: object
|
|
25
|
+
required:
|
|
26
|
+
- id
|
|
27
|
+
- label
|
|
28
|
+
properties:
|
|
29
|
+
id:
|
|
30
|
+
description: >-
|
|
31
|
+
URI linking to an external registry which contains the definitive
|
|
32
|
+
definition of
|
|
33
|
+
|
|
34
|
+
the observed property
|
|
35
|
+
type: string
|
|
36
|
+
label:
|
|
37
|
+
oneOf:
|
|
38
|
+
- type: string
|
|
39
|
+
- type: object
|
|
40
|
+
description:
|
|
41
|
+
oneOf:
|
|
42
|
+
- type: string
|
|
43
|
+
- type: object
|
|
44
|
+
required:
|
|
45
|
+
- en
|
|
46
|
+
properties:
|
|
47
|
+
en:
|
|
48
|
+
type: string
|
|
49
|
+
examples:
|
|
50
|
+
- id: https://vocab.nerc.ac.uk/standard_name/sea_ice_area_fraction/
|
|
51
|
+
label: Sea Ice Concentration
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
title: Parameter name
|
|
3
|
+
description: Definition of data parameter
|
|
4
|
+
required:
|
|
5
|
+
- type
|
|
6
|
+
- observedProperty
|
|
7
|
+
properties:
|
|
8
|
+
type:
|
|
9
|
+
description: type
|
|
10
|
+
enum:
|
|
11
|
+
- Parameter
|
|
12
|
+
description:
|
|
13
|
+
type: string
|
|
14
|
+
label:
|
|
15
|
+
type: string
|
|
16
|
+
dataType:
|
|
17
|
+
description: Data type of returned parameter
|
|
18
|
+
type: string
|
|
19
|
+
enum:
|
|
20
|
+
- integer
|
|
21
|
+
- float
|
|
22
|
+
- string
|
|
23
|
+
unit:
|
|
24
|
+
$ref: units.yaml
|
|
25
|
+
observedProperty:
|
|
26
|
+
$ref: observedPropertyCollection.yaml
|
|
27
|
+
categoryEncoding:
|
|
28
|
+
type: object
|
|
29
|
+
additionalProperties:
|
|
30
|
+
oneOf:
|
|
31
|
+
- type: integer
|
|
32
|
+
- type: array
|
|
33
|
+
items:
|
|
34
|
+
type: integer
|
|
35
|
+
extent:
|
|
36
|
+
$ref: extent.yaml
|
|
37
|
+
id:
|
|
38
|
+
description: Unique ID of the parameter, this is the value used for querying the data
|
|
39
|
+
type: string
|
|
40
|
+
measurementType:
|
|
41
|
+
type: object
|
|
42
|
+
title: Parameter measurement approach
|
|
43
|
+
description: Approach to calculating the data values
|
|
44
|
+
required:
|
|
45
|
+
- method
|
|
46
|
+
properties:
|
|
47
|
+
method:
|
|
48
|
+
type: string
|
|
49
|
+
examples:
|
|
50
|
+
- mean
|
|
51
|
+
duration:
|
|
52
|
+
type: string
|
|
53
|
+
title: Measurement time duration
|
|
54
|
+
description: The time duration that the value was calculated for as an RFC3339
|
|
55
|
+
duration value. If the method value is instantaneous this value is
|
|
56
|
+
not required.
|
|
57
|
+
examples:
|
|
58
|
+
- PT10M
|
|
59
|
+
examples:
|
|
60
|
+
- type: Parameter
|
|
61
|
+
id: sea_ice
|
|
62
|
+
description: Sea Ice concentration (ice=1;no ice=0)
|
|
63
|
+
unit:
|
|
64
|
+
label: Ratio
|
|
65
|
+
symbol:
|
|
66
|
+
value: "1"
|
|
67
|
+
type: https://www.opengis.net/def/uom/UCUM/
|
|
68
|
+
observedProperty:
|
|
69
|
+
id: https://vocab.nerc.ac.uk/standard_name/sea_ice_area_fraction/
|
|
70
|
+
label: Sea Ice Concentration
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
allOf:
|
|
2
|
+
- $ref: DataQuery.yaml
|
|
3
|
+
properties:
|
|
4
|
+
query_type:
|
|
5
|
+
description: Type of EDR query
|
|
6
|
+
type: string
|
|
7
|
+
enum:
|
|
8
|
+
- radius
|
|
9
|
+
examples:
|
|
10
|
+
- radius
|
|
11
|
+
within_units:
|
|
12
|
+
description: list of distance units radius values can be specified in
|
|
13
|
+
type: array
|
|
14
|
+
items:
|
|
15
|
+
type: string
|
|
16
|
+
examples:
|
|
17
|
+
- - km
|
|
18
|
+
- miles
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
title: unit name
|
|
3
|
+
description: definition of data units
|
|
4
|
+
anyOf:
|
|
5
|
+
- required:
|
|
6
|
+
- label
|
|
7
|
+
- required:
|
|
8
|
+
- symbol
|
|
9
|
+
- required:
|
|
10
|
+
- label
|
|
11
|
+
- symbol
|
|
12
|
+
properties:
|
|
13
|
+
label:
|
|
14
|
+
additionalProperties:
|
|
15
|
+
type: string
|
|
16
|
+
symbol:
|
|
17
|
+
title: Describe unit symbol
|
|
18
|
+
oneOf:
|
|
19
|
+
- type: object
|
|
20
|
+
description: Information about the symbol used to describe the units
|
|
21
|
+
required:
|
|
22
|
+
- value
|
|
23
|
+
- type
|
|
24
|
+
properties:
|
|
25
|
+
value:
|
|
26
|
+
description: representation of the units symbol
|
|
27
|
+
type: string
|
|
28
|
+
type:
|
|
29
|
+
description: uri to detailed desxcription of the units
|
|
30
|
+
type: string
|
|
31
|
+
- type: string
|
|
32
|
+
examples:
|
|
33
|
+
- value: hPa
|
|
34
|
+
type: https://www.opengis.net/def/uom/UCUM/
|
|
35
|
+
id:
|
|
36
|
+
type: string
|
|
37
|
+
examples:
|
|
38
|
+
- label:
|
|
39
|
+
en: Kelvin
|
|
40
|
+
symbol:
|
|
41
|
+
value: K
|
|
42
|
+
type: https://www.opengis.net/def/uom/UCUM/
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- links
|
|
4
|
+
properties:
|
|
5
|
+
title:
|
|
6
|
+
type: string
|
|
7
|
+
examples:
|
|
8
|
+
- Meteorological data server
|
|
9
|
+
description:
|
|
10
|
+
type: string
|
|
11
|
+
examples:
|
|
12
|
+
- Access to Meteorological data via a Web API that conforms to the OGC API Environmental Data Retrieval specification.
|
|
13
|
+
links:
|
|
14
|
+
type: array
|
|
15
|
+
items:
|
|
16
|
+
$ref: link.yaml
|
|
17
|
+
examples:
|
|
18
|
+
- - href: https://example.org/edr/api
|
|
19
|
+
hreflang: en
|
|
20
|
+
rel: service-desc
|
|
21
|
+
type: application/vnd.oai.openapi+json;version=3.0
|
|
22
|
+
title: ""
|
|
23
|
+
- href: https://example.org/edr/conformance
|
|
24
|
+
hreflang: en
|
|
25
|
+
rel: data
|
|
26
|
+
type: application/json
|
|
27
|
+
title: ""
|
|
28
|
+
- href: https://example.org/edr/collections
|
|
29
|
+
hreflang: en
|
|
30
|
+
rel: data
|
|
31
|
+
type: application/json
|
|
32
|
+
title: ""
|
|
33
|
+
keywords:
|
|
34
|
+
type: array
|
|
35
|
+
items:
|
|
36
|
+
type: string
|
|
37
|
+
examples:
|
|
38
|
+
- - Temperature
|
|
39
|
+
- Wind
|
|
40
|
+
- Point
|
|
41
|
+
- Trajectory
|
|
42
|
+
provider:
|
|
43
|
+
type: object
|
|
44
|
+
properties:
|
|
45
|
+
name:
|
|
46
|
+
description: Name of organization providing the service
|
|
47
|
+
type: string
|
|
48
|
+
url:
|
|
49
|
+
description: Link to service providers website
|
|
50
|
+
type: string
|
|
51
|
+
contact:
|
|
52
|
+
type: object
|
|
53
|
+
properties:
|
|
54
|
+
email:
|
|
55
|
+
description: Email address of service provider
|
|
56
|
+
type: string
|
|
57
|
+
phone:
|
|
58
|
+
description: Phone number of service provider
|
|
59
|
+
type: string
|
|
60
|
+
fax:
|
|
61
|
+
description: Fax number of service provider
|
|
62
|
+
type: string
|
|
63
|
+
hours:
|
|
64
|
+
type: string
|
|
65
|
+
instructions:
|
|
66
|
+
type: string
|
|
67
|
+
address:
|
|
68
|
+
type: string
|
|
69
|
+
postalCode:
|
|
70
|
+
type: string
|
|
71
|
+
city:
|
|
72
|
+
type: string
|
|
73
|
+
stateorprovince:
|
|
74
|
+
type: string
|
|
75
|
+
country:
|
|
76
|
+
type: string
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- href
|
|
4
|
+
- rel
|
|
5
|
+
properties:
|
|
6
|
+
href:
|
|
7
|
+
type: string
|
|
8
|
+
examples:
|
|
9
|
+
- https://example.com/collections/monitoringsites/locations/1234
|
|
10
|
+
rel:
|
|
11
|
+
type: string
|
|
12
|
+
examples:
|
|
13
|
+
- alternate
|
|
14
|
+
type:
|
|
15
|
+
type: string
|
|
16
|
+
examples:
|
|
17
|
+
- application/geo+json
|
|
18
|
+
hreflang:
|
|
19
|
+
type: string
|
|
20
|
+
examples:
|
|
21
|
+
- en
|
|
22
|
+
title:
|
|
23
|
+
type: string
|
|
24
|
+
examples:
|
|
25
|
+
- Monitoring site name
|
|
26
|
+
length:
|
|
27
|
+
type: integer
|
|
28
|
+
templated:
|
|
29
|
+
description: defines if the link href value is a template with values requiring replacement
|
|
30
|
+
type: boolean
|
|
31
|
+
|
|
@@ -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/anyAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Validates any axis
|
|
5
|
+
if:
|
|
6
|
+
required:
|
|
7
|
+
- values
|
|
8
|
+
then:
|
|
9
|
+
$ref: valuesAxis.yaml
|
|
10
|
+
else:
|
|
11
|
+
$ref: numericRegularlySpacedAxis.yaml
|
|
@@ -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/coverage).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
allOf:
|
|
5
|
+
- $ref: coverageBase.yaml
|
|
6
|
+
- required:
|
|
7
|
+
- parameters
|
|
8
|
+
properties:
|
|
9
|
+
domain:
|
|
10
|
+
if:
|
|
11
|
+
type: object
|
|
12
|
+
then:
|
|
13
|
+
required:
|
|
14
|
+
- referencing
|
|
@@ -0,0 +1,68 @@
|
|
|
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/coverageBase).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: A Coverage, representing a mapping from a domain to sets of data values described by parameters.
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
type:
|
|
8
|
+
const: Coverage
|
|
9
|
+
id:
|
|
10
|
+
type: string
|
|
11
|
+
domainType:
|
|
12
|
+
type: string
|
|
13
|
+
domain:
|
|
14
|
+
allOf:
|
|
15
|
+
- type:
|
|
16
|
+
- string
|
|
17
|
+
- object
|
|
18
|
+
- if:
|
|
19
|
+
type: object
|
|
20
|
+
then:
|
|
21
|
+
$ref: domainBase.yaml
|
|
22
|
+
parameters:
|
|
23
|
+
type: object
|
|
24
|
+
patternProperties:
|
|
25
|
+
.+:
|
|
26
|
+
$ref: covjsonParameter.yaml
|
|
27
|
+
parameterGroups:
|
|
28
|
+
type: array
|
|
29
|
+
items:
|
|
30
|
+
$ref: covjsonParameterGroup.yaml
|
|
31
|
+
ranges:
|
|
32
|
+
type: object
|
|
33
|
+
patternProperties:
|
|
34
|
+
.+:
|
|
35
|
+
allOf:
|
|
36
|
+
- type:
|
|
37
|
+
- string
|
|
38
|
+
- object
|
|
39
|
+
- if:
|
|
40
|
+
type: object
|
|
41
|
+
then:
|
|
42
|
+
properties:
|
|
43
|
+
type:
|
|
44
|
+
enum:
|
|
45
|
+
- NdArray
|
|
46
|
+
- TiledNdArray
|
|
47
|
+
required:
|
|
48
|
+
- type
|
|
49
|
+
- if:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
type:
|
|
53
|
+
const: NdArray
|
|
54
|
+
then:
|
|
55
|
+
$ref: ndArray.yaml
|
|
56
|
+
- if:
|
|
57
|
+
type: object
|
|
58
|
+
properties:
|
|
59
|
+
type:
|
|
60
|
+
const: TiledNdArray
|
|
61
|
+
then:
|
|
62
|
+
$ref: tiledNdArray.yaml
|
|
63
|
+
rangeAlternates:
|
|
64
|
+
type: object
|
|
65
|
+
required:
|
|
66
|
+
- type
|
|
67
|
+
- domain
|
|
68
|
+
- ranges
|
|
@@ -0,0 +1,58 @@
|
|
|
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/coverageCollection).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: A collection of coverage objects
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
const: CoverageCollection
|
|
8
|
+
domainType:
|
|
9
|
+
type: string
|
|
10
|
+
parameters:
|
|
11
|
+
type: object
|
|
12
|
+
patternProperties:
|
|
13
|
+
.+:
|
|
14
|
+
$ref: covjsonParameter.yaml
|
|
15
|
+
parameterGroups:
|
|
16
|
+
type: array
|
|
17
|
+
items:
|
|
18
|
+
$ref: covjsonParameterGroup.yaml
|
|
19
|
+
referencing:
|
|
20
|
+
type: array
|
|
21
|
+
items:
|
|
22
|
+
$ref: referenceSystemConnection.yaml
|
|
23
|
+
coverages:
|
|
24
|
+
type: array
|
|
25
|
+
items:
|
|
26
|
+
$ref: coverageBase.yaml
|
|
27
|
+
required:
|
|
28
|
+
- type
|
|
29
|
+
- coverages
|
|
30
|
+
allOf:
|
|
31
|
+
- $comment: If no parameters are present at collection level then each coverage must have their own
|
|
32
|
+
if:
|
|
33
|
+
not:
|
|
34
|
+
required:
|
|
35
|
+
- parameters
|
|
36
|
+
then:
|
|
37
|
+
properties:
|
|
38
|
+
coverages:
|
|
39
|
+
items:
|
|
40
|
+
required:
|
|
41
|
+
- parameters
|
|
42
|
+
- $comment: If no "referencing" member is present at collection level then each coverage domain must
|
|
43
|
+
have its own
|
|
44
|
+
if:
|
|
45
|
+
not:
|
|
46
|
+
required:
|
|
47
|
+
- referencing
|
|
48
|
+
then:
|
|
49
|
+
properties:
|
|
50
|
+
coverages:
|
|
51
|
+
items:
|
|
52
|
+
properties:
|
|
53
|
+
domain:
|
|
54
|
+
if:
|
|
55
|
+
type: object
|
|
56
|
+
then:
|
|
57
|
+
required:
|
|
58
|
+
- referencing
|
|
@@ -0,0 +1,46 @@
|
|
|
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, top-level schema).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: A CoverageJSON object
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
type:
|
|
8
|
+
enum:
|
|
9
|
+
- Domain
|
|
10
|
+
- NdArray
|
|
11
|
+
- TiledNdArray
|
|
12
|
+
- Coverage
|
|
13
|
+
- CoverageCollection
|
|
14
|
+
required:
|
|
15
|
+
- type
|
|
16
|
+
allOf:
|
|
17
|
+
- if:
|
|
18
|
+
properties:
|
|
19
|
+
type:
|
|
20
|
+
const: Domain
|
|
21
|
+
then:
|
|
22
|
+
$ref: domain.yaml
|
|
23
|
+
- if:
|
|
24
|
+
properties:
|
|
25
|
+
type:
|
|
26
|
+
const: NdArray
|
|
27
|
+
then:
|
|
28
|
+
$ref: ndArray.yaml
|
|
29
|
+
- if:
|
|
30
|
+
properties:
|
|
31
|
+
type:
|
|
32
|
+
const: TiledNdArray
|
|
33
|
+
then:
|
|
34
|
+
$ref: tiledNdArray.yaml
|
|
35
|
+
- if:
|
|
36
|
+
properties:
|
|
37
|
+
type:
|
|
38
|
+
const: Coverage
|
|
39
|
+
then:
|
|
40
|
+
$ref: coverage.yaml
|
|
41
|
+
- if:
|
|
42
|
+
properties:
|
|
43
|
+
type:
|
|
44
|
+
const: CoverageCollection
|
|
45
|
+
then:
|
|
46
|
+
$ref: coverageCollection.yaml
|
|
@@ -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/i18n).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: Object representing an internationalised string where keys are BCP 47 language tags.
|
|
6
|
+
patternProperties:
|
|
7
|
+
? ^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*))$
|
|
8
|
+
: type: string
|
|
9
|
+
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/observedProperty).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: A definition of the quantity being measured.
|
|
6
|
+
properties:
|
|
7
|
+
id:
|
|
8
|
+
type: string
|
|
9
|
+
label:
|
|
10
|
+
$ref: covjsonI18n.yaml
|
|
11
|
+
description:
|
|
12
|
+
$ref: covjsonI18n.yaml
|
|
13
|
+
categories:
|
|
14
|
+
type: array
|
|
15
|
+
items:
|
|
16
|
+
type: object
|
|
17
|
+
properties:
|
|
18
|
+
id:
|
|
19
|
+
type: string
|
|
20
|
+
label:
|
|
21
|
+
$ref: covjsonI18n.yaml
|
|
22
|
+
description:
|
|
23
|
+
$ref: covjsonI18n.yaml
|
|
24
|
+
required:
|
|
25
|
+
- id
|
|
26
|
+
- label
|
|
27
|
+
minItems: 1
|
|
28
|
+
required:
|
|
29
|
+
- label
|
|
@@ -0,0 +1,32 @@
|
|
|
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/parameter).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: Represents metadata about the values of the coverage
|
|
6
|
+
properties:
|
|
7
|
+
id:
|
|
8
|
+
type: string
|
|
9
|
+
type:
|
|
10
|
+
description: Type of the parameter object, must be "Parameter"
|
|
11
|
+
const: Parameter
|
|
12
|
+
description:
|
|
13
|
+
$ref: covjsonI18n.yaml
|
|
14
|
+
observedProperty:
|
|
15
|
+
$ref: covjsonObservedProperty.yaml
|
|
16
|
+
unit:
|
|
17
|
+
$ref: covjsonUnit.yaml
|
|
18
|
+
categoryEncoding:
|
|
19
|
+
type: object
|
|
20
|
+
description: Maps IDs of categories in the observedProperty to range values
|
|
21
|
+
patternProperties:
|
|
22
|
+
.+:
|
|
23
|
+
oneOf:
|
|
24
|
+
- type: integer
|
|
25
|
+
- type: array
|
|
26
|
+
items:
|
|
27
|
+
type: integer
|
|
28
|
+
minItems: 1
|
|
29
|
+
uniqueItems: true
|
|
30
|
+
required:
|
|
31
|
+
- type
|
|
32
|
+
- observedProperty
|