diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-01-03 15:28:04 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2019-01-03 15:31:38 +0100 |
| commit | 6418ba16669bf50f7b813e0c0cb818746254aab8 (patch) | |
| tree | 94b354630d198c22fdb4bbe4d95dba2a52e67c32 /src/inv.cpp | |
| parent | 00de4660a75a9d89c98778cf84f94075b7eef0b9 (diff) | |
| download | PROJ-6418ba16669bf50f7b813e0c0cb818746254aab8.tar.gz PROJ-6418ba16669bf50f7b813e0c0cb818746254aab8.zip | |
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.
Diffstat (limited to 'src/inv.cpp')
| -rw-r--r-- | src/inv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
