From 3b0a4a30bb1392d14c58d2d3376fec5efe5c8560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 11 May 2018 20:06:16 +0200 Subject: [PATCH] Use precise arc second to radian transformation constants --- src/map/datum.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/datum.cpp b/src/map/datum.cpp index f1fc76e5..7c2012b6 100644 --- a/src/map/datum.cpp +++ b/src/map/datum.cpp @@ -3,8 +3,8 @@ #include "datum.h" -#define as2rad(x) ((x) * 4.84814e-6) -#define rad2as(x) ((x) * 206265.0) +#define as2rad(x) ((x) * (M_PI/648000.0)) +#define rad2as(x) ((x) * (648000.0/M_PI)) static Ellipsoid WGS84e = Ellipsoid(WGS84_RADIUS, WGS84_FLATTENING); static Datum WGS84 = Datum(&WGS84e, 0.0, 0.0, 0.0);