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,13 @@
|
|
|
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/targetConcept).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
label:
|
|
9
|
+
$ref: covjsonI18n.yaml
|
|
10
|
+
description:
|
|
11
|
+
$ref: covjsonI18n.yaml
|
|
12
|
+
required:
|
|
13
|
+
- label
|
|
@@ -0,0 +1,50 @@
|
|
|
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/tiledNdArray).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
type: object
|
|
5
|
+
description: Object representing a multidimensional (>= 1D) array with named axes split up into sets of
|
|
6
|
+
linked NdArray documents
|
|
7
|
+
properties:
|
|
8
|
+
type:
|
|
9
|
+
const: TiledNdArray
|
|
10
|
+
dataType:
|
|
11
|
+
enum:
|
|
12
|
+
- float
|
|
13
|
+
- integer
|
|
14
|
+
- string
|
|
15
|
+
shape:
|
|
16
|
+
type: array
|
|
17
|
+
items:
|
|
18
|
+
type: number
|
|
19
|
+
minItems: 1
|
|
20
|
+
axisNames:
|
|
21
|
+
type: array
|
|
22
|
+
items:
|
|
23
|
+
type: string
|
|
24
|
+
minItems: 1
|
|
25
|
+
uniqueItems: true
|
|
26
|
+
tileSets:
|
|
27
|
+
type: array
|
|
28
|
+
minItems: 1
|
|
29
|
+
items:
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
tileShape:
|
|
33
|
+
type: array
|
|
34
|
+
items:
|
|
35
|
+
type:
|
|
36
|
+
- number
|
|
37
|
+
- 'null'
|
|
38
|
+
minItems: 1
|
|
39
|
+
urlTemplate:
|
|
40
|
+
type: string
|
|
41
|
+
description: RFC 6570 Level 1 URI template
|
|
42
|
+
required:
|
|
43
|
+
- tileShape
|
|
44
|
+
- urlTemplate
|
|
45
|
+
required:
|
|
46
|
+
- type
|
|
47
|
+
- dataType
|
|
48
|
+
- shape
|
|
49
|
+
- axisNames
|
|
50
|
+
- tileSets
|
|
@@ -0,0 +1,24 @@
|
|
|
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/tupleValuesAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Tuple-based axis
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: valuesAxisBase.yaml
|
|
7
|
+
- properties:
|
|
8
|
+
dataType:
|
|
9
|
+
const: tuple
|
|
10
|
+
values:
|
|
11
|
+
items:
|
|
12
|
+
description: A tuple of axis values (numbers or strings)
|
|
13
|
+
type: array
|
|
14
|
+
items:
|
|
15
|
+
type:
|
|
16
|
+
- number
|
|
17
|
+
- string
|
|
18
|
+
minItems: 2
|
|
19
|
+
coordinates: {}
|
|
20
|
+
required:
|
|
21
|
+
- dataType
|
|
22
|
+
- values
|
|
23
|
+
- coordinates
|
|
24
|
+
additionalProperties: false
|
|
@@ -0,0 +1,27 @@
|
|
|
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/valuesAxis).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
description: Validates any values-based axis
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: valuesAxisBase.yaml
|
|
7
|
+
- if:
|
|
8
|
+
not:
|
|
9
|
+
required:
|
|
10
|
+
- dataType
|
|
11
|
+
then:
|
|
12
|
+
$ref: primitiveValuesAxis.yaml
|
|
13
|
+
dependentSchemas:
|
|
14
|
+
dataType:
|
|
15
|
+
allOf:
|
|
16
|
+
- if:
|
|
17
|
+
properties:
|
|
18
|
+
dataType:
|
|
19
|
+
const: tuple
|
|
20
|
+
then:
|
|
21
|
+
$ref: tupleValuesAxis.yaml
|
|
22
|
+
- if:
|
|
23
|
+
properties:
|
|
24
|
+
dataType:
|
|
25
|
+
const: polygon
|
|
26
|
+
then:
|
|
27
|
+
$ref: polygonValuesAxis.yaml
|
|
@@ -0,0 +1,24 @@
|
|
|
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/valuesAxisBase).
|
|
3
|
+
# Do not edit by hand; re-run the script instead.
|
|
4
|
+
$comment: Base schema for values-based axis schemas
|
|
5
|
+
properties:
|
|
6
|
+
dataType:
|
|
7
|
+
type: string
|
|
8
|
+
not:
|
|
9
|
+
const: primitive
|
|
10
|
+
values:
|
|
11
|
+
type: array
|
|
12
|
+
minItems: 1
|
|
13
|
+
uniqueItems: true
|
|
14
|
+
coordinates:
|
|
15
|
+
type: array
|
|
16
|
+
items:
|
|
17
|
+
type: string
|
|
18
|
+
minItems: 2
|
|
19
|
+
bounds:
|
|
20
|
+
description: Optional axis bounds. Must be twice as long (and same data type) as "values"
|
|
21
|
+
type: array
|
|
22
|
+
minItems: 2
|
|
23
|
+
required:
|
|
24
|
+
- values
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- features
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
enum:
|
|
9
|
+
- FeatureCollection
|
|
10
|
+
features:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
$ref: ../geojson/featureGeoJSON.yaml
|
|
14
|
+
parameters:
|
|
15
|
+
description: list of the data parameters available in the collection
|
|
16
|
+
type: array
|
|
17
|
+
items:
|
|
18
|
+
$ref: parameter.yaml
|
|
19
|
+
links:
|
|
20
|
+
type: array
|
|
21
|
+
items:
|
|
22
|
+
$ref: ../../schemas/core/link.yaml
|
|
23
|
+
timeStamp:
|
|
24
|
+
description: This property indicates the time and date when the response was generated.
|
|
25
|
+
type: string
|
|
26
|
+
format: date-time
|
|
27
|
+
examples:
|
|
28
|
+
- '2017-08-17T08:05:32Z'
|
|
29
|
+
numberMatched:
|
|
30
|
+
$ref: ../../schemas/numberMatched.yaml
|
|
31
|
+
numberReturned:
|
|
32
|
+
$ref: ../../schemas/numberReturned.yaml
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
title: EDR GeoJSON Properties
|
|
3
|
+
description: Properties to describe existing EDR features -- may be real-world or virtual sampling features.
|
|
4
|
+
examples:
|
|
5
|
+
- datetime: 2018-02-12T00:00:00Z/2018-03-18T12:31:12Z
|
|
6
|
+
label: Monitoring site name
|
|
7
|
+
parameter-name:
|
|
8
|
+
- velocity
|
|
9
|
+
- temperature
|
|
10
|
+
edrqueryendpoint: "https://example.org/api/collections/collection/locations/location_123"
|
|
11
|
+
required:
|
|
12
|
+
- datetime
|
|
13
|
+
- parameter-name
|
|
14
|
+
- label
|
|
15
|
+
- edrqueryendpoint
|
|
16
|
+
properties:
|
|
17
|
+
datetime:
|
|
18
|
+
type: string
|
|
19
|
+
title: Date/time Domain
|
|
20
|
+
description: Either a date-time or a period string that adheres to RFC 3339. Indicates the time instant or period for which data are available from the EDR feature.
|
|
21
|
+
default: ''
|
|
22
|
+
examples:
|
|
23
|
+
- 2018-02-12T00:00:00Z/2018-03-18T12:31:12Z
|
|
24
|
+
parameter-name:
|
|
25
|
+
type: array
|
|
26
|
+
title: Available Parameters
|
|
27
|
+
description: Unique IDs of available parameters, this is the value used for querying the data and corresponds to an ID in the parameter metadata of the collection.
|
|
28
|
+
items:
|
|
29
|
+
type: string
|
|
30
|
+
title: Parameter ID list
|
|
31
|
+
description: Each entry should contain one parameter ID that can be used to query against the feature.
|
|
32
|
+
default: ''
|
|
33
|
+
examples:
|
|
34
|
+
- velocity
|
|
35
|
+
- temperature
|
|
36
|
+
label:
|
|
37
|
+
type: string
|
|
38
|
+
title: Label
|
|
39
|
+
description: A label such as a site name or other text to use on a link.
|
|
40
|
+
default: ''
|
|
41
|
+
examples:
|
|
42
|
+
- Site A
|
|
43
|
+
edrqueryendpoint:
|
|
44
|
+
type: string
|
|
45
|
+
title: EDR Query Endpoint
|
|
46
|
+
description: A URI identifying the query end point. May identify a specific location.
|
|
47
|
+
default: ''
|
|
48
|
+
examples:
|
|
49
|
+
- "https://example.org/api/collections/collection/locations/location_123d}"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
description: A definition of the quantity being measured.
|
|
3
|
+
properties:
|
|
4
|
+
id:
|
|
5
|
+
type: string
|
|
6
|
+
label:
|
|
7
|
+
$ref: ../i18n.yaml
|
|
8
|
+
description:
|
|
9
|
+
$ref: ../i18n.yaml
|
|
10
|
+
categories:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
id:
|
|
16
|
+
type: string
|
|
17
|
+
label:
|
|
18
|
+
$ref: ../i18n.yaml
|
|
19
|
+
description:
|
|
20
|
+
$ref: ../i18n.yaml
|
|
21
|
+
required:
|
|
22
|
+
- id
|
|
23
|
+
- label
|
|
24
|
+
minItems: 1
|
|
25
|
+
required:
|
|
26
|
+
- label
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
description: Represents metadata about the values of the coverage
|
|
3
|
+
properties:
|
|
4
|
+
id:
|
|
5
|
+
type: string
|
|
6
|
+
type:
|
|
7
|
+
description: Type of the parameter object, SHALL be "Parameter"
|
|
8
|
+
type: string
|
|
9
|
+
enum:
|
|
10
|
+
- Parameter
|
|
11
|
+
description:
|
|
12
|
+
$ref: ../i18n.yaml
|
|
13
|
+
observedProperty:
|
|
14
|
+
$ref: observedProperty.yaml
|
|
15
|
+
unit:
|
|
16
|
+
$ref: unit.yaml
|
|
17
|
+
categoryEncoding:
|
|
18
|
+
type: object
|
|
19
|
+
description: Maps IDs of categories in the observedProperty to range values
|
|
20
|
+
additionalProperties:
|
|
21
|
+
oneOf:
|
|
22
|
+
- type: integer
|
|
23
|
+
- type: array
|
|
24
|
+
items:
|
|
25
|
+
type: integer
|
|
26
|
+
required:
|
|
27
|
+
- type
|
|
28
|
+
- observedProperty
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
description: The units of measure
|
|
3
|
+
properties:
|
|
4
|
+
id:
|
|
5
|
+
type: string
|
|
6
|
+
label:
|
|
7
|
+
$ref: ../i18n.yaml
|
|
8
|
+
symbol:
|
|
9
|
+
oneOf:
|
|
10
|
+
- type: string
|
|
11
|
+
- type: object
|
|
12
|
+
properties:
|
|
13
|
+
type:
|
|
14
|
+
type: string
|
|
15
|
+
value:
|
|
16
|
+
type: string
|
|
17
|
+
required:
|
|
18
|
+
- type
|
|
19
|
+
- value
|
|
20
|
+
anyOf:
|
|
21
|
+
- required:
|
|
22
|
+
- label
|
|
23
|
+
- required:
|
|
24
|
+
- symbol
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- geometry
|
|
5
|
+
- properties
|
|
6
|
+
properties:
|
|
7
|
+
type:
|
|
8
|
+
type: string
|
|
9
|
+
enum:
|
|
10
|
+
- Feature
|
|
11
|
+
geometry:
|
|
12
|
+
oneOf:
|
|
13
|
+
- $ref: pointGeoJSON.yaml
|
|
14
|
+
- $ref: multipointGeoJSON.yaml
|
|
15
|
+
- $ref: linestringGeoJSON.yaml
|
|
16
|
+
- $ref: multilinestringGeoJSON.yaml
|
|
17
|
+
- $ref: polygonGeoJSON.yaml
|
|
18
|
+
- $ref: multipolygonGeoJSON.yaml
|
|
19
|
+
- $ref: geometrycollectionGeoJSON.yaml
|
|
20
|
+
properties:
|
|
21
|
+
$ref: ../edr-geojson/edrProperties.yaml
|
|
22
|
+
id:
|
|
23
|
+
oneOf:
|
|
24
|
+
- type: string
|
|
25
|
+
- type: integer
|
|
26
|
+
links:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
$ref: ../core/link.yaml
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- geometries
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
enum:
|
|
9
|
+
- GeometryCollection
|
|
10
|
+
geometries:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
oneOf:
|
|
14
|
+
- $ref: pointGeoJSON.yaml
|
|
15
|
+
- $ref: multipointGeoJSON.yaml
|
|
16
|
+
- $ref: linestringGeoJSON.yaml
|
|
17
|
+
- $ref: multilinestringGeoJSON.yaml
|
|
18
|
+
- $ref: polygonGeoJSON.yaml
|
|
19
|
+
- $ref: multipolygonGeoJSON.yaml
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- coordinates
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
enum:
|
|
9
|
+
- LineString
|
|
10
|
+
- LineStringM
|
|
11
|
+
- LineStringZ
|
|
12
|
+
- LineStringZM
|
|
13
|
+
coordinates:
|
|
14
|
+
type: array
|
|
15
|
+
items:
|
|
16
|
+
type: array
|
|
17
|
+
minItems: 2
|
|
18
|
+
items:
|
|
19
|
+
type: array
|
|
20
|
+
minItems: 2
|
|
21
|
+
maxItems: 4
|
|
22
|
+
items:
|
|
23
|
+
type: number
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- coordinates
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
enum:
|
|
9
|
+
- MultiLineString
|
|
10
|
+
coordinates:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
type: array
|
|
14
|
+
minItems: 2
|
|
15
|
+
items:
|
|
16
|
+
type: array
|
|
17
|
+
minItems: 2
|
|
18
|
+
items:
|
|
19
|
+
type: number
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- coordinates
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
enum:
|
|
9
|
+
- MultiPolygon
|
|
10
|
+
coordinates:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
type: array
|
|
14
|
+
items:
|
|
15
|
+
type: array
|
|
16
|
+
minItems: 4
|
|
17
|
+
items:
|
|
18
|
+
type: array
|
|
19
|
+
minItems: 2
|
|
20
|
+
items:
|
|
21
|
+
type: number
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- type
|
|
4
|
+
- coordinates
|
|
5
|
+
properties:
|
|
6
|
+
type:
|
|
7
|
+
type: string
|
|
8
|
+
enum:
|
|
9
|
+
- Polygon
|
|
10
|
+
coordinates:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
type: array
|
|
14
|
+
minItems: 4
|
|
15
|
+
items:
|
|
16
|
+
type: array
|
|
17
|
+
minItems: 2
|
|
18
|
+
items:
|
|
19
|
+
type: number
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type: integer
|
|
2
|
+
description: |-
|
|
3
|
+
The number of features in the feature collection.
|
|
4
|
+
|
|
5
|
+
A server may omit this information in a response, if the information
|
|
6
|
+
about the number of features is not known or difficult to compute.
|
|
7
|
+
|
|
8
|
+
If the value is provided, the value SHALL be identical to the number
|
|
9
|
+
of items in the "features" array.
|
|
10
|
+
minimum: 0
|
|
11
|
+
examples:
|
|
12
|
+
- 10
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
description: Represents logical groups of parameters
|
|
3
|
+
properties:
|
|
4
|
+
type:
|
|
5
|
+
description: Type of the parameter group object, SHALL be "ParameterGroup"
|
|
6
|
+
type: string
|
|
7
|
+
enum:
|
|
8
|
+
- ParameterGroup
|
|
9
|
+
id:
|
|
10
|
+
type: string
|
|
11
|
+
label:
|
|
12
|
+
$ref: i18n.yaml
|
|
13
|
+
description:
|
|
14
|
+
$ref: i18n.yaml
|
|
15
|
+
observedProperty:
|
|
16
|
+
$ref: observedProperty.yaml
|
|
17
|
+
members:
|
|
18
|
+
type: array
|
|
19
|
+
items:
|
|
20
|
+
type: string
|
|
21
|
+
minItems: 1
|
|
22
|
+
uniqueItems: true
|
|
23
|
+
required:
|
|
24
|
+
- type
|
|
25
|
+
- members
|
|
26
|
+
anyOf:
|
|
27
|
+
- required:
|
|
28
|
+
- label
|
|
29
|
+
- required:
|
|
30
|
+
- observedProperty
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- links
|
|
4
|
+
- instances
|
|
5
|
+
properties:
|
|
6
|
+
links:
|
|
7
|
+
type: array
|
|
8
|
+
items:
|
|
9
|
+
$ref: ../core/link.yaml
|
|
10
|
+
examples:
|
|
11
|
+
- href: https://example.org/edr/collections/the_collection_id/instances
|
|
12
|
+
hreflang: en
|
|
13
|
+
rel: self
|
|
14
|
+
type: application/json
|
|
15
|
+
- href: https://example.org/edr/collections/the_collection_id/instances?f=html
|
|
16
|
+
hreflang: en
|
|
17
|
+
rel: alternate
|
|
18
|
+
type: text/html
|
|
19
|
+
- href: https://example.org/edr/collections/the_collection_id/instances?f=xml
|
|
20
|
+
hreflang: en
|
|
21
|
+
rel: alternate
|
|
22
|
+
type: application/xml
|
|
23
|
+
instances:
|
|
24
|
+
type: array
|
|
25
|
+
items:
|
|
26
|
+
$ref: ../collections/collection.yaml
|