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

Method loadGridsIfNeeded

src/transformations/gridshift.cpp:727–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725// ---------------------------------------------------------------------------
726
727bool gridshiftData::loadGridsIfNeeded(PJ *P) {
728 if (m_error_code_in_defer_grid_opening) {
729 proj_errno_set(P, m_error_code_in_defer_grid_opening);
730 return false;
731 } else if (m_defer_grid_opening) {
732 m_defer_grid_opening = false;
733 m_grids = pj_generic_grid_init(P, "grids");
734 m_error_code_in_defer_grid_opening = proj_errno(P);
735 if (m_error_code_in_defer_grid_opening) {
736 return false;
737 }
738 bool isProjectedCoord;
739 if (!checkGridTypes(P, isProjectedCoord)) {
740 return false;
741 }
742 }
743 return true;
744}
745
746// ---------------------------------------------------------------------------
747

Callers 2

pj_gridshift_forward_3dFunction · 0.80
pj_gridshift_reverse_3dFunction · 0.80

Calls 3

proj_errno_setFunction · 0.85
pj_generic_grid_initFunction · 0.85
proj_errnoFunction · 0.85

Tested by

no test coverage detected