eodash_catalog 0.1.13__tar.gz → 0.1.14__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.1.13 → eodash_catalog-0.1.14}/.bumpversion.cfg +1 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/Dockerfile +1 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/PKG-INFO +1 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/__about__.py +1 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/generate_indicators.py +3 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/utils.py +1 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/test_generate.py +1 -1
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/.dockerignore +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/.github/workflows/ci.yml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/.github/workflows/python-publish.yml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/.gitignore +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/.vscode/extensions.json +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/.vscode/settings.json +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/LICENSE.txt +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/README.md +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/pyproject.toml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/requirements.txt +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/ruff.toml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/__init__.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/duration.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/endpoints.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/sh_endpoint.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/stac_handling.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/src/eodash_catalog/thumbnails.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/__init__.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/test-data/regional_forecast.json +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/test_geoparquet.py +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-catalogs/testing-json.json +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-catalogs/testing.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_locations_processing.json +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_tif_demo_1_json.json +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_wms_no_time.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-indicators/test_indicator.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-layers/baselayers.yaml +0 -0
- {eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/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.1.
|
|
3
|
+
Version: 0.1.14
|
|
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
|
|
@@ -39,6 +39,7 @@ from eodash_catalog.utils import (
|
|
|
39
39
|
Options,
|
|
40
40
|
RaisingThread,
|
|
41
41
|
add_single_item_if_collection_empty,
|
|
42
|
+
iter_len_at_least,
|
|
42
43
|
merge_bboxes,
|
|
43
44
|
read_config_file,
|
|
44
45
|
recursive_save,
|
|
@@ -180,8 +181,9 @@ def process_indicator_file(
|
|
|
180
181
|
# we assume that collection files can also be loaded directly
|
|
181
182
|
process_collection_file(catalog_config, file_path, parent_indicator, options)
|
|
182
183
|
add_collection_information(catalog_config, parent_indicator, indicator_config, True)
|
|
184
|
+
if iter_len_at_least(parent_indicator.get_items(recursive=True), 1):
|
|
185
|
+
parent_indicator.update_extent_from_items()
|
|
183
186
|
# get shared extent of all of the collections
|
|
184
|
-
# we do not want to use update_extent_from_items() because
|
|
185
187
|
# they might have OverwriteBBox and that would discard it for indicator
|
|
186
188
|
merged_bbox = merge_bboxes(
|
|
187
189
|
[
|
|
@@ -342,7 +342,7 @@ def add_single_item_if_collection_empty(collection: Collection) -> None:
|
|
|
342
342
|
else:
|
|
343
343
|
item = Item(
|
|
344
344
|
id=str(uuid.uuid4()),
|
|
345
|
-
bbox=[-180, -
|
|
345
|
+
bbox=[-180.0, -90.0, 180.0, 90.0],
|
|
346
346
|
properties={},
|
|
347
347
|
geometry=None,
|
|
348
348
|
datetime=datetime(1970, 1, 1, 0, 0, 0, tzinfo=pytztimezone("UTC")),
|
|
@@ -105,7 +105,7 @@ def test_collection_no_wms_has_a_single_item(catalog_output_folder):
|
|
|
105
105
|
with open(os.path.join(root_collection_path, "collection.json")) as fp:
|
|
106
106
|
collection_json = json.load(fp)
|
|
107
107
|
# test that custom bbox is set
|
|
108
|
-
assert [-180, -
|
|
108
|
+
assert [-180.0, -90.0, 180.0, 90.0] in collection_json["extent"]["spatial"]["bbox"]
|
|
109
109
|
# test that time interval is 1970-today
|
|
110
110
|
assert collection_json["extent"]["temporal"]["interval"][0][0] == start_date
|
|
111
111
|
assert (
|
|
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.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_CROPOMAT1.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_see_solar_energy.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_tif_demo_1.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_tif_demo_1_json.json
RENAMED
|
File without changes
|
{eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_tif_demo_2.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-collections/test_wms_no_time.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.1.13 → eodash_catalog-0.1.14}/tests/testing-indicators/test_indicator.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|