Skip to content

Commit

Permalink
Merge pull request #21 from eodash/colorlegend
Browse files Browse the repository at this point in the history
Feat: Implementation of Colorlegend information
  • Loading branch information
santilland authored Oct 7, 2024
2 parents fcb97dd + 348607b commit 77646a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/eodash_catalog/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ def process_WCS_rasdaman_Endpoint(
LOGGER.warn(f"NO datetimes returned for collection: {endpoint_config['CoverageId']}!")

add_collection_information(catalog_config, collection, collection_config)
# if not coll:
# raise ValueError(f"Collection {collection_id} not found in endpoint {endpoint_config}")
# item_id = endpoint_config.get("CollectionId", "datacube")
# item = coll.get_item(item_id)
return collection


Expand Down
2 changes: 2 additions & 0 deletions src/eodash_catalog/stac_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ def add_collection_information(
roles=["metadata"],
),
)
if "Colorlegend" in collection_config:
collection.extra_fields["eox:colorlegend"] = collection_config["Colorlegend"]


def add_base_overlay_info(
Expand Down

0 comments on commit 77646a9

Please sign in to comment.