convert geo coordinates between various systems (WGS84, RD coords (dutch: RijksDriehoek Coordinaten), ...)
For reference see the PDF article in the documentation/
directory:
Benaderingsformules voor de transformatie tussen RD- en WGS84-kaartcoördinaten
ing. F.H. Schreutelkamp,
Stichting ‘De Koepel’, sterrenwacht ‘Sonnenborgh’ te Utrecht, en
ir. G.L. Strang van Hees,
voormalig universitair docent van de afdeling Geodesie, TU Delft.
int xy2ne(double* n, double* e, double x, double y);
int ne2xy(double* x, double* y, double n, double e);
char* nddd_str(char* str, double n);
char* eddd_str(char* str, double e);
char* ddd_str(char* str, double n, double e);
char* ndmm_str(char* str, double n);
char* edmm_str(char* str, double e);
char* dmm_str(char* str, double n, double e);
char* ndms_str(char* str, double n);
char* edms_str(char* str, double e);
char* dms_str(char* str, double n, double e);
char* xxx_str(char* str, double x);
char* yyy_str(char* str, double y);
char* xy_str(char* str, double x, double y);
FILE* fopen_kml(char* filename);
int fprint_placemark(FILE* f, double n, double e, char* name, char* description);
int fclose_kml(FILE* f);
The intent of this library / code is to develop a geocaching tool for analyzing coordinate-based puzzles where bulk processing / visualizing of coordinates is helpful in finding the desired solutuion.
Find the geocache location which is positioned on the coordinate which matches the Pyuthagorean triplet x^2 + y^2 = z^2
where x
, y
and z
are integer.
-
conversion to JavaScript so this code can run in a web page
-
visualize results in Google Maps
-
... unit tests?
-
... etc.
Test output is currently stored in the file PAIRS.TXT.
Test output is oproduced by running main()
in the geolib.c source file.