MCPcopy Create free account
hub / github.com/comaps/comaps / GetValue

Method GetValue

tools/topography_generator/generator.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 {}
211
212 Altitude GetValue(ms::LatLon const & pos) override
213 {
214 if (m_isOnBorderFn(pos))
215 {
216 // Check that we have original neighboring tile, use filtered if haven't.
217 auto const alt = m_originalProvider.GetValue(pos);
218 if (alt != kInvalidAltitude)
219 return alt;
220 }
221 return m_filteredProvider.GetValue(pos);
222 }
223
224 Altitude GetInvalidValue() const override { return kInvalidAltitude; }
225

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected