Monday, 12 December 2016

How can I extract features from a WMS layer in QGIS?


I have a WMS layer in QGIS and I want to select and extract certain features in order to vectorize them and perform clipping with other vector layers. Is there any way of doing this? I don't have access to the WMS source files.



Answer



No you can't (in any sensible way). WMS services serve images not data (see here) to the user. While you could use some fancy image processing software to edit the images I don't think that's what you're after. There is almost certainly a better way to achieve whatever objective you're aiming at.


One way or another you're going to want to get hold of the vector data which has been used to create the map you're working from. If it's open data that ought to be easy. If it's not, then you're going to need to think about copyright anyway - and there's probably a better solution by looking instead at a source of open data, or a source of closed data which you have the right to use.


There are some more advanced options with WMS which are beyond my knowledge - but they might offer some workarounds if you're stuck with using a particular WMS service. See this question.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...