Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cubedash/_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# These searches are much slower we're forced us to use ODC's own metadata table.
DEFAULT_RETURN_FULL_ITEMS = True

STAC_VERSION = "1.0.0"
STAC_VERSION = "1.1.0"

ItemLike = Union[pystac.Item, dict]

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.stacspec.org/v1.0.0/catalog-spec/json-schema/catalog.json#",
"$id": "https://schemas.stacspec.org/v1.1.0/catalog-spec/json-schema/catalog.json",
"title": "STAC Catalog Specification",
"description": "This object represents Catalogs in a SpatioTemporal Asset Catalog.",
"allOf": [
{
"$ref": "#/definitions/catalog"
},
{
"$ref": "../../item-spec/json-schema/common.json"
}
],
"definitions": {
"catalog": {
"title": "STAC Catalog",
"type": "object",
"$comment": "title and description is validated through the common metadata.",
"required": [
"stac_version",
"type",
Expand All @@ -23,7 +27,7 @@
"stac_version": {
"title": "STAC version",
"type": "string",
"const": "1.0.0"
"const": "1.1.0"
},
"stac_extensions": {
"title": "STAC extensions",
Expand All @@ -44,49 +48,8 @@
"type": "string",
"minLength": 1
},
"title": {
"title": "Title",
"type": "string"
},
"description": {
"title": "Description",
"type": "string",
"minLength": 1
},
"links": {
"title": "Links",
"type": "array",
"items": {
"$ref": "#/definitions/link"
}
}
}
},
"link": {
"type": "object",
"required": [
"rel",
"href"
],
"properties": {
"href": {
"title": "Link reference",
"type": "string",
"format": "iri-reference",
"minLength": 1
},
"rel": {
"title": "Link relation type",
"type": "string",
"minLength": 1
},
"type": {
"title": "Link type",
"type": "string"
},
"title": {
"title": "Link title",
"type": "string"
"$ref": "../../item-spec/json-schema/item.json#/definitions/links"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.stacspec.org/v1.0.0/collection-spec/json-schema/collection.json#",
"$id": "https://schemas.stacspec.org/v1.1.0/collection-spec/json-schema/collection.json",
"title": "STAC Collection Specification",
"description": "This object represents Collections in a SpatioTemporal Asset Catalog.",
"allOf": [
{
"$ref": "#/definitions/collection"
},
{
"$ref": "../../item-spec/json-schema/common.json"
}
],
"definitions": {
"collection": {
"title": "STAC Collection",
"description": "These are the fields specific to a STAC Collection. All other fields are inherited from STAC Catalog.",
"description": "These are the fields specific to a STAC Collection.",
"type": "object",
"$comment": "title, description, keywords, providers and license is validated through the common metadata.",
"required": [
"stac_version",
"type",
Expand All @@ -26,7 +30,7 @@
"stac_version": {
"title": "STAC version",
"type": "string",
"const": "1.0.0"
"const": "1.1.0"
},
"stac_extensions": {
"title": "STAC extensions",
Expand All @@ -47,64 +51,6 @@
"type": "string",
"minLength": 1
},
"title": {
"title": "Title",
"type": "string"
},
"description": {
"title": "Description",
"type": "string",
"minLength": 1
},
"keywords": {
"title": "Keywords",
"type": "array",
"items": {
"type": "string"
}
},
"license": {
"title": "Collection License Name",
"type": "string",
"pattern": "^[\\w\\-\\.\\+]+$"
},
"providers": {
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"title": "Organization name",
"type": "string"
},
"description": {
"title": "Organization description",
"type": "string"
},
"roles": {
"title": "Organization roles",
"type": "array",
"items": {
"type": "string",
"enum": [
"producer",
"licensor",
"processor",
"host"
]
}
},
"url": {
"title": "Organization homepage",
"type": "string",
"format": "iri"
}
}
}
},
"extent": {
"title": "Extents",
"type": "object",
Expand All @@ -123,18 +69,26 @@
"bbox": {
"title": "Spatial extents",
"type": "array",
"minItems": 1,
"oneOf": [
{
"minItems": 1,
"maxItems": 1
},
{
"minItems": 3
}
],
"items": {
"title": "Spatial extent",
"type": "array",
"oneOf": [
{
"minItems":4,
"maxItems":4
"minItems": 4,
"maxItems": 4
},
{
"minItems":6,
"maxItems":6
"minItems": 6,
"maxItems": 6
}
],
"items": {
Expand Down Expand Up @@ -177,46 +131,52 @@
"assets": {
"$ref": "../../item-spec/json-schema/item.json#/definitions/assets"
},
"links": {
"title": "Links",
"type": "array",
"items": {
"$ref": "#/definitions/link"
"item_assets": {
"additionalProperties": {
"allOf": [
{
"type": "object",
"minProperties": 2,
"properties": {
"href": {
"title": "Disallow href",
"not": {}
},
"title": {
"title": "Asset title",
"type": "string"
},
"description": {
"title": "Asset description",
"type": "string"
},
"type": {
"title": "Asset type",
"type": "string"
},
"roles": {
"title": "Asset roles",
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"$ref": "../../item-spec/json-schema/common.json"
}
]
}
},
"links": {
"$ref": "../../item-spec/json-schema/item.json#/definitions/links"
},
"summaries": {
"$ref": "#/definitions/summaries"
}
}
},
"link": {
"type": "object",
"required": [
"rel",
"href"
],
"properties": {
"href": {
"title": "Link reference",
"type": "string",
"format": "iri-reference",
"minLength": 1
},
"rel": {
"title": "Link relation type",
"type": "string",
"minLength": 1
},
"type": {
"title": "Link type",
"type": "string"
},
"title": {
"title": "Link title",
"type": "string"
}
}
},
"summaries": {
"type": "object",
"additionalProperties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.stacspec.org/v1.1.0/item-spec/json-schema/bands.json",
"title": "Bands Field",
"type": "object",
"properties": {
"bands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"allOf": [
{
"$ref": "common.json"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.stacspec.org/v1.1.0/item-spec/json-schema/basics.json",
"title": "Basic Descriptive Fields",
"type": "object",
"properties": {
"title": {
"title": "Title",
"description": "A human-readable title describing the entity.",
"type": "string"
},
"description": {
"title": "Description",
"description": "Detailed multi-line description to fully explain the entity.",
"type": "string",
"minLength": 1
},
"keywords": {
"title": "Keywords",
"description": "List of keywords describing the entity.",
"type": "array",
"items": {
"type": "string"
}
},
"roles": {
"title": "Roles",
"type": "array",
"items": {
"type": "string"
}
}
}
}
Loading