MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pj_gridshift_forward_3d

Function pj_gridshift_forward_3d

src/transformations/gridshift.cpp:838–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836// ---------------------------------------------------------------------------
837
838static PJ_XYZ pj_gridshift_forward_3d(PJ_LPZ lpz, PJ *P) {
839 auto Q = static_cast<gridshiftData *>(P->opaque);
840
841 if (!Q->loadGridsIfNeeded(P)) {
842 return proj_coord_error().xyz;
843 }
844
845 PJ_XYZ xyz;
846 xyz.x = lpz.lam;
847 xyz.y = lpz.phi;
848 xyz.z = lpz.z;
849
850 xyz = Q->apply(P, PJ_FWD, xyz);
851
852 xyz.x += Q->m_offsetX;
853 xyz.y += Q->m_offsetY;
854
855 return xyz;
856}
857
858// ---------------------------------------------------------------------------
859

Callers

nothing calls this directly

Calls 3

proj_coord_errorFunction · 0.85
loadGridsIfNeededMethod · 0.80
applyMethod · 0.80

Tested by

no test coverage detected