Skip to main content
100%

R script om te demonstreren hoe je WFS paging kunt implementeren in R

✓ Published0🌍 Public
FFrieseWoudloper
Last edited Sep 5, 2018
Created on Aug 2, 2018

This example shows how to retrieve all Dutch address objects (verblijfsobjecten) in the town of Zuidhorn from the BAG Web Feature Service (WFS) using paging to handle large result sets. The code first queries the server’s maximum page size via GetCapabilities, then counts matching features, and finally fetches them page by page using `startindex` while sorting by identifier. It uses the `httr`, `xml2`, and `sf` R packages to parse the WFS responses and convert the resulting GeoJSON into simple features, which are then mapped with the `tmap` package. The data source is the national georegister’s BAG WFS endpoint.

AI-generated description

Similar vizzes