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

Function pj_find_generic_grid

src/grids.cpp:3827–3838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3825// ---------------------------------------------------------------------------
3826
3827const GenericShiftGrid *pj_find_generic_grid(const ListOfGenericGrids &grids,
3828 const PJ_LP &input,
3829 GenericShiftGridSet *&gridSetOut) {
3830 for (const auto &gridset : grids) {
3831 auto grid = gridset->gridAt(input.lam, input.phi);
3832 if (grid) {
3833 gridSetOut = gridset.get();
3834 return grid;
3835 }
3836 }
3837 return nullptr;
3838}
3839
3840// ---------------------------------------------------------------------------
3841

Callers 2

get_grid_valuesFunction · 0.85

Calls 2

gridAtMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected