Skip to content

Commit 7fd8b1b

Browse files
committed
Test tif loading with artificial data
1 parent 876856a commit 7fd8b1b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/runtests.jl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,19 @@ end
6565
@testitem "ArchGDAL Loading of Geotiff Overviews" begin
6666
using ArchGDAL: ArchGDAL as AG
6767
using PyramidScheme: PyramidScheme as PS
68-
@show pwd()
69-
@show @__DIR__
70-
path = joinpath(@__DIR__,"data/pyramidmiddle.tif")
68+
using Rasters
69+
data = rand(2000,2000)
70+
r = Raster(data, (X(1:2000), Y(1:2000)))
71+
tname = tempname() * ".tif"
72+
write(tname, r, driver="cog", force=true)
73+
ptif = Pyramid(tname)
7174
#ras = Raster(path, lazy=true)
72-
pyr =PS.Pyramid(path)
73-
@test pyr isa PS.Pyramid
74-
@test PS.nlevels(pyr) == 2
75-
sub = pyr[1:10,1:10]
75+
@test ptif isa PS.Pyramid
76+
@test PS.nlevels(ptif) == 2
77+
sub = ptif[1:10,1:10]
7678
@test sub isa PS.Pyramid
7779
end
80+
=#
7881

7982
@testitem "Zarr build Pyramid inplace" begin
8083
using Zarr

0 commit comments

Comments
 (0)