openeo-gfmap 0.4.0__py3-none-any.whl → 0.4.2__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.
- openeo_gfmap/backend.py +1 -1
- openeo_gfmap/fetching/commons.py +12 -8
- {openeo_gfmap-0.4.0.dist-info → openeo_gfmap-0.4.2.dist-info}/METADATA +1 -1
- {openeo_gfmap-0.4.0.dist-info → openeo_gfmap-0.4.2.dist-info}/RECORD +6 -6
- {openeo_gfmap-0.4.0.dist-info → openeo_gfmap-0.4.2.dist-info}/WHEEL +0 -0
- {openeo_gfmap-0.4.0.dist-info → openeo_gfmap-0.4.2.dist-info}/licenses/LICENSE +0 -0
openeo_gfmap/backend.py
CHANGED
@@ -109,7 +109,7 @@ def fed_connection() -> openeo.Connection:
|
|
109
109
|
"""Performs a connection to the OpenEO federated backend using the oidc
|
110
110
|
authentication."""
|
111
111
|
return _create_connection(
|
112
|
-
url="
|
112
|
+
url="openeofed.dataspace.copernicus.eu/",
|
113
113
|
env_var_suffix="FED",
|
114
114
|
)
|
115
115
|
|
openeo_gfmap/fetching/commons.py
CHANGED
@@ -108,7 +108,6 @@ def _load_collection_hybrid(
|
|
108
108
|
return cube
|
109
109
|
|
110
110
|
|
111
|
-
# TODO; deprecated?
|
112
111
|
def _load_collection(
|
113
112
|
connection: openeo.Connection,
|
114
113
|
bands: list,
|
@@ -145,16 +144,21 @@ def _load_collection(
|
|
145
144
|
properties=load_collection_parameters,
|
146
145
|
)
|
147
146
|
elif fetch_type == FetchType.POINT:
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
147
|
+
if isinstance(spatial_extent, GeoJSON):
|
148
|
+
assert (
|
149
|
+
spatial_extent["type"] == "FeatureCollection"
|
150
|
+
), "Please provide a FeatureCollection type of GeoJSON"
|
151
|
+
elif isinstance(spatial_extent, str):
|
152
|
+
assert spatial_extent.startswith("https://") or spatial_extent.startswith(
|
153
|
+
"http://"
|
154
|
+
), "Please provide a valid URL or a path to a GeoJSON file."
|
155
|
+
else:
|
156
|
+
raise ValueError(
|
157
|
+
"Please provide a valid URL to a GeoParquet or GeoJSON file."
|
158
|
+
)
|
154
159
|
cube = load_collection_method(
|
155
160
|
connection=connection,
|
156
161
|
bands=bands,
|
157
|
-
spatial_extent=spatial_extent,
|
158
162
|
temporal_extent=temporal_extent,
|
159
163
|
properties=load_collection_parameters,
|
160
164
|
)
|
@@ -1,12 +1,12 @@
|
|
1
1
|
openeo_gfmap/__init__.py,sha256=2MxLAx_1KB9ApeAxZpxeSw_Rj1XYwOH2-XXiZoiF5Ps,595
|
2
|
-
openeo_gfmap/backend.py,sha256=
|
2
|
+
openeo_gfmap/backend.py,sha256=nQCIYtTLG1vlWj-SB-ozlkGZWMz5MiD073MAMY1hBtk,4051
|
3
3
|
openeo_gfmap/metadata.py,sha256=WlJ3zy78ff1E65HDbw7kOuYamqyvfV0BCNrv_ZvXX4Y,762
|
4
4
|
openeo_gfmap/spatial.py,sha256=y1Gk9yM1j2eod127Pthn7SKxY37EFbzvPX0znqHgnMw,1353
|
5
5
|
openeo_gfmap/temporal.py,sha256=qhKCgSoOc0CrscPTru-d7acaxsCVhftyYrb_8UVU1S4,583
|
6
6
|
openeo_gfmap/features/__init__.py,sha256=UtQUPnglF9uURn9FqtegnazuE4_CgQP6a2Cdx1TOuZ0,419
|
7
7
|
openeo_gfmap/features/feature_extractor.py,sha256=ApTCCbD1-S4VOOSEZh9i-Gqxso87xwe_z7CN35fP15A,14719
|
8
8
|
openeo_gfmap/fetching/__init__.py,sha256=KFDwqKTwXUDhFqPqeaIg5uCL2xp7lXmNzcbAph-EU1c,938
|
9
|
-
openeo_gfmap/fetching/commons.py,sha256=
|
9
|
+
openeo_gfmap/fetching/commons.py,sha256=uug-BfbySbCPfQAoeBOLjDFt6nOiV41Tmat8VDvGuBo,7871
|
10
10
|
openeo_gfmap/fetching/fetching.py,sha256=dHeOMzN6OPgD8YFfZtcCzEOwQqo47IeBgIdS2mrx3MY,3674
|
11
11
|
openeo_gfmap/fetching/generic.py,sha256=ojSO52cnLsWpC6FAnLRoXxfQmTiC839DzFH8MAok2B8,5851
|
12
12
|
openeo_gfmap/fetching/s1.py,sha256=Ek9Ek-GExyKdb-9Ijja6I-izOmVvPY2C9w9gyyGGjII,6360
|
@@ -34,7 +34,7 @@ openeo_gfmap/utils/intervals.py,sha256=V6l3ofww50fN_pvWC4NuGQ2ZsyGdhAlTZTiRcC0fo
|
|
34
34
|
openeo_gfmap/utils/netcdf.py,sha256=KkAAxnq-ZCMjDMd82638noYwxqNpMsnpiU04Q-qX26A,698
|
35
35
|
openeo_gfmap/utils/split_stac.py,sha256=asjT0jx6ic8GJFqqAisaWxOvQ_suSRv4sxyFOyHFvpI,3895
|
36
36
|
openeo_gfmap/utils/tile_processing.py,sha256=QZ9bi5tPmyTVyyNvFZgd26s5dSnMl1grTKq2veK1C90,2068
|
37
|
-
openeo_gfmap-0.4.
|
38
|
-
openeo_gfmap-0.4.
|
39
|
-
openeo_gfmap-0.4.
|
40
|
-
openeo_gfmap-0.4.
|
37
|
+
openeo_gfmap-0.4.2.dist-info/METADATA,sha256=TURwy7VhxuHZG3SbURicu6QTfMyBD5Fjhx5QEWnCfXQ,4322
|
38
|
+
openeo_gfmap-0.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
39
|
+
openeo_gfmap-0.4.2.dist-info/licenses/LICENSE,sha256=aUuGpjieWiscTNtyLcSaeVsJ4pb6J9c4wUq1bR0e4t4,11349
|
40
|
+
openeo_gfmap-0.4.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|