-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Labels
Description
Currently this line causes an issue when building the URL parameter for the bounding box in WMS 1.1.1
Line 175 in bc88ee1
| request['bbox'] = ','.join([repr(x) for x in bbox]) |
and likewise in WMS 1.3.0, although only when the projection for the bounding box is in a non-geographic projection (because above if in a geographic projection the bbox is remapped to reverse the axis).
Line 186 in bc88ee1
| request['bbox'] = ','.join([repr(x) for x in bbox]) |
The result is that it adds quotes into the parameter string which causes downstream issues (or at least does in geoserver). For example a bounding box of
bbox = (0, 0, 1, 1, 'EPSG:28356')
is reformatted as 0,0,1,1,'EPSG:28356' when the server is expecting 0,0,1,1,EPSG:28356.
The solution is to use str instead of repr for the join.