From 925ae56c40b0cfa7d861f55e4332cb5603168a2c Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Sat, 11 Apr 2020 12:13:46 +0200 Subject: Add proj_degree_input() and proj_degree_output() Equivalent to proj_angular_input() and proj_angular_output() but checking for degree units instead. proj_create_crs_to_crs() rarely, if ever, returns pipelines that has radians as input or output so using proj_angular_*() is not a useful check for io units of pipelines. These two new functions should make life a bit easier for users that generally store there angular coordinates in radians. Closes #2027 --- src/inv.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/inv.cpp') diff --git a/src/inv.cpp b/src/inv.cpp index 17eb15b4..626c9ee5 100644 --- a/src/inv.cpp +++ b/src/inv.cpp @@ -54,6 +54,9 @@ static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) { case PJ_IO_UNITS_WHATEVER: return coo; + case PJ_IO_UNITS_DEGREES: + return coo; + /* de-scale and de-offset */ case PJ_IO_UNITS_CARTESIAN: coo.xyz.x *= P->to_meter; -- cgit v1.2.3