aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cs2cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cs2cs.c b/src/cs2cs.c
index 76c47403..518d4e71 100644
--- a/src/cs2cs.c
+++ b/src/cs2cs.c
@@ -135,8 +135,8 @@ static void process(FILE *fid)
fputs(rtodms(pline, data.v, 'N', 'S'), stdout);
}
- } else { /* x-y or decimal degree ascii output */
- if ( pj_is_latlong(toProj) ) {
+ } else { /* x-y or decimal degree ascii output */
+ if ( proj_angular_output(toProj, PJ_FWD) ) {
data.v *= RAD_TO_DEG;
data.u *= RAD_TO_DEG;
}