Skip to content

Commit

Permalink
deploy: 72590aa
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Aug 9, 2024
0 parents commit 2ffddbf
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
3 changes: 3 additions & 0 deletions v0.2.0/optical-ar/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
3 changes: 3 additions & 0 deletions v0.2.0/optical-nlsr/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
23 changes: 23 additions & 0 deletions v0.2.0/optical-sr/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stac-extensions.github.io/ceos-ard/v0.2.0/optical-sr/schema.json",
"title": "CEOS-ARD Extension",
"description": "STAC CEOS-ARD Profile for Optical SR for STAC Items.",
"type": "object",
"required": [
"stac_extensions",
"type"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/ceos-ard/v0.2.0/optical-sr/schema.json"
},
"stac_extensions": {
"type": "string",
"const": "Feature"
}
}
}
}
3 changes: 3 additions & 0 deletions v0.2.0/optical-st/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
179 changes: 179 additions & 0 deletions v0.2.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stac-extensions.github.io/ceos-ard/v0.2.0/schema.json",
"title": "CEOS-ARD Extension",
"description": "STAC CEOS-ARD Extension for STAC Items and STAC Collections.",
"type": "object",
"required": [
"stac_extensions"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/ceos-ard/v0.2.0/schema.json"
}
}
},
"oneOf": [
{
"$comment": "This is the schema for STAC Items.",
"type": "object",
"required": [
"type",
"properties",
"assets"
],
"properties": {
"type": {
"const": "Feature"
},
"properties": {
"$comment": "Require fields here for Item Properties.",
"required": [
"ceosard:type",
"ceosard:specification",
"ceosard:specification_version"
],
"allOf": [
{
"$ref": "#/definitions/fields"
}
]
},
"links": {
"$ref": "#/definitions/links"
}
}
},
{
"$comment": "This is the schema for STAC Collections.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "Collection"
}
},
"anyOf": [
{
"$comment": "This is the schema for the top-level fields in a Collection.",
"required": [
"ceosard:type",
"ceosard:specification",
"ceosard:specification_version"
],
"allOf": [
{
"$ref": "#/definitions/fields"
}
],
"properties": {
"links": {
"$ref": "#/definitions/links"
}
}
},
{
"$comment": "This is the schema for the fields in Summaries. By default, only checks the existence of the properties, but not the schema of the summaries.",
"required": [
"summaries"
],
"properties": {
"summaries": {
"anyOf": [
{"required": ["ceosard:type"]},
{"required": ["ceosard:specification"]},
{"required": ["ceosard:specification_version"]}
]
}
}
}
]
}
],
"definitions": {
"fields": {
"type": "object",
"properties": {
"ceosard:type": {
"type": "string"
},
"ceosard:specification": {
"type": "string"
},
"ceosard:specification_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+(.\\d+)?$"
}
},
"patternProperties": {
"^(?!ceosard:)": {
"$comment": "Above, change `ceosard` to the prefix of this extension"
}
},
"additionalProperties": false,
"oneOf": [
{
"properties": {
"ceosard:type": {
"type": "string",
"const": "optical"
},
"ceosard:specification": {
"type": "string",
"enum": [
"SR",
"ST",
"AR",
"NLSR"
]
}
}
},
{
"properties": {
"ceosard:type": {
"type": "string",
"const": "radar"
},
"ceosard:specification": {
"type": "string",
"enum": [
"NRB",
"POL",
"ORB",
"GSLC"
]
}
}
}
]
},
"links": {
"type": "array",
"contains": {
"type": "object",
"required": [
"rel",
"href"
],
"properties": {
"rel": {
"type": "string",
"const": "ceos-ard-specification"
},
"type": {
"type": "string",
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
}
}
}
}
}
}

0 comments on commit 2ffddbf

Please sign in to comment.