aboutsummaryrefslogtreecommitdiff
path: root/src/projections/crast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projections/crast.cpp')
-rw-r--r--src/projections/crast.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/projections/crast.cpp b/src/projections/crast.cpp
index 4e4dee8b..76846dbe 100644
--- a/src/projections/crast.cpp
+++ b/src/projections/crast.cpp
@@ -1,6 +1,7 @@
#define PJ_LIB__
#include <math.h>
+#include "proj.h"
#include "projects.h"
PROJ_HEAD(crast, "Craster Parabolic (Putnins P4)") "\n\tPCyl, Sph";
@@ -12,8 +13,8 @@ PROJ_HEAD(crast, "Craster Parabolic (Putnins P4)") "\n\tPCyl, Sph";
#define THIRD 0.333333333333333333
-static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */
- XY xy = {0.0,0.0};
+static PJ_XY s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */
+ PJ_XY xy = {0.0,0.0};
(void) P;
lp.phi *= THIRD;
xy.x = XM * lp.lam * (2. * cos(lp.phi + lp.phi) - 1.);
@@ -22,8 +23,8 @@ static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */
}
-static LP s_inverse (XY xy, PJ *P) { /* Spheroidal, inverse */
- LP lp = {0.0,0.0};
+static PJ_LP s_inverse (PJ_XY xy, PJ *P) { /* Spheroidal, inverse */
+ PJ_LP lp = {0.0,0.0};
(void) P;
lp.phi = 3. * asin(xy.y * RYM);
lp.lam = xy.x * RXM / (2. * cos((lp.phi + lp.phi) * THIRD) - 1);