diff options
| author | Thomas Knudsen <thokn@sdfe.dk> | 2018-02-10 12:16:25 +0100 |
|---|---|---|
| committer | Thomas Knudsen <thokn@sdfe.dk> | 2018-02-10 12:16:25 +0100 |
| commit | 797890c920e60ca62f5daeea55dcebb27314fb3c (patch) | |
| tree | a839b8882165dd3a86b4ebee52c780c570ee8d05 /src/proj_4D_api.c | |
| parent | 82cbab19db5ec8fd7b2fec7f6faf75993381f105 (diff) | |
| download | PROJ-797890c920e60ca62f5daeea55dcebb27314fb3c.tar.gz PROJ-797890c920e60ca62f5daeea55dcebb27314fb3c.zip | |
Fix numerous bugs in the cs2cs emulation
Diffstat (limited to 'src/proj_4D_api.c')
| -rw-r--r-- | src/proj_4D_api.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/proj_4D_api.c b/src/proj_4D_api.c index 42e3cbf9..8f6305a4 100644 --- a/src/proj_4D_api.c +++ b/src/proj_4D_api.c @@ -473,12 +473,13 @@ invocators can emulate the behaviour of pj_transform and the cs2cs app. def = malloc (100+n); if (0==def) return 0; - sprintf (def, "break_cs2cs_recursion proj=helmert %s", s); + sprintf (def, "break_cs2cs_recursion proj=helmert %s transpose", s); Q = proj_create (P->ctx, def); + pj_inherit_ellipsoid_def (P, Q); free (def); if (0==Q) return 0; - P->helmert = skip_prep_fin(Q); + P->helmert = skip_prep_fin (Q); break; } @@ -491,14 +492,14 @@ invocators can emulate the behaviour of pj_transform and the cs2cs app. Q = proj_create (P->ctx, def); if (0==Q) return 0; - pj_inherit_ellipsoid_def(P, Q); - P->cart = skip_prep_fin(Q); + pj_inherit_ellipsoid_def (P, Q); + P->cart = skip_prep_fin (Q); sprintf (def, "break_cs2cs_recursion proj=cart ellps=WGS84"); Q = proj_create (P->ctx, def); if (0==Q) return 0; - P->cart_wgs84 = skip_prep_fin(Q); + P->cart_wgs84 = skip_prep_fin (Q); } return 1; |
