TransWikia.com

Downloading data from WCS with QGIS

Geographic Information Systems Asked by user13157078 on August 29, 2021

I have a DEM layer from WCS.

How can I download the data to process it to get slope, aspects, etc in QGIS?

2 Answers

I assume that this is the same question as Using WCS DEM data for make slope and aspect maps in QGIS, which provided the following URL:

https://servicios.idee.es/wcs-inspire/mdt?version=2.0.1&request=GetCapabilities&service=WCS

In which case, it SHOULD be as simple as adding the URL as a WCS layer in the QGIS Browser. However I just tested it out using the above URL, and it didn't work. (It worked in my browser, so I have access). Error message is "Could not understand the response: WCS server version 2.0.1 is not supported by QGIS (supported versions: 1.0.0, 1.1.0, 1.1.2)

Tried URL: https://servicios.idee.es/wcs-inspire/mdt?version=2.0.1&SERVICE=WCS&REQUEST=GetCapabilities&AcceptVersions=1.1.0,1.0.0"

Also QGIS documentation here, says it only supports v1.0 and v1.1:

https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_client_support.html#wcs-client )

Amended Answer* I may have found a few bugs in QGIS here. It appears that the WCS Connection manager will 'cache' the URL its attempting to use. So even though I amended the URL of the connection, it didn't work. But it DID work, when I added a brand new connection with the same URL. Apologies for the above confusion. So its possible if you are having connection issues, get rid of any existing WCS connections and start a new one with just the "https://servicios.idee.es/wcs-inspire/mdt" URL as suggested by other user.

Answered by nr_aus on August 29, 2021

A GetCoverage request will fetch the data, you can hand craft and run in a browser then process in QGIS if you don't want to use QGIS directly to get the data.

For example you could do a subset request for ASCII grid like:

http://servicios.idee.es/wcs-inspire/mdt?version=2.0.1&request=GetCoverage&service=WCS&CoverageID=Elevacion4258_500&outputformat=application/asc&subset=lat(27.63,30&subset=long(33,44.21)&

The service does work in QGIS though, just use the endpoint https://servicios.idee.es/wcs-inspire/mdt?

QGIS will make WCS 1.0.0 GetCoverage requests like:

http://servicios.idee.es/wcs-inspire/mdt?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GEOTIFF_RGB&COVERAGE=Elevacion4258_1000&BBOX=-18.21086854580000036,27.59329243879999893,4.4980704786506962,43.84847187162309723&CRS=EPSG:4258&RESPONSE_CRS=EPSG:4258&WIDTH=591&HEIGHT=424

I tried the Elevacion4258_25 coverage, and it does eventually return though it's large and slow. I assume from its name that it is in epsg:4258, and probably you should avoid trying to reproject it and display it at the same time, if fetching through QGIS (i.e. set the project to the same CRS as the coverages you are requesting).

Answered by nmtoken on August 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP