Skip to content

Commit

Permalink
deploy: 014076d
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Dec 18, 2024
1 parent 83b846c commit de1bc09
Showing 1 changed file with 166 additions and 0 deletions.
166 changes: 166 additions & 0 deletions v1.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stac-extensions.github.io/sat/v1.1.0/schema.json",
"title": "Satellite Extension",
"description": "STAC Sat Extension to a STAC Item.",
"type": "object",
"required": [
"stac_extensions"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/sat/v1.1.0/schema.json"
}
}
},
"oneOf": [
{
"$comment": "This is the schema for STAC Items.",
"type": "object",
"required": [
"type",
"properties",
"assets"
],
"properties": {
"type": {
"const": "Feature"
},
"properties": {
"allOf": [
{
"anyOf": [
{
"required": [
"sat:platform_international_designator"
]
},
{
"required": [
"sat:orbit_state"
]
},
{
"required": [
"sat:absolute_orbit"
]
},
{
"required": [
"sat:relative_orbit"
]
},
{
"required": [
"sat:anx_datetime"
]
},
{
"required": [
"sat:orbit_cycle"
]
},
{
"required": [
"sat:orbit_state_vectors"
]
}
]
},
{
"$ref": "#/definitions/fields"
}
]
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
}
},
{
"$comment": "This is the schema for STAC Collections.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "Collection"
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
},
"item_assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
}
}
],
"definitions": {
"fields": {
"type": "object",
"properties": {
"sat:platform_international_designator": {
"type": "string"
},
"sat:orbit_state": {
"title": "Orbit State",
"type": "string",
"enum": [
"ascending",
"descending",
"geostationary"
]
},
"sat:absolute_orbit": {
"type": "integer",
"minimum": 1
},
"sat:relative_orbit": {
"type": "integer",
"minimum": 1
},
"sat:anx_datetime": {
"type": "string",
"format": "date-time"
},
"sat:orbit_cycle": {
"type": "integer",
"minimum": 1
},
"sat:orbit_state_vectors": {
"type": "object",
"$comment": "The key is a date-time string, and the value is an array of numbers.",
"patternProperties": {
"^(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))$": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 6,
"maxItems": 9
}
},
"additionalProperties": false
}
},
"patternProperties": {
"^(?!sat:)": {
"$comment": "Do not allow unspecified fields prefixed with sat:"
}
},
"additionalProperties": false
}
}
}

0 comments on commit de1bc09

Please sign in to comment.