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

Method GetHeight

generator/srtm_parser.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120geometry::Altitude SrtmTile::GetHeight(ms::LatLon const & coord) const
121{
122 if (!IsValid())
123 return geometry::kInvalidAltitude;
124
125 auto const ll = GetCoordInSeconds(coord);
126
127 return GetHeightRC(std::lround(ll.m_lat), std::lround(ll.m_lon));
128}
129
130geometry::Altitude SrtmTile::GetHeightRC(size_t row, size_t col) const
131{

Callers 2

UNIT_TESTFunction · 0.45
mainFunction · 0.45

Calls 1

IsValidFunction · 0.50

Tested by 1

UNIT_TESTFunction · 0.36