map providers can sometimes be passed incorrect bbox-crs value
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start in pygeoapi/api/maps.py around lines 179-183, where bbox is reprojected from bbox-crs to crs and query_args['bbox'] is replaced without updating query_args['bbox-crs']. Check the linked pull request #2446 first, since it already addresses this. Done means the bbox-crs value passed to the map provider's query() matches the CRS of the transformed bbox.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
when preparing a response for a static map request, pygeoapi does some pre-processing of inputs and then passes them to a map provider for rendering the image.
After initial parsing, if bbox-crs is different from crs, pygeoapi transforms the bbox parameter to the crs specified in crs, as can be seen in:
The result of this coordinate transformation is then used to replace the value of query_args['bbox']. However, the value of query_args['bbox_crs'] is never updated to match the CRS of the newly transformed bbox.
This means that when the map provider is given the query_args dict, it can sometimes contain an incorrect value for the bbox-crs key.
As an example, I'm seeing these as the input parameters to my custom map provider's query() method:
{
'self': <BaseProvider> map,
'style': None,
'bbox': [-20037508.342789244, -20037471.205137063, 20037508.342789244, 20037471.205137063],
'width': 500,
'height': 300,
'crs': 'http://www.opengis.net/def/crs/EPSG/0/3857',
'transparent': True,
'format_': 'png',
'kwargs': {
'bbox-crs': 'http://www.opengis.net/def/crs/OGC/1.3/CRS84', 'datetime_': None
}
}
It can be seen that even though the contents of bbox is in 3857, the bbox-crs is still set to CRS84.
- Ngôn ngữ chính
- Python
- Star
- 626
- Fork
- 334
- Merge trung bình
- 20 giờ 31 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của geopython/pygeoapi
-
the query parameter limit is not working for jobsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
get_collection_map does not parse the transparent query parameterCó thể đã có người làm @ozenyunus35 đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Support cql2 filter on the esri providerCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của geopython/pygeoapi
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PolicyEngine/policyengine-us#10262 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
kellyjonbrazil/jc#788 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`/search.json` ignores the documented `editions.sort` parameterCó thể đã có người làm @PranavD2905 đã nhận hôm nay. Đang mởAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
internetarchive/openlibrary#13989 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P2: misleading query
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
jeffknupp/association#478 ·