aboutsummaryrefslogtreecommitdiff
path: root/src/projections/healpix.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-04-26 18:18:30 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-04-26 18:18:30 +0200
commit00980bf63fae6d350f425c44a648f33d7c09a931 (patch)
tree4a8aa7085f3bb01cfaa713e5ac6450dffec77ff2 /src/projections/healpix.cpp
parent210df01d861f4d75b3e4c698b9394d6d48989169 (diff)
downloadPROJ-00980bf63fae6d350f425c44a648f33d7c09a931.tar.gz
PROJ-00980bf63fae6d350f425c44a648f33d7c09a931.zip
Prefix inverse and forward functions by their projection names
This is mostly to have better OSSFuzz report. Currently a lot of bug summaries are like `proj4/standard_fuzzer: Divide-by-zero in s_inverse` By prefixing the projection name, we will get better reports, like `Divide-by-zero in airy_s_inverse` This also makes it slightly easier to set a breakpoint by function name.
Diffstat (limited to 'src/projections/healpix.cpp')
-rw-r--r--src/projections/healpix.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/projections/healpix.cpp b/src/projections/healpix.cpp
index e9924e04..515f4f6f 100644
--- a/src/projections/healpix.cpp
+++ b/src/projections/healpix.cpp
@@ -281,7 +281,7 @@ static PJ_XY healpix_sphere(PJ_LP lp) {
/**
* Return the inverse of healpix_sphere().
**/
-static PJ_LP healpix_sphere_inverse(PJ_XY xy) {
+static PJ_LP healpix_spherhealpix_e_inverse(PJ_XY xy) {
PJ_LP lp;
double x = xy.x;
double y = xy.y;
@@ -532,7 +532,7 @@ static PJ_LP s_healpix_inverse(PJ_XY xy, PJ *P) { /* sphere */
pj_ctx_set_errno(P->ctx, PJD_ERR_INVALID_X_OR_Y);
return lp;
}
- return healpix_sphere_inverse(xy);
+ return healpix_spherhealpix_e_inverse(xy);
}
@@ -546,7 +546,7 @@ static PJ_LP e_healpix_inverse(PJ_XY xy, PJ *P) { /* ellipsoid */
pj_ctx_set_errno(P->ctx, PJD_ERR_INVALID_X_OR_Y);
return lp;
}
- lp = healpix_sphere_inverse(xy);
+ lp = healpix_spherhealpix_e_inverse(xy);
lp.phi = auth_lat(P, lp.phi, 1);
return lp;
}
@@ -581,7 +581,7 @@ static PJ_LP s_rhealpix_inverse(PJ_XY xy, PJ *P) { /* sphere */
return lp;
}
xy = combine_caps(xy.x, xy.y, Q->north_square, Q->south_square, 1);
- return healpix_sphere_inverse(xy);
+ return healpix_spherhealpix_e_inverse(xy);
}
@@ -597,7 +597,7 @@ static PJ_LP e_rhealpix_inverse(PJ_XY xy, PJ *P) { /* ellipsoid */
return lp;
}
xy = combine_caps(xy.x, xy.y, Q->north_square, Q->south_square, 1);
- lp = healpix_sphere_inverse(xy);
+ lp = healpix_spherhealpix_e_inverse(xy);
lp.phi = auth_lat(P, lp.phi, 1);
return lp;
}