Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

OGCFeat Drilldown Probe (Full) gives error with OGCRec Provider

未关闭
#433 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
api, backend

调研方向

从 OGCFeat Probe Python 代码和 OWSLib==0.20.0 的依赖固定版本开始。针对 pygeoapi demo URL 重现失败,然后调查 OWSLib 0.26.0 以及针对早期 OGC API 版本的现有变通方案。当 Full drilldown test 报告 success=True 且不破坏之前的 OGC API 行为时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug

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.

主要语言
Python
星标
92
派生
76
平均合并
7 小时 21 分钟
30 天内合并 PR
3

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

geopython/GeoHealthCheck 的其他 Issue

查看 geopython/GeoHealthCheck 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。