aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2014-06-06 19:04:03 +0000
committerEven Rouault <even.rouault@mines-paris.org>2014-06-06 19:04:03 +0000
commitbd4a62ff3ed1f467ab6f1e7ba1f0681d98a3e7ee (patch)
tree14b3d164720ab7df4474c60ebe657853dfc57fa2
parent32b08fb049df34bda5d253c76a52c23c3beee15b (diff)
downloadPROJ-bd4a62ff3ed1f467ab6f1e7ba1f0681d98a3e7ee.tar.gz
PROJ-bd4a62ff3ed1f467ab6f1e7ba1f0681d98a3e7ee.zip
PJ_omerc: mark no_off/no_uoff as used for round-tripping pj_init_ctxt()/pj_get_def() (#239)
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2459 4e78687f-474d-0410-85f9-8d5e500ac6b2
-rw-r--r--src/PJ_omerc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PJ_omerc.c b/src/PJ_omerc.c
index 969fd1d7..310d774e 100644
--- a/src/PJ_omerc.c
+++ b/src/PJ_omerc.c
@@ -112,6 +112,12 @@ ENTRY0(omerc)
pj_param(P->ctx, P->params, "tno_off").i
/* for backward compatibility */
|| pj_param(P->ctx, P->params, "tno_uoff").i;
+ if( no_off )
+ {
+ /* Mark the parameter as used, so that the pj_get_def() return them */
+ pj_param(P->ctx, P->params, "sno_uoff");
+ pj_param(P->ctx, P->params, "sno_off");
+ }
} else {
lam1 = pj_param(P->ctx, P->params, "rlon_1").f;
phi1 = pj_param(P->ctx, P->params, "rlat_1").f;