aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2016-10-19 11:21:19 +0200
committerKristian Evers <kristianevers@gmail.com>2016-10-19 11:21:19 +0200
commit8525610c76b5f0bb01e13d4036d60284808acaa3 (patch)
treedb61f008d130c6108266cc5606bcc7a8e51c09b1 /src
parentfde9ac79d8f62d49a5c22e499ddbf887db546752 (diff)
downloadPROJ-8525610c76b5f0bb01e13d4036d60284808acaa3.tar.gz
PROJ-8525610c76b5f0bb01e13d4036d60284808acaa3.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/pj_inv.c5
1 files changed, 3 insertions, 2 deletions
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) {