eodash_catalog 0.3.7__py3-none-any.whl → 0.3.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of eodash_catalog might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Daniel Santillan <daniel.santillan@eox.at>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.3.7"
4
+ __version__ = "0.3.9"
@@ -20,6 +20,7 @@ from structlog import get_logger
20
20
 
21
21
  from eodash_catalog.sh_endpoint import get_SH_token
22
22
  from eodash_catalog.stac_handling import (
23
+ add_base_overlay_info,
23
24
  add_collection_information,
24
25
  add_example_info,
25
26
  add_process_info_child_collection,
@@ -213,6 +214,8 @@ def handle_STAC_based_endpoint(
213
214
  location["OverwriteBBox"],
214
215
  ]
215
216
  )
217
+ add_collection_information(catalog_config, collection, collection_config)
218
+ add_base_overlay_info(collection, catalog_config, collection_config)
216
219
  update_extents_from_collection_children(root_collection)
217
220
  else:
218
221
  bbox = None
@@ -464,6 +467,8 @@ def handle_SH_WMS_endpoint(
464
467
  LOGGER.warn(f"NO datetimes configured for collection: {collection_config['Name']}!")
465
468
  add_visualization_info(collection, collection_config, endpoint_config)
466
469
  add_process_info_child_collection(collection, catalog_config, collection_config)
470
+ add_collection_information(catalog_config, collection, collection_config)
471
+ add_base_overlay_info(collection, catalog_config, collection_config)
467
472
  update_extents_from_collection_children(root_collection)
468
473
  else:
469
474
  # if locations are not provided, treat the collection as a
@@ -910,6 +915,7 @@ def handle_GeoDB_endpoint(
910
915
  link.extra_fields["country"] = country
911
916
  link.extra_fields["name"] = city
912
917
  add_collection_information(catalog_config, locations_collection, collection_config)
918
+ add_base_overlay_info(locations_collection, catalog_config, collection_config)
913
919
 
914
920
  if "yAxis" not in collection_config:
915
921
  # fetch yAxis and store it to data, preventing need to save it per dataset in yml
@@ -421,6 +421,7 @@ def process_collection_file(
421
421
  add_collection_information(catalog_config, parent_collection, collection_config, True)
422
422
  add_process_info(parent_collection, catalog_config, collection_config)
423
423
  update_extents_from_collection_children(parent_collection)
424
+ add_base_overlay_info(parent_collection, catalog_config, collection_config)
424
425
  # Fill summaries for locations
425
426
  parent_collection.summaries = Summaries(
426
427
  {
@@ -307,18 +307,21 @@ def add_collection_information(
307
307
  ),
308
308
  )
309
309
  if collection_config.get("Image"):
310
+ # Check if absolute URL or relative path
311
+ if collection_config["Image"].startswith("http"):
312
+ image_url = collection_config["Image"]
313
+ else:
314
+ image_url = f'{catalog_config["assets_endpoint"]}/{collection_config["Image"]}'
310
315
  collection.add_asset(
311
316
  "thumbnail",
312
317
  Asset(
313
- href=f'{catalog_config["assets_endpoint"]}/{collection_config["Image"]}',
318
+ href=image_url,
314
319
  media_type="image/png",
315
320
  roles=["thumbnail"],
316
321
  ),
317
322
  )
318
323
  # Bubble up thumbnail to extra fields
319
- collection.extra_fields["thumbnail"] = (
320
- f'{catalog_config["assets_endpoint"]}/' f'{collection_config["Image"]}'
321
- )
324
+ collection.extra_fields["thumbnail"] = (image_url)
322
325
  # Add extra fields to collection if available
323
326
  add_extra_fields(collection, collection_config, is_root_collection)
324
327
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eodash_catalog
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: This package is intended to help create a compatible STAC catalog for the eodash dashboard client. It supports configuration of multiple endpoint types for information extraction.
5
5
  Project-URL: Documentation, https://github.com/eodash/eodash_catalog#readme
6
6
  Project-URL: Issues, https://github.com/eodash/eodash_catalog/issues
@@ -0,0 +1,14 @@
1
+ eodash_catalog/__about__.py,sha256=SttQT5UJajcKv983PRXXlp4Lr9gewdOnLLA0uTJCqhI,137
2
+ eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
3
+ eodash_catalog/duration.py,sha256=TBG7v1lCpbYowADK5uJ2M8kPxsvQneFAFi1NIE26dy4,10754
4
+ eodash_catalog/endpoints.py,sha256=w1h-1FkgQxH7Sdgf2T1HP5GYbeCNnbSg3bVl9LcLJJY,61684
5
+ eodash_catalog/generate_indicators.py,sha256=YuB_Nsmya9dXzsOdS26LyObfyjKLvfv_B2L6n43z4R4,22418
6
+ eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
7
+ eodash_catalog/stac_handling.py,sha256=ZBk4AXtBNZ0Trr_oszhFGo8ypbGu3ox3KqfIVpc7ZuQ,25999
8
+ eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
9
+ eodash_catalog/utils.py,sha256=X40eQNRq8kh7ZATofX12V9EtUpMRdTTfkozBdqkKMJU,23746
10
+ eodash_catalog-0.3.9.dist-info/METADATA,sha256=WKe1AUTdUnNvxDtHduUhiTA2k7XHmKjNVu18-Apt8Dg,3019
11
+ eodash_catalog-0.3.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ eodash_catalog-0.3.9.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
13
+ eodash_catalog-0.3.9.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
14
+ eodash_catalog-0.3.9.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- eodash_catalog/__about__.py,sha256=JaxzJ65twSrbZXD5eQncQQZirlgAGhGZNFm-619pdek,137
2
- eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
3
- eodash_catalog/duration.py,sha256=TBG7v1lCpbYowADK5uJ2M8kPxsvQneFAFi1NIE26dy4,10754
4
- eodash_catalog/endpoints.py,sha256=lxSy9Ai9UNPt5y3qdFzkOUxhU9JnfGLs50CsTNAZjo8,61236
5
- eodash_catalog/generate_indicators.py,sha256=BoCOtBZYbJA_vRjkwyUYWuIJH91Ddo9RP7Jwzzf4xhU,22334
6
- eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
7
- eodash_catalog/stac_handling.py,sha256=xMhUK_gvijs6tL-1ecg28DtWBo4msd5NTYZpYtt7FHo,25877
8
- eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
9
- eodash_catalog/utils.py,sha256=X40eQNRq8kh7ZATofX12V9EtUpMRdTTfkozBdqkKMJU,23746
10
- eodash_catalog-0.3.7.dist-info/METADATA,sha256=x8sCCZ71Q1ht5VrbShTTn_UjHpJoAEaredRg7el_Qf0,3019
11
- eodash_catalog-0.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- eodash_catalog-0.3.7.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
13
- eodash_catalog-0.3.7.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
14
- eodash_catalog-0.3.7.dist-info/RECORD,,