You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Screenshots/Tracebacks
The error happens because bbox-crs controls the CRS used for the subquery, not the CRS of the bbox provided in the request. This can be seen in the request made to the WMS
Description
The
bbox-crs
parameter is improperly conflatescrs
andbbox-crs
pygeoapi/pygeoapi/api/maps.py
Line 105 in 9a71a01
pygeoapi/pygeoapi/api/itemtypes.py
Lines 402 to 412 in a90f545
Steps to Reproduce
Query with bbox ESPG4269

https://demo.pygeoapi.io/master/collections/mapserver_world_map/map?f=png&bbox=-88.374023,24.826625,-78.112793,31.015279
The underlying query to WMS has query arguments:
bbox=-130.516667,24.1,-62.25273100000001,58.240301
andsrs=EPSG:4326
Query with bbox ESPG4269 and bbox-crs EPSG3857

https://demo.pygeoapi.io/master/collections/mapserver_world_map/map?f=png&bbox=-88.374023,24.826625,-78.112793,31.015279&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/3857
The underlying query to WMS has query arguments:
bbox=-9837751.239713045,2854464.3896094887,-8695476.341200383,3634733.5713922237
andsrs=EPSG:3857
Query with bbox ESPG3857 and bbox-crs EPSG3857
https://demo.pygeoapi.io/master/collections/mapserver_world_map/map?f=png&bbox=-9837751.2884,2854464.3843,-8695476.3377,3634733.5690&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/3857
errors.
The underlying query to WMS has query arguments:
bbox=inf,inf,inf,inf
andsrs=EPSG:3857
Expected behavior
pygeoapi is able to appropriately convert bbox CRS without while fulfilling the requirements of https://docs.ogc.org/is/20-058/20-058.html#req_spatial-subsetting_bbox-crs
Screenshots/Tracebacks
The error happens because
bbox-crs
controls the CRS used for the subquery, not the CRS of the bbox provided in the request. This can be seen in the request made to the WMSThe WMSFacade provider always converts the input bbox CRS from 4269 to whatever bbox-crs is:
pygeoapi/pygeoapi/provider/wms_facade.py
Lines 97 to 101 in 9a71a01
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: