diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-04-11 12:13:46 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2020-04-12 12:20:44 +0200 |
| commit | 925ae56c40b0cfa7d861f55e4332cb5603168a2c (patch) | |
| tree | a116f540e214a6f4568b8fa0c4877d6d71649b89 /src/fwd.cpp | |
| parent | 21ebdfb89bc4b222c4fb78815971b19192a2a09e (diff) | |
| download | PROJ-925ae56c40b0cfa7d861f55e4332cb5603168a2c.tar.gz PROJ-925ae56c40b0cfa7d861f55e4332cb5603168a2c.zip | |
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
Diffstat (limited to 'src/fwd.cpp')
| -rw-r--r-- | src/fwd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fwd.cpp b/src/fwd.cpp index 3eb03582..962a5051 100644 --- a/src/fwd.cpp +++ b/src/fwd.cpp @@ -134,6 +134,9 @@ static PJ_COORD fwd_finalize (PJ *P, PJ_COORD coo) { case PJ_IO_UNITS_WHATEVER: break; + case PJ_IO_UNITS_DEGREES: + break; + case PJ_IO_UNITS_RADIANS: coo.lpz.z = P->vfr_meter * (coo.lpz.z + P->z0); |
