diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-04-14 12:41:30 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-04-14 12:41:30 +0200 |
| commit | 837e1ecf6189e64326c5dc336bd9898f1d195468 (patch) | |
| tree | df199039074eb894e45c29bc7562a3b71075290f /src | |
| parent | ee22447de347c78944af849b10e0c9fd10184c28 (diff) | |
| download | PROJ-837e1ecf6189e64326c5dc336bd9898f1d195468.tar.gz PROJ-837e1ecf6189e64326c5dc336bd9898f1d195468.zip | |
Dont do false easting/northing on cartesian coords
False easting and northing should only be applied to projected
coordinates (PJ_IO_UNITS_PROJECTED). This commit removes the option of
false easting/northing on operations suchs as helmert and deformation
that both work on cartesian coordinates.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_fwd.c | 3 | ||||
| -rw-r--r-- | src/pj_inv.c | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/pj_fwd.c b/src/pj_fwd.c index 2a064e58..347f8334 100644 --- a/src/pj_fwd.c +++ b/src/pj_fwd.c @@ -112,9 +112,6 @@ static PJ_COORD fwd_finalize (PJ *P, PJ_COORD coo) { coo = proj_trans (P->cart, PJ_FWD, coo); } - coo.xyz.x = P->fr_meter * (coo.xyz.x + P->x0); - coo.xyz.y = P->fr_meter * (coo.xyz.y + P->y0); - coo.xyz.z = P->fr_meter * (coo.xyz.z + P->z0); break; /* Classic proj.4 functions return plane coordinates in units of the semimajor axis */ diff --git a/src/pj_inv.c b/src/pj_inv.c index f66fd7d1..327fef9f 100644 --- a/src/pj_inv.c +++ b/src/pj_inv.c @@ -98,10 +98,6 @@ static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) { /* de-scale and de-offset */ case PJ_IO_UNITS_CARTESIAN: - coo.xyz.x = P->to_meter * coo.xyz.x - P->x0; - coo.xyz.y = P->to_meter * coo.xyz.y - P->y0; - coo.xyz.z = P->to_meter * coo.xyz.z - P->z0; - if (P->is_geocent) coo = proj_trans (P->cart, PJ_INV, coo); |
