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

Method gridAt

src/grids.cpp:1708–1717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1706// ---------------------------------------------------------------------------
1707
1708const VerticalShiftGrid *VerticalShiftGrid::gridAt(double longitude,
1709 double lat) const {
1710 for (const auto &child : m_children) {
1711 const auto &extentChild = child->extentAndRes();
1712 if (isPointInExtent(longitude, lat, extentChild)) {
1713 return child->gridAt(longitude, lat);
1714 }
1715 }
1716 return this;
1717}
1718// ---------------------------------------------------------------------------
1719
1720const VerticalShiftGrid *VerticalShiftGridSet::gridAt(double longitude,

Callers 3

findGridFunction · 0.45
read_vgrid_valueFunction · 0.45
pj_find_generic_gridFunction · 0.45

Calls 4

isPointInExtentFunction · 0.85
typeMethod · 0.80
isNullGridMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected