From 8525610c76b5f0bb01e13d4036d60284808acaa3 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Wed, 19 Oct 2016 11:21:19 +0200 Subject: Reverting to behaviour of previous version of pj_inv(). Definitions of false easting/northing in nad/epsg are all given in meters. So in this case a consistent interface (everything is in the same units) does more harm than good. --- src/pj_inv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pj_inv.c b/src/pj_inv.c index 3219d319..ed05618a 100644 --- a/src/pj_inv.c +++ b/src/pj_inv.c @@ -18,8 +18,9 @@ LP pj_inv(XY xy, PJ *P) { errno = pj_errno = 0; P->ctx->last_errno = 0; - xy.x = (xy.x * P->to_meter - P->x0 * P->to_meter) * P->ra; /* descale and de-offset */ - xy.y = (xy.y * P->to_meter - P->y0 * P->to_meter) * P->ra; + /* descale and de-offset */ + xy.x = (xy.x * P->to_meter - P->x0) * P->ra; + xy.y = (xy.y * P->to_meter - P->y0) * P->ra; /* Check for NULL pointer */ if (P->inv != NULL) { -- cgit v1.2.3