def test_tile_from_lat_lon_returns_correctly_near_center_tile_4(self): m = CubeMap(width=1536, height=1024) i = m.tile_from_lat_lon((radians(85), radians(0))).cube_face self.assertEqual(4, i)
def test_tile_from_lat_lon_returns_correctly_center_tile_5(self): m = CubeMap(width=1536, height=1024) i = m.tile_from_lat_lon((radians(-80), -radians(-40))).cube_face self.assertEqual(5, i)
def test_tile_from_lat_lon_returns_correctly_near_tile_5_edge(self): m = CubeMap(width=1536, height=1024) i = m.tile_from_lat_lon((radians(40), -radians(50))).cube_face self.assertEqual(4, i)