Skip to content

Commit

Permalink
Merge pull request #936 from kbevers/no-false-easting-northing-on-car…
Browse files Browse the repository at this point in the history
…tesion-coords

Dont do false easting/northing on cartesian coords
  • Loading branch information
kbevers committed Apr 14, 2018
2 parents ee22447 + 837e1ec commit 5f3b858
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/pj_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 0 additions & 4 deletions src/pj_inv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5f3b858

Please sign in to comment.