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

Function direct_adjustment

src/transformations/xyzgridshift.cpp:155–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153// ---------------------------------------------------------------------------
154
155static PJ_COORD direct_adjustment(PJ *P, xyzgridshiftData *Q, PJ_COORD point,
156 double factor) {
157 PJ_COORD geodetic;
158 geodetic.lpz = pj_inv3d(point.xyz, Q->cart);
159
160 double dx, dy, dz;
161 if (!get_grid_values(P, Q, geodetic.lp, dx, dy, dz)) {
162 return proj_coord_error();
163 }
164 point.xyz.x += factor * dx;
165 point.xyz.y += factor * dy;
166 point.xyz.z += factor * dz;
167 return point;
168}
169
170// ---------------------------------------------------------------------------
171

Callers 2

Calls 3

pj_inv3dFunction · 0.85
get_grid_valuesFunction · 0.85
proj_coord_errorFunction · 0.85

Tested by

no test coverage detected