Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-3_34] qgswfsgetcapabilities: Restore previous empty bounding box behavior #56150

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

qgis-bot
Copy link
Collaborator

@qgis-bot qgis-bot commented Feb 2, 2024

Backport #55927
Authored by: @ptitjano

According to the WFS 1.1.0 specs "The <WGS84BoundingBox> element is
used to indicate the edges of an enclosing rectangle in decimal
degrees of latitude and longitude in WGS84" but the expected behavior
is not specified when the data are empty.

Up to QGIS 3.32, QGIS server returned:
```
<ows:WGS84BoundingBox dimensions="2">
<ows:LowerCorner>0 0</ows:LowerCorner>
<ows:UpperCorner>0 0</ows:UpperCorner>
```

However, as a side effect of a change in `QGSRectangle` (see:
#54646), QGIS server now returns
since the 3.34 version:
```
<ows:WGS84BoundingBox dimensions="2">
<ows:LowerCorner>inf inf</ows:LowerCorner>
<ows:UpperCorner>-inf -inf</ows:UpperCorner>
```

This changes restores the QGIS 3.32 behavior.
@github-actions github-actions bot added this to the 3.34.4 milestone Feb 2, 2024
@lbartoletti lbartoletti merged commit 44e6e78 into release-3_34 Feb 2, 2024
33 of 34 checks passed
@lbartoletti lbartoletti deleted the backport-55927-to-release-3_34 branch February 2, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants