Skip to content

Commit 5e85547

Browse files
committed
First draft for #173
1 parent 2a02c9e commit 5e85547

File tree

1 file changed

+151
-45
lines changed

1 file changed

+151
-45
lines changed

openapi.json

Lines changed: 151 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,8 @@
773773
"license",
774774
"extent",
775775
"links",
776-
"properties"
776+
"properties",
777+
"other_properties"
777778
],
778779
"properties": {
779780
"stac_version": {
@@ -806,8 +807,61 @@
806807
"links": {
807808
"$ref": "#/components/schemas/collection_links"
808809
},
810+
"other_properties": {
811+
"title": "STAC Varying Collection Properties",
812+
"description": "A list of all metadata properties, which don't have common values across the whole collection. Therefore it allows to specify a summary of the values as extent or set of values.",
813+
"type": "object",
814+
"additionalProperties": {
815+
"type": "object",
816+
"properties": {
817+
"extent": {
818+
"title": "STAC Varying Collection Property Extent",
819+
"description": "If the dimension consists of [ordinal](https://en.wikipedia.org/wiki/Level_of_measurement#Ordinal_scale) values, the extent (lower and upper bounds) of the values as two-dimensional array. Strings are only allowed for temporal extents, which are formatted according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). Use `null` for open intervals.",
820+
"type": "array",
821+
"minItems": 2,
822+
"maxItems": 2,
823+
"items": {
824+
"anyOf": [
825+
{
826+
"type": "number"
827+
},
828+
{
829+
"type": "string",
830+
"format": "date-time"
831+
}
832+
],
833+
"nullable": true
834+
}
835+
},
836+
"values": {
837+
"title": "STAC Varying Collection Property Values",
838+
"description": "If the property consists of [nominal](https://en.wikipedia.org/wiki/Level_of_measurement#Nominal_level), a set of all potential values can be specified. Only primitive data types allowed.",
839+
"type": "array",
840+
"items": {
841+
"anyOf": [
842+
{
843+
"type": "number"
844+
},
845+
{
846+
"type": "string"
847+
},
848+
{
849+
"type": "string",
850+
"format": "date-time"
851+
},
852+
{
853+
"type": "boolean"
854+
}
855+
],
856+
"nullable": true
857+
}
858+
}
859+
}
860+
}
861+
},
809862
"properties": {
810863
"title": "STAC Collection Properties",
864+
"description": "A list of all metadata properties, which are common across the whole collection.",
811865
"type": "object",
812866
"required": [
813867
"cube:dimensions"
@@ -1037,9 +1091,9 @@
10371091
},
10381092
"example": {
10391093
"stac_version": "0.6.2",
1040-
"id": "Sentinel-2A",
1041-
"title": "Sentinel-2A MSI L1C",
1042-
"description": "Sentinel-2A is a wide-swath, high-resolution, multi-spectral imaging mission supporting Copernicus Land Monitoring studies, including the monitoring of vegetation, soil and water cover, as well as observation of inland waterways and coastal areas.",
1094+
"id": "Sentinel-2",
1095+
"title": "Sentinel-2 MSI L2A",
1096+
"description": "Sentinel-2A is a wide-swath, high-resolution, multi-spectral imaging mission supporting Copernicus Land Monitoring studies.",
10431097
"license": "proprietary",
10441098
"keywords": [
10451099
"copernicus",
@@ -1140,108 +1194,160 @@
11401194
},
11411195
"sci:citation": "Copernicus Sentinel data [Year]",
11421196
"eo:epsg": 32632,
1143-
"eo:platform": "sentinel-2a",
1144-
"eo:constellation": "sentinel-2",
1197+
"eo:constellation": "Sentinel-2",
1198+
"eo:instrument": "MSI",
11451199
"eo:bands": [
11461200
{
11471201
"name": "B1",
11481202
"common_name": "coastal",
11491203
"center_wavelength": 4.439,
1150-
"gsd": 60,
1151-
"scale": 0.0001,
1152-
"offset": 0
1204+
"gsd": 60
11531205
},
11541206
{
11551207
"name": "B2",
11561208
"common_name": "blue",
11571209
"center_wavelength": 4.966,
1158-
"gsd": 10,
1159-
"scale": 0.0001,
1160-
"offset": 0
1210+
"gsd": 10
11611211
},
11621212
{
11631213
"name": "B3",
11641214
"common_name": "green",
11651215
"center_wavelength": 5.6,
1166-
"gsd": 10,
1167-
"scale": 0.0001,
1168-
"offset": 0
1216+
"gsd": 10
11691217
},
11701218
{
11711219
"name": "B4",
11721220
"common_name": "red",
11731221
"center_wavelength": 6.645,
1174-
"gsd": 10,
1175-
"scale": 0.0001,
1176-
"offset": 0
1222+
"gsd": 10
11771223
},
11781224
{
11791225
"name": "B5",
11801226
"center_wavelength": 7.039,
1181-
"gsd": 20,
1182-
"scale": 0.0001,
1183-
"offset": 0
1227+
"gsd": 20
11841228
},
11851229
{
11861230
"name": "B6",
11871231
"center_wavelength": 7.402,
1188-
"gsd": 20,
1189-
"scale": 0.0001,
1190-
"offset": 0
1232+
"gsd": 20
11911233
},
11921234
{
11931235
"name": "B7",
11941236
"center_wavelength": 7.825,
1195-
"gsd": 20,
1196-
"scale": 0.0001,
1197-
"offset": 0
1237+
"gsd": 20
11981238
},
11991239
{
12001240
"name": "B8",
12011241
"common_name": "nir",
12021242
"center_wavelength": 8.351,
1203-
"gsd": 10,
1204-
"scale": 0.0001,
1205-
"offset": 0
1243+
"gsd": 10
12061244
},
12071245
{
12081246
"name": "B8A",
12091247
"center_wavelength": 8.648,
1210-
"gsd": 20,
1211-
"scale": 0.0001,
1212-
"offset": 0
1248+
"gsd": 20
12131249
},
12141250
{
12151251
"name": "B9",
12161252
"center_wavelength": 9.45,
1217-
"gsd": 60,
1218-
"scale": 0.0001,
1219-
"offset": 0
1253+
"gsd": 60
12201254
},
12211255
{
12221256
"name": "B10",
12231257
"center_wavelength": 1.3735,
1224-
"gsd": 60,
1225-
"scale": 0.0001,
1226-
"offset": 0
1258+
"gsd": 60
12271259
},
12281260
{
12291261
"name": "B11",
12301262
"common_name": "swir16",
12311263
"center_wavelength": 1.6137,
1232-
"gsd": 20,
1233-
"scale": 0.0001,
1234-
"offset": 0
1264+
"gsd": 20
12351265
},
12361266
{
12371267
"name": "B12",
12381268
"common_name": "swir22",
12391269
"center_wavelength": 2.2024,
1240-
"gsd": 20,
1241-
"scale": 0.0001,
1242-
"offset": 0
1270+
"gsd": 20
12431271
}
12441272
]
1273+
},
1274+
"other_properties": {
1275+
"eo:platform": {
1276+
"values": [
1277+
"Sentinel-2A",
1278+
"Sentinel-2B"
1279+
]
1280+
},
1281+
"eo:epsg": {
1282+
"values": [
1283+
32601,
1284+
32602,
1285+
32603,
1286+
32604,
1287+
32605,
1288+
32606,
1289+
32607,
1290+
32608,
1291+
32609,
1292+
32610,
1293+
32611,
1294+
32612,
1295+
32613,
1296+
32614,
1297+
32615,
1298+
32616,
1299+
32617,
1300+
32618,
1301+
32619,
1302+
32620,
1303+
32621,
1304+
32622,
1305+
32623,
1306+
32624,
1307+
32625,
1308+
32626,
1309+
32627,
1310+
32628,
1311+
32629,
1312+
32630,
1313+
32631,
1314+
32632,
1315+
32633,
1316+
32634,
1317+
32635,
1318+
32636,
1319+
32637,
1320+
32638,
1321+
32639,
1322+
32640,
1323+
32641,
1324+
32642,
1325+
32643,
1326+
32644,
1327+
32645,
1328+
32646,
1329+
32647,
1330+
32648,
1331+
32649,
1332+
32650,
1333+
32651,
1334+
32652,
1335+
32653,
1336+
32654,
1337+
32655,
1338+
32656,
1339+
32657,
1340+
32658,
1341+
32659,
1342+
32660
1343+
]
1344+
},
1345+
"eo:cloud_cover": {
1346+
"extent": [
1347+
0,
1348+
100
1349+
]
1350+
}
12451351
}
12461352
}
12471353
}

0 commit comments

Comments
 (0)