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/projections/latlong.cpp | 4 ++-- src/projections/ob_tran.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/projections') diff --git a/src/projections/latlong.cpp b/src/projections/latlong.cpp index f114504b..970c4893 100644 --- a/src/projections/latlong.cpp +++ b/src/projections/latlong.cpp @@ -98,8 +98,8 @@ static PJ *latlong_setup (PJ *P) { P->fwd3d = latlong_forward_3d; P->inv4d = latlong_inverse_4d; P->fwd4d = latlong_forward_4d; - P->left = PJ_IO_UNITS_ANGULAR; - P->right = PJ_IO_UNITS_ANGULAR; + P->left = PJ_IO_UNITS_RADIANS; + P->right = PJ_IO_UNITS_RADIANS; return P; } diff --git a/src/projections/ob_tran.cpp b/src/projections/ob_tran.cpp index 1726b622..6daae394 100644 --- a/src/projections/ob_tran.cpp +++ b/src/projections/ob_tran.cpp @@ -237,7 +237,7 @@ PJ *PROJECTION(ob_tran) { /* Support some rather speculative test cases, where the rotated projection */ /* is actually latlong. We do not want scaling in that case... */ - if (Q->link->right==PJ_IO_UNITS_ANGULAR) + if (Q->link->right==PJ_IO_UNITS_RADIANS) P->right = PJ_IO_UNITS_PROJECTED; -- cgit v1.2.3