Skip to content

WCS Request fails due to wrong BBox using "Map Canvas Extent" or "Draw on Canvas" #62528

Description

@lgl-siet

What is the bug or the crash?

Trying to load a WCS Layer with the extent options "Map Canvas Extents" or "Draw on Canvas" fails. The GetCoverage request uses a wrong bounding box. Two requests are sent, the first one uses the correct bbox. The second request is send with the bonding box set to the max values of a double (1.7976931348623158e+308), by that causing the request to fail.
In addition the size of the pictures requested is 10 by 10 for the first one and 6 by 3 for the second.

WCS_Request_log.json

Steps to reproduce the issue

  1. Open Data Source Manager.
  2. Connect to a WCS. (I used https://owsproxy.lgl-bw.de/owsproxy/wcs/WCS_INSP_BW_Orthofoto_DOP20)
  3. Select a Coverage.
  4. Make sure Option for extends is set and use option Map Canvas Extends or Draw on Canvas.
  5. Add the Layer.
Image

Versions

QGIS version3.42.2-Münster
QGIS code revision402273f8c2
 
Libraries
Qt version5.15.13
Python version3.12.10
GDAL version3.10.3
PROJ version9.6.0
EPSG Registry database versionv12.004 (2025-03-02)
GEOS version3.13.1-CAPI-1.19.2
SQLite version3.46.1
PDAL version2.8.3
PostgreSQL client version17.3
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 2009
 
Active Python plugins
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!WCS data provider

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions