aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_vgridshift.c
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2017-11-25 06:23:42 +0100
committerGitHub <noreply@github.com>2017-11-25 06:23:42 +0100
commita2a546a74acf16cf0721ce3572534f06c2822b11 (patch)
treec8fe3e4433a687f1a5e115fff10faf1d42b76338 /src/PJ_vgridshift.c
parentbea0c8b0c015ef0a5c136b904d63ad7f4a4427bf (diff)
downloadPROJ-a2a546a74acf16cf0721ce3572534f06c2822b11.tar.gz
PROJ-a2a546a74acf16cf0721ce3572534f06c2822b11.zip
Improve API (#683)
Increase the focus on PJ_COORD as primary datatype: Eliminate use of PJ_TRIPLET etc. Trim proj.h by removing material that has become unnecessary. Improve constness Make proj_factors work in proj.h space, by providing a trimmed down PJ_FACTORS (which even has more meaningful field names)
Diffstat (limited to 'src/PJ_vgridshift.c')
-rw-r--r--src/PJ_vgridshift.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PJ_vgridshift.c b/src/PJ_vgridshift.c
index 97faa240..850734fc 100644
--- a/src/PJ_vgridshift.c
+++ b/src/PJ_vgridshift.c
@@ -6,7 +6,7 @@ PROJ_HEAD(vgridshift, "Vertical grid shift");
static XYZ forward_3d(LPZ lpz, PJ *P) {
- PJ_TRIPLET point;
+ PJ_COORD point = {{0,0,0,0}};
point.lpz = lpz;
if (P->vgridlist_geoid != NULL) {
@@ -20,7 +20,7 @@ static XYZ forward_3d(LPZ lpz, PJ *P) {
static LPZ reverse_3d(XYZ xyz, PJ *P) {
- PJ_TRIPLET point;
+ PJ_COORD point = {{0,0,0,0}};
point.xyz = xyz;
if (P->vgridlist_geoid != NULL) {
@@ -34,7 +34,7 @@ static LPZ reverse_3d(XYZ xyz, PJ *P) {
static PJ_COORD forward_4d(PJ_COORD obs, PJ *P) {
- PJ_COORD point;
+ PJ_COORD point = {{0,0,0,0}};
point.xyz = forward_3d (obs.lpz, P);
return point;
}