Wednesday 11 January 2017

Save a WMS layer on your Hard Drive via QGIS?


Well, here's another question. I'm working on a set of WMS data right now and i wanted to know if you can save it on a Hard drive. I do know that you can save the current view as a georeferenced Tif, but considering the resolution i need and space covered by my workspace i need something a lot faster or i'll be doing this for weeks.



Answer



You can use GrassGis which is installed alongside with Qgis. There is the tool r.in.wms which will do the work.


It is in the background creating a textfile with the GetMap queries and replaces the extent for each tile. So you set it up with the correct region, the size of the tiles you want to have, the imagetype (depending what the wms offers) and thats it. It then sends the Queries automaticly one after the other using wget. After its finished you have to merge the tiles.


The downside is you need roughly 1-2 hours to be able to get along with GrassGis far enough to set the region extent and start the tool (GrassGis is pretty different from other Gi-Systems)



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...