예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)