eodag 3.4.0__py3-none-any.whl → 3.4.1.post1__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.
- eodag/plugins/search/build_search_result.py +3 -0
- eodag/plugins/search/static_stac_search.py +2 -2
- eodag/utils/stac_reader.py +10 -6
- {eodag-3.4.0.dist-info → eodag-3.4.1.post1.dist-info}/METADATA +2 -2
- {eodag-3.4.0.dist-info → eodag-3.4.1.post1.dist-info}/RECORD +9 -9
- {eodag-3.4.0.dist-info → eodag-3.4.1.post1.dist-info}/WHEEL +1 -1
- {eodag-3.4.0.dist-info → eodag-3.4.1.post1.dist-info}/entry_points.txt +0 -0
- {eodag-3.4.0.dist-info → eodag-3.4.1.post1.dist-info}/licenses/LICENSE +0 -0
- {eodag-3.4.0.dist-info → eodag-3.4.1.post1.dist-info}/top_level.txt +0 -0
|
@@ -652,6 +652,9 @@ class ECMWFSearch(PostJsonSearch):
|
|
|
652
652
|
"missionEndDate", today().isoformat()
|
|
653
653
|
)
|
|
654
654
|
)
|
|
655
|
+
else:
|
|
656
|
+
keywords[START] = start
|
|
657
|
+
keywords[END] = end
|
|
655
658
|
|
|
656
659
|
def _get_product_type_queryables(
|
|
657
660
|
self, product_type: Optional[str], alias: Optional[str], filters: dict[str, Any]
|
|
@@ -46,7 +46,7 @@ logger = logging.getLogger("eodag.search.static_stac_search")
|
|
|
46
46
|
class StaticStacSearch(StacSearch):
|
|
47
47
|
"""Static STAC Catalog search plugin
|
|
48
48
|
|
|
49
|
-
This plugin first loads all STAC items found in the catalog, and converts them to
|
|
49
|
+
This plugin first loads all STAC items found in the catalog (or item), and converts them to
|
|
50
50
|
EOProducts using :class:`~eodag.plugins.search.qssearch.StacSearch`.
|
|
51
51
|
Then it uses crunchers to only keep products matching query parameters.
|
|
52
52
|
|
|
@@ -56,7 +56,7 @@ class StaticStacSearch(StacSearch):
|
|
|
56
56
|
:param provider: provider name
|
|
57
57
|
:param config: Search plugin configuration:
|
|
58
58
|
|
|
59
|
-
* :attr:`~eodag.config.PluginConfig.api_endpoint` (``str``) (**mandatory**): path to the catalog;
|
|
59
|
+
* :attr:`~eodag.config.PluginConfig.api_endpoint` (``str``) (**mandatory**): path to the catalog or item;
|
|
60
60
|
in contrast to the api_endpoint for other plugin types this can be a url or local system path.
|
|
61
61
|
* :attr:`~eodag.config.PluginConfig.max_connections` (``int``): Maximum number of concurrent
|
|
62
62
|
connections for HTTP requests; default: ``100``
|
eodag/utils/stac_reader.py
CHANGED
|
@@ -122,12 +122,13 @@ def fetch_stac_items(
|
|
|
122
122
|
# URI opener used by PySTAC internally, instantiated here
|
|
123
123
|
# to retrieve the timeout.
|
|
124
124
|
_text_opener = _TextOpener(timeout, ssl_verify)
|
|
125
|
-
pystac.StacIO.
|
|
125
|
+
stac_io = pystac.StacIO.default()
|
|
126
|
+
stac_io.read_text = _text_opener # type: ignore[assignment]
|
|
126
127
|
|
|
127
|
-
stac_obj = pystac.read_file(stac_path)
|
|
128
|
+
stac_obj = pystac.read_file(stac_path, stac_io=stac_io)
|
|
128
129
|
# Single STAC item
|
|
129
130
|
if isinstance(stac_obj, pystac.Item):
|
|
130
|
-
return [stac_obj.to_dict()]
|
|
131
|
+
return [stac_obj.to_dict(transform_hrefs=False)]
|
|
131
132
|
# STAC catalog
|
|
132
133
|
elif isinstance(stac_obj, pystac.Catalog):
|
|
133
134
|
return _fetch_stac_items_from_catalog(
|
|
@@ -152,7 +153,9 @@ def _fetch_stac_items_from_catalog(
|
|
|
152
153
|
if extensions:
|
|
153
154
|
extensions = extensions if isinstance(extensions, list) else [extensions]
|
|
154
155
|
if "single-file-stac" in extensions:
|
|
155
|
-
items = [
|
|
156
|
+
items = [
|
|
157
|
+
feature for feature in cat.to_dict(transform_hrefs=False)["features"]
|
|
158
|
+
]
|
|
156
159
|
return items
|
|
157
160
|
|
|
158
161
|
# Making the links absolutes allow for both relative and absolute links to be handled.
|
|
@@ -201,9 +204,10 @@ def fetch_stac_collections(
|
|
|
201
204
|
|
|
202
205
|
# URI opener used by PySTAC internally, instantiated here to retrieve the timeout.
|
|
203
206
|
_text_opener = _TextOpener(timeout, ssl_verify)
|
|
204
|
-
pystac.StacIO.
|
|
207
|
+
stac_io = pystac.StacIO.default()
|
|
208
|
+
stac_io.read_text = _text_opener # type: ignore[assignment]
|
|
205
209
|
|
|
206
|
-
stac_obj = pystac.read_file(stac_path)
|
|
210
|
+
stac_obj = pystac.read_file(stac_path, stac_io=stac_io)
|
|
207
211
|
if isinstance(stac_obj, pystac.Catalog):
|
|
208
212
|
return _fetch_stac_collections_from_catalog(
|
|
209
213
|
stac_obj, collection, max_connections, _text_opener
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eodag
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.1.post1
|
|
4
4
|
Summary: Earth Observation Data Access Gateway
|
|
5
5
|
Home-page: https://github.com/CS-SI/eodag
|
|
6
6
|
Author: CS GROUP - France
|
|
@@ -317,7 +317,7 @@ An eodag instance can be exposed through a STAC compliant REST api from the comm
|
|
|
317
317
|
|
|
318
318
|
.. code-block:: bash
|
|
319
319
|
|
|
320
|
-
docker run -p 5000:5000 --rm csspace/eodag-server:3.4.
|
|
320
|
+
docker run -p 5000:5000 --rm csspace/eodag-server:3.4.1
|
|
321
321
|
|
|
322
322
|
You can also browse over your STAC API server using `STAC Browser <https://github.com/radiantearth/stac-browser>`_.
|
|
323
323
|
Simply run:
|
|
@@ -49,14 +49,14 @@ eodag/plugins/download/http.py,sha256=Rg6NOcxKHSoDOzqi_nY9rzb_pJ-RrnVuevs4AqsS5u
|
|
|
49
49
|
eodag/plugins/download/s3rest.py,sha256=BYkKglGhTVyR0A-8ls5gLhWOPwc_DgB4aydj79wpqoM,14825
|
|
50
50
|
eodag/plugins/search/__init__.py,sha256=bBrl3TffoU1wVpaeXmTEIailoh9W6fla4IP-8SWqA9U,2019
|
|
51
51
|
eodag/plugins/search/base.py,sha256=nuCcxTH_ZU38x-0jd52dKCJ3HGKiaXmCVCMfZ1iVH6k,18602
|
|
52
|
-
eodag/plugins/search/build_search_result.py,sha256=
|
|
52
|
+
eodag/plugins/search/build_search_result.py,sha256=hPM_uzUT8-qG9-HRLKdUXLLVKhyXfsT58fHWAImkAFQ,56914
|
|
53
53
|
eodag/plugins/search/cop_marine.py,sha256=uqfJ3e7tyOUipT3iWyhNfvh8jO5XARkTeR2e3wddu9M,20162
|
|
54
54
|
eodag/plugins/search/creodias_s3.py,sha256=rBZf3Uza7z3VuBdoUJQ9kuufGgACKVsEvK3phUo7C7M,3379
|
|
55
55
|
eodag/plugins/search/csw.py,sha256=de8CNjz4bjEny27V0RXC7V8LRz0Ik3yqQVjTAc_JlyA,12548
|
|
56
56
|
eodag/plugins/search/data_request_search.py,sha256=yrKu3EXhn6Utyai3qv5NPnH-V4EuGIAIxw6XzJA4IIw,26715
|
|
57
57
|
eodag/plugins/search/qssearch.py,sha256=-2a8emR6TKDZk8lLvOUM61Oaz-uH8cIifVc926QtMbg,92564
|
|
58
58
|
eodag/plugins/search/stac_list_assets.py,sha256=OOCMyjD8XD-m39k0SyKMrRi4K8Ii5mOQsA6zSAeQDGI,3435
|
|
59
|
-
eodag/plugins/search/static_stac_search.py,sha256=
|
|
59
|
+
eodag/plugins/search/static_stac_search.py,sha256=CPynjpNw0gXa6g6hA2zSkbwhfgU-9IBCmJtknuhnFKk,10515
|
|
60
60
|
eodag/resources/ext_product_types.json,sha256=IiwdTc6S2tnUhdLMx_Fft_SXnnplhX6h0hkyRISxltM,3089810
|
|
61
61
|
eodag/resources/locations_conf_template.yml,sha256=_eBv-QKHYMIKhY0b0kp4Ee33RsayxN8LWH3kDXxfFSk,986
|
|
62
62
|
eodag/resources/product_types.yml,sha256=vN-VNxKmRbMmRfdjMI3Tc3vs66yhU3Oep8_v2AXWH9Y,409966
|
|
@@ -104,10 +104,10 @@ eodag/utils/repr.py,sha256=o6NhScogBPI69m83GsHh3hXONb9-byPfuWgJ1U39Kfw,5463
|
|
|
104
104
|
eodag/utils/requests.py,sha256=avNHKrOZ7Kp6lUA7u4kqupIth9MoirLzDsMrrmQDt4s,4560
|
|
105
105
|
eodag/utils/rest.py,sha256=a9tlG_Y9iQXLeyeLyecxFNbopGHV-8URecMSRs0UXu0,3348
|
|
106
106
|
eodag/utils/s3.py,sha256=2mspYgEYGA1IDbruMMDdJ2DoxyX3riSlV7PDIu7carg,7989
|
|
107
|
-
eodag/utils/stac_reader.py,sha256=
|
|
108
|
-
eodag-3.4.
|
|
109
|
-
eodag-3.4.
|
|
110
|
-
eodag-3.4.
|
|
111
|
-
eodag-3.4.
|
|
112
|
-
eodag-3.4.
|
|
113
|
-
eodag-3.4.
|
|
107
|
+
eodag/utils/stac_reader.py,sha256=8r6amio5EtwGF9iu9zHaGDz4oUPKKeXRuyTzPNakrO4,9406
|
|
108
|
+
eodag-3.4.1.post1.dist-info/licenses/LICENSE,sha256=4MAecetnRTQw5DlHtiikDSzKWO1xVLwzM5_DsPMYlnE,10172
|
|
109
|
+
eodag-3.4.1.post1.dist-info/METADATA,sha256=COziKqf4Rdk41x-49Y0Lu_KFpXWjj854n6ZwLl64e6c,15495
|
|
110
|
+
eodag-3.4.1.post1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
111
|
+
eodag-3.4.1.post1.dist-info/entry_points.txt,sha256=krdrBOQso6kAcSekV9ItEYAkE8syTC4Ev75bI781VgE,2561
|
|
112
|
+
eodag-3.4.1.post1.dist-info/top_level.txt,sha256=025IMTmVe5eDjIPP4KEFQKespOPMQdne4U4jOy8nftM,6
|
|
113
|
+
eodag-3.4.1.post1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|