eodash_catalog 0.0.6__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.

@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Daniel Santillan <daniel.santillan@eox.at>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.0.6"
4
+ __version__ = "0.0.7"
@@ -362,7 +362,9 @@ def handle_WMS_endpoint(config, endpoint, data, catalog, wmts=False):
362
362
  # have to process full service capabilities XML
363
363
  capabilities_url = endpoint["EndPoint"]
364
364
  spatial_extent, times = retrieveExtentFromWMSWMTS(
365
- capabilities_url, endpoint["LayerId"], wmts=wmts
365
+ capabilities_url, endpoint["LayerId"],
366
+ version=endpoint.get('Version', '1.1.1'),
367
+ wmts=wmts,
366
368
  )
367
369
  # Create an item per time to allow visualization in stac clients
368
370
  if len(times) > 0 and not endpoint.get("Disable_Items"):
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="1.1.1")
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.6
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=Mkp-bEPJxx2viOiKAPclr4wuwdpv3N9z2A67ZyHiNa0,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=UFl8AYUjrxZuzul9bOOLy_A8l8hnLplS05QItdetBmE,60962
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.6.dist-info/METADATA,sha256=A69vLKaOul9eYI8wRYb8M8PbWViBLJMvVmf_AJqWeJo,2156
8
- eodash_catalog-0.0.6.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
9
- eodash_catalog-0.0.6.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
10
- eodash_catalog-0.0.6.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
11
- eodash_catalog-0.0.6.dist-info/RECORD,,