Exemplo n.º 1
0
 def test_num_tiles(self):
     ts = TileGrid(4, 2, 1, 540, 540, GLOBAL_GEO_EXTENT, inv_y=False)
     self.assertEqual(ts.num_tiles_x(0), 2)
     self.assertEqual(ts.num_tiles_y(0), 1)
     self.assertEqual(ts.num_tiles_x(3), 16)
     self.assertEqual(ts.num_tiles_y(3), 8)
Exemplo n.º 2
0
 def test_num_tiles(self):
     ts = TileGrid(4, 2, 1, 540, 540, POS_Y_AXIS_GLOBAL_RECT)
     self.assertEqual(ts.num_tiles_x(0), 2)
     self.assertEqual(ts.num_tiles_y(0), 1)
     self.assertEqual(ts.num_tiles_x(3), 16)
     self.assertEqual(ts.num_tiles_y(3), 8)