Wolfram Research

Function Repository Resource:

FromRDCoordinates

Source Notebook

Converts Dutch RD coordinates to GeoPosition objects

Contributed by: Sander Huisman

ResourceFunction["FromRDCoordinates"][{x,y}]

converts the Dutch RD coordinates {x,y} to GeoPosition objects.

Details and Options

Converts the Dutch RD coordinates (Rijksdriehoekscoördinaten) {x,y} to a latitude-longitude pair in the WGS84 datum using a 4th order conformal mapping obtained from 6000 references points in The Netherlands.

Examples

Basic Examples

Convert an RD coordinate to a GeoPosition object:

In[1]:=
ResourceFunction["FromRDCoordinates"][{257688, 471277}]
Out[1]=

Applications

Plot the waterways of The Netherlands using data from www.pdok.nl given in RD coordinates:

In[2]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/0912cb8f-08d4-489b-9b88-25d3968e5fb7"]
Out[3]=

Properties and Relations

Using FromRDCoordinates and ToRDCoordinates we can convert from and to RD coordinates:

In[4]:=
ResourceFunction["FromRDCoordinates"][
 ResourceFunction["ToRDCoordinates"][{52.22, 6.89}]]
Out[5]=

The ‘origin’ of the RD coordinates is somewhere in France:

In[6]:=
GeoGraphics[GeoMarker[ResourceFunction["FromRDCoordinates"][{0, 0}]], GeoRange -> 400000]
Out[6]=

The closest city is La Celle-Saint-Cyr:

In[7]:=
GeoNearest[Entity["City"], ResourceFunction["FromRDCoordinates"][{0, 0}]]
Out[7]=

Possible Issues

The coordinates are valid only within the border given by the following RD coordinates:

In[8]:=
bounds = {{141000, 629000}, {100000, 600000}, {80000, 500000}, {-7000,
     392000}, {-7000, 336000}, {101000, 336000}, {161000, 289000}, {219000, 289000}, {300000, 451000}, {300000, 614000}, {259000, 629000}};
GeoGraphics[Polygon[ResourceFunction["FromRDCoordinates"] /@ bounds]]
Out[9]=

Asking for a coordinate outside this region—in this example Brussels—spawns a message and extrapolates the fit:

In[10]:=
ResourceFunction["FromRDCoordinates"][{80515, 316108}]
Out[10]=

Resource History

Source Metadata

License Information