Skip to content

Bug in bounding box creation for WMS 1.1.1 #878

@om-henners

Description

@om-henners

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions