aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHoward Butler <howard@hobu.co>2016-02-28 15:37:06 -0600
committerHoward Butler <howard@hobu.co>2016-02-28 15:37:06 -0600
commit5025bc670ea3790b30b7e3a536f83fd930246960 (patch)
treee33937f6cf20ba491c0225cfddf2552507c8c57a /src
parentfa0cd6836ef9ea2ab36ff837f2c8ac11cf52f00a (diff)
parent9b8f68d61acd10502ce9c985e8fdfd5d5994310a (diff)
downloadPROJ-5025bc670ea3790b30b7e3a536f83fd930246960.tar.gz
PROJ-5025bc670ea3790b30b7e3a536f83fd930246960.zip
Merge pull request #362 from YannChemin/patch-2
Added more descriptive docs about the OCEA options
Diffstat (limited to 'src')
-rw-r--r--src/PJ_ocea.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PJ_ocea.c b/src/PJ_ocea.c
index 991ed1ef..b268e1b8 100644
--- a/src/PJ_ocea.c
+++ b/src/PJ_ocea.c
@@ -41,6 +41,7 @@ ENTRY0(ocea)
P->rok = P->a / P->k0;
P->rtk = P->a * P->k0;
+ /*If the keyword "alpha" is found in the sentence then use 1point+1azimuth*/
if ( pj_param(P->ctx, P->params, "talpha").i) {
/*Define Pole of oblique transformation from 1 point & 1 azimuth*/
alpha = pj_param(P->ctx, P->params, "ralpha").f;
@@ -49,6 +50,7 @@ ENTRY0(ocea)
P->singam = atan(-cos(alpha)/(-sin(phi_0) * sin(alpha))) + lonz;
/*Equation 9-7 page 80 (http://pubs.usgs.gov/pp/1395/report.pdf)*/
P->sinphi = asin(cos(phi_0) * sin(alpha));
+ /*If the keyword "alpha" is NOT found in the sentence then use 2points*/
} else {
/*Define Pole of oblique transformation from 2 points*/
phi_1 = pj_param(P->ctx, P->params, "rlat_1").f;