Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert latitude-longitude coordinates to Dutch RD coordinates
ResourceFunction["ToRDCoordinates"][{lat,lon}] converts the {lat,lon} coordinates to Dutch RD coordinates {x,y}. | |
ResourceFunction["ToRDCoordinates"][GeoPosition[…]] converts a GeoPosition to Dutch RD coordinates {x,y}. |
Convert an RD coordinate to a latitude-longitude pair:
In[1]:= |
Out[1]= |
Use a GeoPosition object instead:
In[2]:= |
Out[2]= |
Or a GeoPosition containing multiple coordinates:
In[3]:= |
Out[3]= |
Find the RD coordinates for Amsterdam:
In[4]:= |
Out[5]= |
Using ToRDCoordinates and the resource function FromRDCoordinates, we can convert to and from RD coordinates:
In[6]:= |
Out[7]= |
The coordinates are valid only within the border given by the following RD coordinates:
In[8]:= |
Out[8]= |
Asking for coordinates outside this region—in this example, Brussels—spawns a message and extrapolates the fit:
In[9]:= |
Out[9]= |
This work is licensed under a Creative Commons Attribution 4.0 International License