From 6418ba16669bf50f7b813e0c0cb818746254aab8 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Thu, 3 Jan 2019 15:28:04 +0100 Subject: Rename PJ_IO_UNITS_ANGULAR to PJ_IO_UNITS_RADIANS This communicates better what the unit actually is. It also opens the door for potentially adding PJ_IO_UNITS_DEGREES in the future in order to coordinates in degrees correctly as well. --- src/inv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inv.cpp') diff --git a/src/inv.cpp b/src/inv.cpp index 83c5498c..a05f8376 100644 --- a/src/inv.cpp +++ b/src/inv.cpp @@ -82,7 +82,7 @@ static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) { coo.xyz.y *= P->ra; return coo; - case PJ_IO_UNITS_ANGULAR: + case PJ_IO_UNITS_RADIANS: coo.lpz.z = P->vto_meter * coo.lpz.z - P->z0; break; } @@ -99,7 +99,7 @@ static PJ_COORD inv_finalize (PJ *P, PJ_COORD coo) { return proj_coord_error (); } - if (OUTPUT_UNITS==PJ_IO_UNITS_ANGULAR) { + if (OUTPUT_UNITS==PJ_IO_UNITS_RADIANS) { /* Distance from central meridian, taking system zero meridian into account */ coo.lp.lam = coo.lp.lam + P->from_greenwich + P->lam0; -- cgit v1.2.3