Skip to content

Commit af2f24f

Browse files
committed
Added DGGS dimension type
1 parent 1f17a13 commit af2f24f

2 files changed

Lines changed: 71 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010

1111
- Collections can be flagged as `experimental`
12+
- Collections: Added `dggs` dimension type to `cube:dimensions`, recommended name for dimensions of this type is `zone`.
1213

1314
### Deprecated
1415

openapi.yaml

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ paths:
14151415
example:
14161416
stac_version: 1.0.0
14171417
stac_extensions:
1418-
- https://stac-extensions.github.io/datacube/v2.2.0/schema.json
1418+
- https://stac-extensions.github.io/datacube/v2.4.0/schema.json
14191419
type: Collection
14201420
id: Sentinel-2
14211421
title: Sentinel-2 MSI L2A
@@ -4530,9 +4530,10 @@ components:
45304530
* `t` for the dimension of type `temporal`
45314531
* `bands` for dimensions of type `bands`
45324532
* `geometry` for dimensions of type `geometry`
4533+
* `zone` for the dimension of type `dggs`
45334534
45344535
This property REQUIRES to add a version of the data cube extension to the list
4535-
of `stac_extensions`, e.g. `https://stac-extensions.github.io/datacube/v2.2.0/schema.json`.
4536+
of `stac_extensions`, e.g. `https://stac-extensions.github.io/datacube/v2.4.0/schema.json`.
45364537
type: object
45374538
additionalProperties:
45384539
x-additionalPropertiesName: Dimension Name
@@ -4813,6 +4814,7 @@ components:
48134814
- temporal
48144815
- bands
48154816
- geometry
4817+
- dggs
48164818
- other
48174819
description:
48184820
$ref: '#/components/schemas/description'
@@ -4823,6 +4825,7 @@ components:
48234825
temporal: '#/components/schemas/dimension_temporal'
48244826
bands: '#/components/schemas/dimension_bands'
48254827
geometry: '#/components/schemas/dimension_geometry'
4828+
dggs: '#/components/schemas/dimension_dggs'
48264829
other: '#/components/schemas/dimension_other'
48274830
dimension_other:
48284831
allOf:
@@ -4898,11 +4901,63 @@ components:
48984901
properties:
48994902
values:
49004903
$ref: '#/components/schemas/collection_dimension_values'
4904+
dimension_dggs:
4905+
allOf:
4906+
- $ref: '#/components/schemas/dimension'
4907+
- title: Spatial DGGS Dimension
4908+
description: >-
4909+
A spatial dimension based on a Discrete Global Grid System (DGGS).
4910+
type: object
4911+
required:
4912+
- reference_system
4913+
properties:
4914+
extent:
4915+
allOf:
4916+
- $ref: '#/components/schemas/bbox'
4917+
description: >-
4918+
The spatial extent of the DGGS zones as a GeoJSON-style bounding
4919+
box: `[west, south, east, north]` or
4920+
`[west, south, minz, east, north, maxz]`.
4921+
values:
4922+
description: >-
4923+
An ordered list of DGGS zone identifiers, useful when
4924+
enumerating a known set of zones.
4925+
type: array
4926+
minItems: 1
4927+
items:
4928+
type: string
4929+
resolution:
4930+
type: integer
4931+
minimum: 0
4932+
description: >-
4933+
The DGGS refinement level used by the zone identifiers.
4934+
step:
4935+
type: integer
4936+
nullable: true
4937+
minimum: 1
4938+
description: >-
4939+
The spacing between refinement levels when multiple levels are
4940+
represented. Use `null` for irregular level spacing.
4941+
reference_system:
4942+
type: string
4943+
description: >-
4944+
Identifier of the DGGS reference system (DGGRS), preferably a
4945+
URI such as
4946+
`https://www.opengis.net/def/dggrs/OGC/1.0/HEALPix`.
4947+
example:
4948+
type: dggs
4949+
reference_system: https://www.opengis.net/def/dggrs/OGC/1.0/HEALPix
4950+
values:
4951+
- C1A
4952+
- C1B
4953+
- C1C
4954+
resolution: 6
4955+
step: 1
49014956
dimension_spatial:
49024957
allOf:
49034958
- $ref: '#/components/schemas/dimension'
49044959
- title: Spatial Dimension
4905-
description: A spatial (raster) dimension in one of the horizontal (x or y) or vertical (z) directions.
4960+
description: A spatial raster dimension in one of the horizontal (x or y) or vertical (z) directions.
49064961
type: object
49074962
required:
49084963
- axis
@@ -6125,6 +6180,7 @@ components:
61256180
Right now, it only allows to specify the dimension types and
61266181
adds for specific dimension types:
61276182
* axes for `spatial` dimensions in raster datacubes
6183+
* reference systems and resolution metadata for `dggs` dimensions
61286184
* geometry types for `geometry` dimensions in vector datacubes
61296185
type: array
61306186
items:
@@ -6146,6 +6202,17 @@ components:
61466202
minItems: 1
61476203
items:
61486204
$ref: '#/components/schemas/dimension_axis_xyz'
6205+
- title: Spatial (DGGS)
6206+
properties:
6207+
type:
6208+
type: string
6209+
enum:
6210+
- dggs
6211+
reference_system:
6212+
type: string
6213+
resolution:
6214+
type: integer
6215+
minimum: 0
61496216
- title: Spatial (vector)
61506217
properties:
61516218
type:

0 commit comments

Comments
 (0)