Ejemplo n.º 1
0
def test_rastertiles_read_tile_small():
    """Should work as expected (create rastertiles object and read tile)."""
    r = RasterTiles(raster_path, tiles_size=256)
    z = 18
    x = 86240
    y = 119094
    data, mask = r.read_tile(z, x, y)
    assert data.shape == (3, 256, 256)
    assert mask.shape == (256, 256)
Ejemplo n.º 2
0
def test_rastertiles_read_tile():
    """Should work as expected (create rastertiles object and read tile)."""
    r = RasterTiles(raster_path)
    z = 18
    x = 86240
    y = 119094
    data, mask = r.read_tile(z, x, y)
    assert data.shape == (3, 512, 512)
    assert mask.shape == (512, 512)