Currently this line causes an issue when building the URL parameter for the bounding box in WMS 1.1.1
|
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).
|
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.
Currently this line causes an issue when building the URL parameter for the bounding box in WMS 1.1.1
OWSLib/owslib/map/wms111.py
Line 175 in bc88ee1
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).
OWSLib/owslib/map/wms130.py
Line 186 in bc88ee1
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
is reformatted as
0,0,1,1,'EPSG:28356'when the server is expecting0,0,1,1,EPSG:28356.The solution is to use
strinstead ofreprfor the join.