Closed aloboa closed 2 years ago
A WMS service is a service to quickly view/render raster data, but doesn't actually return the raster layer data. It just provides png images (prerendered tiles at various viewing scales). To have access to the raster layer data, a web coverage service is needed. In this particular case, such a service exists: https://inspire.informatievlaanderen.be/overdrachtdiensten/oi-omz/wcs
but that will not always be the case. I'm not sure if you are interested in this particular layer, or if your question is more general.
It is a general question. Something equivalent to ggsave() would do it. In Catalonia, orthophotos of the current year can be downloaded from ICGC as GTiff, but for the previous years only WMS is available. Using you leaflet method + something like ggsave() would be better than nothing (or than manually saving screenshots).
I see. In that case, have a look at https://r-spatial.github.io/mapview/reference/mapshot.html
I assume your question has been sufficiently answered @aloboa. If not you're welcome to reopen the issue.
Regarding https://inbo.github.io/tutorials/tutorials/spatial_wms_services/
is it actually possible to save the raster layer? At least an screenshot of the display of