diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2016-10-19 11:21:19 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2016-10-19 11:21:19 +0200 |
| commit | 8525610c76b5f0bb01e13d4036d60284808acaa3 (patch) | |
| tree | db61f008d130c6108266cc5606bcc7a8e51c09b1 /src | |
| parent | fde9ac79d8f62d49a5c22e499ddbf887db546752 (diff) | |
| download | PROJ-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.c | 5 |
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) { |
