aboutsummaryrefslogtreecommitdiff
path: root/src/pj_init.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-10-06 12:56:22 +0200
committerThomas Knudsen <thokn@sdfe.dk>2017-10-06 12:56:22 +0200
commitee0e2a0ff7315b3e77e5e570b566a735ec6a817a (patch)
tree6f21a1d1337927e988c199465f747c380e93570b /src/pj_init.c
parentca84e57463cacaa0d6b8f81b11ca6714c77e88c5 (diff)
downloadPROJ-ee0e2a0ff7315b3e77e5e570b566a735ec6a817a.tar.gz
PROJ-ee0e2a0ff7315b3e77e5e570b566a735ec6a817a.zip
Enable ob_tran for ellipsoidal projection definitions. While formally wrong, it gives consistent results, and is more safe than the original hack of setting es=0
Diffstat (limited to 'src/pj_init.c')
-rw-r--r--src/pj_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_init.c b/src/pj_init.c
index 2c2dc3ab..951f1cfb 100644
--- a/src/pj_init.c
+++ b/src/pj_init.c
@@ -496,7 +496,7 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) {
return pj_dealloc_params (ctx, start, PJD_ERR_UNKNOWN_PROJECTION_ID);
/* set defaults, unless inhibited */
- if (!(pj_param(ctx, start, "bno_defs").i || (0==strcmp(pj_param(ctx, start, "sproj").s, "ob_tran"))))
+ if (!(pj_param(ctx, start, "bno_defs").i))
curr = get_defaults(ctx,&start, curr, name);
proj = (PJ *(*)(PJ *)) pj_list[i].proj;