Processing Script

download_wcs_layer in review


image

Downloads a WCS layer with a specified bounding box and resolution. The bounding box is rounded to the resolution. Uses QGIS Network Manager for HTTP requests.

(This script is a work around for the native QGIS algorithm "Clip Raster by Extent" which does not work in combination with WCS layers. As reported here: https://github.com/qgis/QGIS/issues/67061)

19 August 2026
22 August 2026
Nijssen

This Processing Script is made available under the CC-0 license.


Hi Raymond, thank you so much for your contribution! I'm marking the script as Requiring Update: I tested it in QGIS 3.44.9 using the service you mentioned in the issue report, and it saves an output-raster.tif file with the server response in XML containing: <ServiceException code="MissingParameterValue" locator="crs">msWCSGetCoverage(): WCS server error. Required parameter CRS was not supplied.</ServiceException>. In QGIS 4.2.1, it returns the Python AttributeError: type object 'QNetworkReply' has no attribute 'NoError'.

Reviewed by Gabrieldeluca 6 days, 1 hour ago

Hi Raymond, thanks for the update. I can't get it to work. wcs_layer.source() doesn't seem to include a crs parameter. Therefore, wcs_crs stores an empty string, and the request_query for the new download includes empty crs and response_crs parameters, returning the same error as before.

Reviewed by Gabrieldeluca 3 days, 4 hours ago

QGIS sustaining members

Flagship membership


Flagship membership


Flagship membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership