eodash_catalog 0.0.5__py3-none-any.whl → 0.0.7__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.
- eodash_catalog/__about__.py +1 -1
- eodash_catalog/generate_indicators.py +21 -1
- eodash_catalog/utils.py +2 -2
- {eodash_catalog-0.0.5.dist-info → eodash_catalog-0.0.7.dist-info}/METADATA +1 -1
- eodash_catalog-0.0.7.dist-info/RECORD +11 -0
- eodash_catalog-0.0.5.dist-info/RECORD +0 -11
- {eodash_catalog-0.0.5.dist-info → eodash_catalog-0.0.7.dist-info}/WHEEL +0 -0
- {eodash_catalog-0.0.5.dist-info → eodash_catalog-0.0.7.dist-info}/entry_points.txt +0 -0
- {eodash_catalog-0.0.5.dist-info → eodash_catalog-0.0.7.dist-info}/licenses/LICENSE.txt +0 -0
eodash_catalog/__about__.py
CHANGED
|
@@ -234,6 +234,9 @@ def process_collection_file(config, file_path, catalog, options):
|
|
|
234
234
|
handle_WMS_endpoint(config, resource, data, catalog)
|
|
235
235
|
elif resource["Name"] == "GeoDB Vector Tiles":
|
|
236
236
|
handle_GeoDB_Tiles_endpoint(config, resource, data, catalog)
|
|
237
|
+
elif resource["Name"] == "JAXA_WMTS_PALSAR":
|
|
238
|
+
# somewhat one off creation of individual WMTS layers as individual items
|
|
239
|
+
handle_WMS_endpoint(config, resource, data, catalog, wmts=True)
|
|
237
240
|
elif resource["Name"] == "Collection-only":
|
|
238
241
|
handle_collection_only(config, resource, data, catalog)
|
|
239
242
|
else:
|
|
@@ -359,7 +362,9 @@ def handle_WMS_endpoint(config, endpoint, data, catalog, wmts=False):
|
|
|
359
362
|
# have to process full service capabilities XML
|
|
360
363
|
capabilities_url = endpoint["EndPoint"]
|
|
361
364
|
spatial_extent, times = retrieveExtentFromWMSWMTS(
|
|
362
|
-
capabilities_url, endpoint["LayerId"],
|
|
365
|
+
capabilities_url, endpoint["LayerId"],
|
|
366
|
+
version=endpoint.get('Version', '1.1.1'),
|
|
367
|
+
wmts=wmts,
|
|
363
368
|
)
|
|
364
369
|
# Create an item per time to allow visualization in stac clients
|
|
365
370
|
if len(times) > 0 and not endpoint.get("Disable_Items"):
|
|
@@ -1043,6 +1048,21 @@ def add_visualization_info(stac_object, data, endpoint, file_url=None, time=None
|
|
|
1043
1048
|
extra_fields=extra_fields,
|
|
1044
1049
|
)
|
|
1045
1050
|
)
|
|
1051
|
+
elif endpoint["Name"] == "JAXA_WMTS_PALSAR":
|
|
1052
|
+
target_url = "%s" % (endpoint.get("EndPoint"),)
|
|
1053
|
+
# custom time just for this special case as a default for collection wmts
|
|
1054
|
+
extra_fields = {
|
|
1055
|
+
"wmts:layer": endpoint.get("LayerId").replace("{time}", time or "2017")
|
|
1056
|
+
}
|
|
1057
|
+
stac_object.add_link(
|
|
1058
|
+
Link(
|
|
1059
|
+
rel="wmts",
|
|
1060
|
+
target=target_url,
|
|
1061
|
+
media_type="image/png",
|
|
1062
|
+
title="wmts capabilities",
|
|
1063
|
+
extra_fields=extra_fields,
|
|
1064
|
+
)
|
|
1065
|
+
)
|
|
1046
1066
|
elif endpoint["Name"] == "xcube":
|
|
1047
1067
|
if endpoint["Type"] == "zarr":
|
|
1048
1068
|
# either preset ColormapName of left as a template
|
eodash_catalog/utils.py
CHANGED
|
@@ -30,12 +30,12 @@ def create_geojson_point(lon, lat):
|
|
|
30
30
|
return {"type": "Feature", "geometry": point, "properties": {}}
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def retrieveExtentFromWMSWMTS(capabilties_url, layer, wmts=False):
|
|
33
|
+
def retrieveExtentFromWMSWMTS(capabilties_url, layer, version='1.1.1', wmts=False):
|
|
34
34
|
times = []
|
|
35
35
|
service = None
|
|
36
36
|
try:
|
|
37
37
|
if not wmts:
|
|
38
|
-
service = WebMapService(capabilties_url, version=
|
|
38
|
+
service = WebMapService(capabilties_url, version=version)
|
|
39
39
|
else:
|
|
40
40
|
service = WebMapTileService(capabilties_url)
|
|
41
41
|
if layer in list(service.contents):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: eodash_catalog
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
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,11 @@
|
|
|
1
|
+
eodash_catalog/__about__.py,sha256=7roXh9JBfY4TTFz_FqFWJY9-_EnGyiz40zqaxIbP6P4,137
|
|
2
|
+
eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
|
|
3
|
+
eodash_catalog/duration.py,sha256=6rxALD9MZS6rTE1AZgvjrABr7zwg8S-kLc_w9BltvY0,11007
|
|
4
|
+
eodash_catalog/generate_indicators.py,sha256=mI2PmvEphnGTzxXU1vXkABL_wd50wcmwea35mPVO4RY,61029
|
|
5
|
+
eodash_catalog/sh_endpoint.py,sha256=KyZGmVrjZOCIuJizmYSy8VSWrfqqn2r-Ggh_8Q-s2vI,581
|
|
6
|
+
eodash_catalog/utils.py,sha256=Unv2Ypd29ExoqJW5Ri_5gM6zJTnq03z-SubZBM0RKz0,6114
|
|
7
|
+
eodash_catalog-0.0.7.dist-info/METADATA,sha256=CAmEkI0u7lKJmTpc7Pb7I8SxuA4yXhdi-EdBbjsR6V8,2156
|
|
8
|
+
eodash_catalog-0.0.7.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
|
9
|
+
eodash_catalog-0.0.7.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
|
|
10
|
+
eodash_catalog-0.0.7.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
|
|
11
|
+
eodash_catalog-0.0.7.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
eodash_catalog/__about__.py,sha256=ZfDJZXDGJEGGrB1wiMfBDZ5ZIVlRCJpUhvHXTANnD88,137
|
|
2
|
-
eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
|
|
3
|
-
eodash_catalog/duration.py,sha256=6rxALD9MZS6rTE1AZgvjrABr7zwg8S-kLc_w9BltvY0,11007
|
|
4
|
-
eodash_catalog/generate_indicators.py,sha256=Pdl4a4AZ2rDgyA1paTC_yfM7zQW5n68s2u1xdvFPNzY,60144
|
|
5
|
-
eodash_catalog/sh_endpoint.py,sha256=KyZGmVrjZOCIuJizmYSy8VSWrfqqn2r-Ggh_8Q-s2vI,581
|
|
6
|
-
eodash_catalog/utils.py,sha256=NbwqHE5Qhd3Fke_fbl3HY803qSKJJKP1atTNrGPO7KY,6097
|
|
7
|
-
eodash_catalog-0.0.5.dist-info/METADATA,sha256=n63xtKFZPqXCnPKLjStUExSCTn7VCR7FAlqVnxJaIDU,2156
|
|
8
|
-
eodash_catalog-0.0.5.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
|
9
|
-
eodash_catalog-0.0.5.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
|
|
10
|
-
eodash_catalog-0.0.5.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
|
|
11
|
-
eodash_catalog-0.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|