Beispiel #1
0
 def test_width_and_height(self):
     ts = TileGrid(4, 2, 1, 540, 540, GLOBAL_GEO_EXTENT, inv_y=False)
     self.assertEqual(ts.width(2), 4320)
     self.assertEqual(ts.height(2), 2160)
     self.assertEqual(ts.max_width, 8640)
     self.assertEqual(ts.max_height, 4320)
     self.assertEqual(ts.min_width, 1080)
     self.assertEqual(ts.min_height, 540)
Beispiel #2
0
 def test_width_and_height(self):
     ts = TileGrid(4, 2, 1, 540, 540, POS_Y_AXIS_GLOBAL_RECT)
     self.assertEqual(ts.width(2), 4320)
     self.assertEqual(ts.height(2), 2160)
     self.assertEqual(ts.max_width, 8640)
     self.assertEqual(ts.max_height, 4320)
     self.assertEqual(ts.min_width, 1080)
     self.assertEqual(ts.min_height, 540)