Skip to content

Instantly share code, notes, and snippets.

View lukavdplas's full-sized avatar

Luka van der Plas lukavdplas

View GitHub Profile
@lukavdplas
lukavdplas / rd_to_wss84.jl
Last active June 8, 2024 15:16
Julia function to convert RD coordinates (rijksdriehoekscoordinaten) into WGS 84 coordinates.
"""
Converts RD coordinates (rijksdriehoekscoordinaten) into WGS84 coordinates
More about these systems:
- [RD](https://nl.wikipedia.org/wiki/Rijksdriehoeksco%C3%B6rdinaten)
- [WGS84](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84)
Implementation based on [this python script](https://github.com/thomasvnl/rd-to-wgs84/blob/master/conversions.py)
"""
function rd_to_wgs88(x::Number, y::Number):: Tuple{Number, Number}
### A Pluto.jl notebook ###
# v0.11.0
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))