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