geopython / geopython/GeoHealthCheck
OGCFeat Drilldown Probe (Full) gives error with OGCRec Provider
- 主要言語
- Python
- スター
- 92
- フォーク
- 75
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**Describe the bug**
OGCFeat Drilldown Probe (Full) gives error with OGCRec Provider - think OWSLib outdated
**To Reproduce**
Steps to reproduce the behavior, e.g.:
1. create an OGCFeat Resource for pygeoapi demo: https://demo.pygeoapi.io/master
2. in Edit, add **OGC API Features (OAFeat) Drilldown** Probe
3. edit that probe, set Probe var 'drilldown_level` to 'Full'
4. save and press Test button
5. observe result: success is 'False'
**Expected Behavior**
expected result as success is `True`
**Screenshots or Logfiles**
Error in the logs:
```
2022-08-10 16:13:31,994 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): demo.pygeoapi.io:443
2022-08-10 16:13:32,298 - urllib3.connectionpool - DEBUG - https://demo.pygeoapi.io:443 "GET /master/collections/dutch-metadata/items?limit=1 HTTP/1.1" 200 5954
2022-08-10 16:13:32,301 - owslib.ogcapi - DEBUG - URL: https://demo.pygeoapi.io/master/collections/dutch-metadata/items/35149dfb-31d3-431c-a8bc-12a4034dac48
2022-08-10 16:13:32,301 - owslib.ogcapi - DEBUG - Request: https://demo.pygeoapi.io/master/collections/dutch-metadata/items/35149dfb-31d3-431c-a8bc-12a4034dac48
2022-08-10 16:13:32,304 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): demo.pygeoapi.io:443
2022-08-10 16:13:32,530 - urllib3.connectionpool - DEBUG - https://demo.pygeoapi.io:443 "GET /master/collections/dutch-metadata/items/35149dfb-31d3-431c-a8bc-12a4034dac48 HTTP/1.1" 200 4797
2022-08-10 16:13:32,534 - GeoHealthCheck.probe - INFO - Result: success=False msg=GetItems {
"code": "NoApplicableCode",
"description": "Invalid provider type"
}: OWSLib err: gdps-temperature response_time=19.627861
```
**Context (please complete the following information):**
- OS: any
- Browser: any
- Browser Version: any
- Python Version: 3.7
- GeoHealthCheck Version - latest `master` on aug 10, 2022.
**Additional context**
Seems to come from OWSLib, possible the version is outdated?
Version:
`OWSLib==0.20.0`
OWSlib is now at `0.26.0` with OGC API - Records 1.0
https://geopython.github.io/OWSLib/usage.html#ogc-api-records-1-0 - support.
But simply increasing the version number has challenges because of existing work-arounds in the OGCFeat Probe Python code for early OGC API versions.
コントリビューションガイド
調査の方向性
OGCFeat Probe の Python コードと OWSLib==0.20.0 の依存関係の pin から始めます。pygeoapi demo URL に対して失敗を再現し、その後 OWSLib 0.26.0 と初期の OGC API バージョン向けに既存の回避策を調査します。Full drilldown test が success=True を報告し、以前の OGC API の動作を壊さなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100