| 118 | } |
| 119 | |
| 120 | geometry::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 | |
| 130 | geometry::Altitude SrtmTile::GetHeightRC(size_t row, size_t col) const |
| 131 | { |