library(leaflet) # tmap doesnt support wms, only wmts...
library(leaflet.extras) # for wms-legend
# layer name
<- c("Maanpeite2022Scalgo", "Maanpeite2022kasvkorkScalgo")[2]
lyr # Syke wms url
<- "https://paikkatiedot.ymparisto.fi/geoserver/syke_maanpeitescalgo/wms" urlw
New land-use dataset from Syke (2024)
What type is the surface of Finland? 2m resolution answer from Syke
Syke has released a new raster dataset describing the land-use in Finland. The new dataset is entitled “maanpeiteaineisto”, or “land-use dataset” in English (my translation). Let’s call it MPA for now.
The MPA replaces the older CORINE product, which I’ve use in many projects for e.g. small area statistics. The MPA brings the resolution down from 20m in CORINE to just 2m, which allows for detection of individual trees and houses etc., and I can imagine the proportion of road-pixels and small rives is now getting closer to the fact.
Example view using leaflet
The data is available via geoserver services. Let’s have a look using WMS and leaflet, quickly using direct links .
Here I’ve written out the two layers of the data. The latter has more details on vegetation, specifically more height classes. Let’s also include the legend with the following uri.
# legend url
<- sprintf("https://paikkatiedot.ymparisto.fi/geoserver/syke_maanpeitescalgo/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%%2Fpng&width=10&height=2&layer=%s", lyr) uleg
Then create the widget.
# Draw.
<- leaflet() |>
p addWMSTiles(baseUrl = urlw,
layers = lyr,
options = WMSTileOptions(
format = "image/png",
transparent = TRUE,
crs = 3857
),attribution = "Maanpeiteaineisto, Syke 2024") |>
addWMSLegend(uleg) |>
addMiniMap() |>
addScaleBar(options = scaleBarOptions(imperial = FALSE), position = "bottomleft")
Some examples of the resulting interactive map:
|>
p setView(lat = 60.2295, lng = 25.01937, zoom = 17)
Delineation of forest, waters etc, especially roads, has improved markedly.
|>
p setView(lat = 62.4, lng = 25, zoom = 15)
Compare to CORINE view of the same region.