File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 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
7779end
80+ = #
7881
7982@testitem " Zarr build Pyramid inplace" begin
8083 using Zarr
You can’t perform that action at this time.
0 commit comments