STAC
Search STAC items with full-featured filtering.
retrieve items matching filters. Intended as the standard, full-featured query API.
This method is mandatory to implement if GET /search is implemented. If this endpoint is implemented on a server, it is required to add a link referring to this endpoint with rel set to search and method set to POST to the links array in GET /.
post/search
Request
- Base URLhttps://geoservice.dlr.de/eoc/ogc/stac/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"bbox": [
-110,
39.5,
-105,
40.5
],
"datetime": "2018-02-12T00:00:00Z/2018-03-18T12:31:12Z",
"limit": 10,
"sortby": [
{
"field": "properties.eo:cloud_cover",
"direction": "asc"
},
{
"field": "id",
"direction": "desc"
}
],
"fields": {
"include": [
"id",
"properties.eo:cloud_cover"
],
"exclude": [
"geometry",
"properties.datetime"
]
},
"query": "{\"eo:cloud_cover\":{\"value\":\"properties.eo:cloud_cover >= 0 && properties.eo:cloud_cover < 10\",\"summary\":\"Cloud Cover is between 0 and 10 (exclusive)\"},\"datetime\":{\"value\":\"(properties.datetime >= 2019-01-01T00:00:00Z && properties.datetime < 2019-01-02T00:00:00Z) || (properties.datetime >= 2019-02-01T00:00:00Z && properties.datetime < 2019-02-02T00:00:00Z)\",\"summary\":\"Datetime is either on the first day of January or first day of February 2019\"},\"gsd\":{\"value\":\"properties.gsd < 10\",\"summary\":\"GSD (resolution) is less than 10 meters\"}}"
}Response
A feature collection.
Example response
{
"features": [
{
"stac_version": "0.9.0",
"stac_extensions": [
"eo",
"view",
"https://example.com/cs-extension/1.0/schema.json"
],
"type": "Feature",
"id": "CS3-20160503_132131_05",
"bbox": [
-122.59750209,
37.48803556,
-122.2880486,
37.613537207
],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-122.308150179,
37.488035566
],
[
-122.597502109,
37.538869539
],
[
-122.576687533,
37.613537207
],
[
-122.2880486,
37.562818007
],
[
-122.308150179,
37.488035566
]
]
]
},
"properties": {
"datetime": "2016-05-03T13:22:30.040Z",
"title": "A CS3 item",
"license": "PDDL-1.0",
"providers": [
{
"name": "CoolSat",
"roles": [
"producer",
"licensor"
],
"url": "https://cool-sat.com/"
}
],
"view:sun_azimuth": 168.7,
"eo:cloud_cover": 0.12,
"view:off_nadir": 1.4,
"platform": "coolsat2",
"instruments": [
"cool_sensor_v1"
],
"eo:bands": [],
"view:sun_elevation": 33.4,
"eo:gsd": 0.512
},
"collection": "CS3",
"links": [
{
"rel": "self",
"href": "http://cool-sat.com/collections/CS3/items/20160503_132130_04"
},
{
"rel": "root",
"href": "http://cool-sat.com/collections"
},
{
"rel": "parent",
"href": "http://cool-sat.com/collections/CS3"
},
{
"rel": "collection",
"href": "http://cool-sat.com/collections/CS3"
}
],
"assets": {
"analytic": {
"href": "http://cool-sat.com/static-catalog/CS3/20160503_132130_04/analytic.tif",
"title": "4-Band Analytic"
},
"thumbnail": {
"href": "http://cool-sat.com/static-catalog/CS3/20160503_132130_04/thumbnail.png",
"title": "Thumbnail"
}
}
}
],
"links": [
{
"rel": "next",
"href": "http://api.cool-sat.com/search?next=ANsXtp9mrqN0yrKWhf-y2PUpHRLQb1GT-mtxNcXou8TwkXhi1Jbk"
}
],
"context": {
"returned": 1,
"limit": 5,
"matched": 314159
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.