Catalog Collection
As described in the stac specification, the catalog contains collections which contain features.
All Collections
To get all collections and their features, the following query can be used:
query {
collections {
crs
description
features(bbox: [BBOX], dateTime: [DATETIME], offset: [OFFSET], limit: [LIMIT]) {
contents {
...CollectionFeature
}
returned
total
}
id
itemType
keywords
license
providers {
description
name
roles
url
}
title
}
}
Single Collection
If the id is known, the same as above can be queried for a single collection:
query {
collection(id: [COLLECTION_ID]) {
crs
description
features(bbox: [BBOX], dateTime: [DATETIME], offset: [OFFSET], limit: [LIMIT]) {
contents {
...CollectionFeature
}
returned
total
}
id
itemType
keywords
license
providers {
description
name
roles
url
}
title
}
}
Fragments
fragment CollectionFeature on FeatureItem {
assets {
samples {
description
href
name
roles
title
type
}
shapefile {
description
href
name
roles
title
type
}
thumbnail {
description
href
name
roles
title
type
}
}
bbox
geometry {
bbox
coordinates
type
}
id
properties {
data_type
dateTime
detailedGeometry {
bbox
coordinates
type
}
endDateTime
format
layerAddress {
...FeatureLayers
}
productCode
provider
referenceToRawOutput
sensorType
srs
startDateTime
title
year
}
type
}
fragment FeatureLayers on LayerAddress {
... on CoreLayer {
id
type
label
viewingMode
endpoint
}
... on LayerAddressWms {
id
type
label
viewingMode
endpoint
reference
bounds
datasetId
versions
imageFormat
}
... on LayerAddressWmts {
id
type
label
viewingMode
endpoint
reference
bounds
datasetId
imageFormat
}
... on LayerAddressOgc3DTiles {
id
endpoint
type
qualityFactor
viewingMode
bounds
}
... on LayerAddressHspc {
id
type
label
viewingMode
endpoint
}
}