aboutsummaryrefslogtreecommitdiff
path: root/src/conversions/cart.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2018-12-31 11:37:51 +0100
committerGitHub <noreply@github.com>2018-12-31 11:37:51 +0100
commit32f3ef47e55c38b0eabb6d781fee3944d3239414 (patch)
treeba2850500ee732559bada055dbab281ceff49a22 /src/conversions/cart.cpp
parent5c41d3a1078895ed096b416db15c91108bccad87 (diff)
parent0e0e0e475414ddeb75e0e140d8a3381a431036d9 (diff)
downloadPROJ-32f3ef47e55c38b0eabb6d781fee3944d3239414.tar.gz
PROJ-32f3ef47e55c38b0eabb6d781fee3944d3239414.zip
Merge pull request #1208 from rouault/merge_PJ_and_PJ_OBJ
Unify PJ_OBJ and PJ structures
Diffstat (limited to 'src/conversions/cart.cpp')
-rw-r--r--src/conversions/cart.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/conversions/cart.cpp b/src/conversions/cart.cpp
index 6fed9985..f8ec256b 100644
--- a/src/conversions/cart.cpp
+++ b/src/conversions/cart.cpp
@@ -43,7 +43,7 @@
#define PJ_LIB__
#include "proj_internal.h"
-#include "projects.h"
+#include "proj_internal.h"
#include "proj_math.h"
PROJ_HEAD(cart, "Geodetic/cartesian conversions");
@@ -131,10 +131,10 @@ static double geocentric_radius (double a, double b, double phi) {
/*********************************************************************/
-static XYZ cartesian (LPZ geod, PJ *P) {
+static PJ_XYZ cartesian (PJ_LPZ geod, PJ *P) {
/*********************************************************************/
double N, cosphi = cos(geod.phi);
- XYZ xyz;
+ PJ_XYZ xyz;
N = normal_radius_of_curvature(P->a, P->es, geod.phi);
@@ -148,10 +148,10 @@ static XYZ cartesian (LPZ geod, PJ *P) {
/*********************************************************************/
-static LPZ geodetic (XYZ cart, PJ *P) {
+static PJ_LPZ geodetic (PJ_XYZ cart, PJ *P) {
/*********************************************************************/
double N, p, theta, c, s;
- LPZ lpz;
+ PJ_LPZ lpz;
/* Perpendicular distance from point to Z-axis (HM eq. 5-28) */
p = hypot (cart.x, cart.y);
@@ -185,7 +185,7 @@ static LPZ geodetic (XYZ cart, PJ *P) {
/* In effect, 2 cartesian coordinates of a point on the ellipsoid. Rather pointless, but... */
-static XY cart_forward (LP lp, PJ *P) {
+static PJ_XY cart_forward (PJ_LP lp, PJ *P) {
PJ_COORD point;
point.lp = lp;
point.lpz.z = 0;
@@ -195,7 +195,7 @@ static XY cart_forward (LP lp, PJ *P) {
}
/* And the other way round. Still rather pointless, but... */
-static LP cart_reverse (XY xy, PJ *P) {
+static PJ_LP cart_reverse (PJ_XY xy, PJ *P) {
PJ_COORD point;
point.xy = xy;
point.xyz.z = 0;