I am trying to extract data from a WMS-layer.
As an example, I would like to analyse whether or not a Natura2000 area is touched by my area and what the specifics are of the Natura2000 area.
The WMS-layer of the Natura2000 area can be found at: https://geodata.nationaalgeoregister.nl/natura2000/ows?service=WMS&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=natura2000"
Let's say my area is a circle with a radius of 7500 meters around a certain x- and y-coordinate;
I was trying to get this done with the leaflet-package, but it seems more a tool to show information, instead of analysing information.
x.WGS=6.662226
y.WGS=52.53206
leaflet() %>% setView(x.WGS, y.WGS, zoom = 11) %>%
addTiles() %>%
addMarkers(lng = x.WGS, lat = y.WGS)%>%
addWMSTiles(
"https://geodata.nationaalgeoregister.nl/natura2000/ows?service=WMS&request=GetLegendGraphic&format=image/png&width=20&height=20&layer=natura2000",
layers = "natura2000",
options = WMSTileOptions(format = "image/png", transparent = TRUE),
attribution = "") %>%
addCircles(lng = x.WGS, lat = y.WGS, weight = 1,
radius = 7500)
I would like it to return two things. Is any Natura2000-area touched by my area? and which areas are that, in other words, what are their names. If I load the WMS-layer in Qgis the name of an Natura2000-area should be under naam_n2k.
In my example, the answer should be that there are two Natura2000 area's touched by my area and the names of these Natrua2000 area's are Vecht- en Beneden-Reggegebied and Engbertsdijksvenen.