R-script voor het downloaden en converteren van een JSON-bestand met locaties van jachthavens converteren naar shape-bestand
✓ Published0🌍 Public
FFrieseWoudloper
Last edited Feb 9, 2016
Created on Oct 17, 2015
This example demonstrates how to download JSON data containing marina locations from a Dutch tourism website and convert it into a shapefile. The script shows the process of fetching data via an HTTP POST request with a custom header, parsing the JSON response, extracting attributes like address and contact details from nested HTML, and then transforming geographic coordinates from WGS84 to the Dutch RD coordinate system using the `sp` and `rgdal` packages. It uses `httr` for the API request, `jsonlite` for JSON parsing, and `XML` for handling HTML content within the JSON. The final shapefile is written with `writeOGR`.
AI-generated description