aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_ob_tran.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_ob_tran.c')
-rw-r--r--src/PJ_ob_tran.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/PJ_ob_tran.c b/src/PJ_ob_tran.c
index 4ce4bd4d..43211fe7 100644
--- a/src/PJ_ob_tran.c
+++ b/src/PJ_ob_tran.c
@@ -170,11 +170,6 @@ PJ *PROJECTION(ob_tran) {
P->opaque = Q;
P->destructor = destructor;
-#if 0
- if (0 != P->es)
- return destructor(P, PJD_ERR_ELLIPSOIDAL_UNSUPPORTED);
-#endif
-
/* get name of projection to be translated */
if (!(name = pj_param(P->ctx, P->params, "so_proj").s))
return destructor(P, PJD_ERR_NO_ROTATION_PROJ);
@@ -235,6 +230,12 @@ PJ *PROJECTION(ob_tran) {
P->inv = Q->link->inv ? t_inverse : 0;
}
+ /* Support some rather speculative test cases, where the rotated projection */
+ /* is actually latlong. We do not want scaling in that case... */
+ if (Q->link->right==PJ_IO_UNITS_RADIANS)
+ P->right = PJ_IO_UNITS_METERS;
+
+
return P;
}