default CRS for getting a map does not respect collection's default spatial extent

オープン
#2,442 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ricardogsilva がすでに取り組んでいます。

2026年10月25日 から。

  • #2475 @ricardogsilva による — オープン

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
api

調査の方向性

Start in pygeoapi/api/maps.py, where bbox falls back to the static DEFAULT_BOX when the request has no bbox parameter. Read how the collection's configured spatial extent is loaded from the collection definition, then use it as the default. Done means a map request without bbox uses the collection's extent, and the global box is kept only when the collection defines no extent.

索引モデルが issue の本文から書いたものです。

説明

bug

Description
When parsing an OGC API Maps request, if not provided with a bbox query parameter, pygeoapi defaults to using a static value, as seen in:

https://github.com/geopython/pygeoapi/blob/990e5f72ec938b3ad7aca5e493dda736806ebd6a/pygeoapi/api/maps.py#L151-L165

The above snippet shows how bbox = DEFAULT_BOX is assigned when there is no bbox in the original request. Since DEFAULT_BOX is defined as being the full globe extent this is only useful for global datasets.

It would be more useful if pygeoapi would inspect the collection's configuration and use its spatial extent instead. This way, a GET request with no query parameters would be more likely to produce a meaningful representation of the collection.

主要言語
Python
スター
630
フォーク
340
平均マージ
3日 20時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

geopython/pygeoapi のほかの issue

geopython/pygeoapi の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。