eodash_catalog 0.3.7__tar.gz → 0.3.8__tar.gz
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.
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.bumpversion.cfg +1 -1
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/Dockerfile +1 -1
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/PKG-INFO +1 -1
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/__about__.py +1 -1
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/stac_handling.py +7 -4
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.dockerignore +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.github/workflows/ci.yml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.github/workflows/python-publish.yml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.gitignore +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.vscode/extensions.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/.vscode/settings.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/LICENSE.txt +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/README.md +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/pyproject.toml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/requirements.txt +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/ruff.toml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/__init__.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/duration.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/endpoints.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/generate_indicators.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/sh_endpoint.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/thumbnails.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/src/eodash_catalog/utils.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/__init__.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/test-data/regional_forecast.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/test_generate.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/test_geoparquet.py +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-catalogs/testing-json.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-catalogs/testing.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_cmems.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_cog.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_geodb.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_geodb_locations.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_geojson.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_locations_processing.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_process.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_projection.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_sh_wms.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_sh_wms_locations.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_tif_demo_1_json.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_veda.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_veda_tiles.json +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_wms_no_time.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-indicators/test_indicator.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-layers/baselayers.yaml +0 -0
- {eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-layers/overlays.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eodash_catalog
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
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
|
|
@@ -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=
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_geodb_locations.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_projection.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_see_solar_energy.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_sh_wms_locations.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_tif_demo_1.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_tif_demo_1_json.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_tif_demo_2.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_veda_tiles.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.7 → eodash_catalog-0.3.8}/tests/testing-collections/test_wms_no_time.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|