예제 #1
0
 def test_level_range_open_from(self):
     levels = LevelsRange([None, 5])
     assert levels.for_grid(tile_grid_for_epsg(4326)) == [0, 1, 2, 3, 4, 5]
예제 #2
0
 def test_level_range_open_to(self):
     levels = LevelsRange([13, None])
     assert levels.for_grid(
         tile_grid_for_epsg(4326)) == [13, 14, 15, 16, 17, 18, 19]
예제 #3
0
 def test_level_range(self):
     levels = LevelsRange([1, 5])
     assert levels.for_grid(tile_grid_for_epsg(4326)) == [1, 2, 3, 4, 5]
예제 #4
0
 def test_level_range(self):
     levels = LevelsRange([1, 5])
     eq_(levels.for_grid(tile_grid_for_epsg(4326)), [1, 2, 3, 4, 5])
예제 #5
0
 def test_level_range_open_to(self):
     levels = LevelsRange([13, None])
     eq_(levels.for_grid(tile_grid_for_epsg(4326)),
         [13, 14, 15, 16, 17, 18, 19])
예제 #6
0
 def test_level_range_open_from(self):
     levels = LevelsRange([None, 5])
     eq_(levels.for_grid(tile_grid_for_epsg(4326)),
         [0, 1, 2, 3, 4, 5])
예제 #7
0
 def test_level_range(self):
     levels = LevelsRange([1, 5])
     eq_(levels.for_grid(tile_grid_for_epsg(4326)),
         [1, 2, 3, 4, 5])