/rijksdriehoek

d3.geo.projection, R code and Python code to transform from and to Dutch National Grid coordinate system

Primary LanguageRMIT LicenseMIT

rijksdriehoek

Convert Dutch National Grid (Rijksdriehoek) coordinates from and to WGS84 coordinates. It uses the approximation equations by F.H. Sleutelkamp and G.L. Strang van Hees.

Javascript

The javascript file in the js directory defines a d3.geo.rijksdriehoek projection that can be used as regular projections in d3 to project maps in WGS84 coordinates to Dutch National Grid coordinates. For an example see rijksdriehoek.

R

The R file contains two functions to project from WGS84 to Dutch National Grid and vice versa. It furthermore defines a function that can change the projection of a geoJSON file.

Python

Tests are included in the file (run python rijksdriehoek.py). Available functions are rd_to_wgs(x,y) and wgs_to_rd(phi, lambda).