openEO API 1.2 feature:
New endpoint for metadata filters (queryables): /collections/{collection_id}/queryables. Also adds a new rel type to the collection links. Open-EO/openeo-api#396
Lacking anything better, client now leverages "summaries" which is incomplete, and raises warning if there is no match
|
if properties: |
|
summaries = metadata and metadata.get("summaries") or {} |
|
undefined_properties = set(properties.keys()).difference(summaries.keys()) |
|
if undefined_properties: |
|
warnings.warn( |
|
f"{collection_id} property filtering with properties that are undefined " |
|
f"in the collection metadata (summaries): {', '.join(undefined_properties)}.", |
|
stacklevel=2, |
|
) |
|
arguments["properties"] = { |
|
prop: build_child_callback(pred, parent_parameters=["value"]) for prop, pred in properties.items() |
|
} |
related: #424 Open-EO/openeo-geopyspark-driver#536 Open-EO/openeo-api#396
openEO API 1.2 feature:
Lacking anything better, client now leverages "summaries" which is incomplete, and raises warning if there is no match
openeo-python-client/openeo/rest/datacube.py
Lines 175 to 186 in 7ebaff2
related: #424 Open-EO/openeo-geopyspark-driver#536 Open-EO/openeo-api#396