Skip to content

Commit

Permalink
Merge 60d93ba into 48d346a
Browse files Browse the repository at this point in the history
  • Loading branch information
awulkiew committed Mar 2, 2018
2 parents 48d346a + 60d93ba commit 8ebb62d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/PJ_nsper.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ PJ *PROJECTION(tpers) {
return pj_default_destructor (P, ENOMEM);
P->opaque = Q;

omega = pj_param(P->ctx, P->params, "dtilt").f * DEG_TO_RAD;
gamma = pj_param(P->ctx, P->params, "dazi").f * DEG_TO_RAD;
omega = pj_param(P->ctx, P->params, "rtilt").f;
gamma = pj_param(P->ctx, P->params, "razi").f;
Q->tilt = 1;
Q->cg = cos(gamma); Q->sg = sin(gamma);
Q->cw = cos(omega); Q->sw = sin(omega);
Expand Down
2 changes: 1 addition & 1 deletion src/PJ_omerc.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ PJ *PROJECTION(omerc) {
return pj_default_destructor (P, ENOMEM);
P->opaque = Q;

Q->no_rot = pj_param(P->ctx, P->params, "tno_rot").i;
Q->no_rot = pj_param(P->ctx, P->params, "bno_rot").i;
if ((alp = pj_param(P->ctx, P->params, "talpha").i) != 0)
alpha_c = pj_param(P->ctx, P->params, "ralpha").f;
if ((gam = pj_param(P->ctx, P->params, "tgamma").i) != 0)
Expand Down
46 changes: 46 additions & 0 deletions test/gie/builtins.gie
Original file line number Diff line number Diff line change
Expand Up @@ -3029,6 +3029,29 @@ expect -0.001796631 0.000904369
accept -200 -100
expect -0.001796631 -0.000904369

-------------------------------------------------------------------------------
operation +proj=omerc +ellps=GRS80 +lat_1=0.5 +lat_2=2 +no_rot
-------------------------------------------------------------------------------
tolerance 0.1 mm
accept 2 1
expect 110642.229314984 222650.796885261
accept 2 -1
expect -110642.229314984 222650.796885261
accept -2 1
expect 110642.229314984 -222650.796885262
accept -2 -1
expect -110642.229314984 -222650.796885262

direction inverse
accept 200 100
expect 0.000898315 0.001808739
accept 200 -100
expect -0.000898315 0.001808739
accept -200 100
expect 0.000898315 -0.001808739
accept -200 -100
expect -0.000898315 -0.001808739


===============================================================================
Ortelius Oval
Expand Down Expand Up @@ -4163,6 +4186,29 @@ expect -0.001376321 0.001453641
accept -200 -100
expect -0.001988706 -0.000228872

-------------------------------------------------------------------------------
operation +proj=tpers +a=6400000 +h=1000000 +tilt=20
-------------------------------------------------------------------------------
tolerance 0.1 mm
accept 2 1
expect 213598.340357101 113687.930830744
accept 2 -1
expect 231609.982792523 -123274.645577324
accept -2 1
expect -213598.340357101 113687.930830744
accept -2 -1
expect -231609.982792523 -123274.645577324

direction inverse
accept 200 100
expect 0.001790554 0.000841285
accept 200 -100
expect 0.001790432 -0.000841228
accept -200 100
expect -0.001790554 0.000841285
accept -200 -100
expect -0.001790432 -0.000841228


===============================================================================
Universal Polar Stereographic
Expand Down

0 comments on commit 8ebb62d

Please sign in to comment.