@@ -41,25 +41,25 @@ import ArchGDAL; const AG = ArchGDAL
4141 AG. setscale! (rb, 1 )
4242 @test AG. getscale (rb) ≈ 1
4343
44- @test AG. getnodatavalue (rb) ≈ - 1e10
44+ @test AG. getnodatavalue (rb) === nothing
4545 AG. setnodatavalue! (rb, - 100 )
4646 @test AG. getnodatavalue (rb) ≈ - 100
4747 AG. deletenodatavalue! (rb)
48- @test AG. getnodatavalue (rb) ≈ - 1e10
48+ @test AG. getnodatavalue (rb) === nothing
4949
5050 AG. copy (dataset) do dest
5151 destband = AG. getband (dest, 1 )
5252 AG. copywholeraster! (rb, destband)
5353 @test sprint (print, destband) == """
5454 [GA_Update] Band 1 (Gray): 100 x 100 (UInt8)
55- blocksize: 100×81, nodata: -1.0e10 , units: 1.0px + 0.0
55+ blocksize: 100×81, nodata: nothing , units: 1.0px + 0.0
5656 overviews: """
5757 @test AG. noverview (destband) == 0
5858 AG. buildoverviews! (dest, Cint[2 , 4 , 8 ])
5959 @test AG. noverview (destband) == 3
6060 @test sprint (print, destband) == """
6161 [GA_Update] Band 1 (Gray): 100 x 100 (UInt8)
62- blocksize: 100×81, nodata: -1.0e10 , units: 1.0px + 0.0
62+ blocksize: 100×81, nodata: nothing , units: 1.0px + 0.0
6363 overviews: (0) 50x50 (1) 25x25 (2) 13x13
6464 """
6565 @test AG. getcolorinterp (destband) == GDAL. GCI_GrayIndex
@@ -68,35 +68,37 @@ import ArchGDAL; const AG = ArchGDAL
6868
6969 @test sprint (print, AG. sampleoverview (destband, 100 )) == """
7070 [GA_Update] Band 1 (Gray): 13 x 13 (UInt8)
71- blocksize: 128×128, nodata: -1.0e10 , units: 1.0px + 0.0
71+ blocksize: 128×128, nodata: nothing , units: 1.0px + 0.0
7272 overviews: """
7373 @test sprint (print, AG. sampleoverview (destband, 200 )) == """
7474 [GA_Update] Band 1 (Gray): 25 x 25 (UInt8)
75- blocksize: 128×128, nodata: -1.0e10 , units: 1.0px + 0.0
75+ blocksize: 128×128, nodata: nothing , units: 1.0px + 0.0
7676 overviews: """
7777 @test sprint (print, AG. sampleoverview (destband, 500 )) == """
7878 [GA_Update] Band 1 (Gray): 25 x 25 (UInt8)
79- blocksize: 128×128, nodata: -1.0e10 , units: 1.0px + 0.0
79+ blocksize: 128×128, nodata: nothing , units: 1.0px + 0.0
8080 overviews: """
8181 AG. sampleoverview (destband, 1000 ) do result
8282 @test sprint (print, result) == """
8383 [GA_Update] Band 1 (Gray): 50 x 50 (UInt8)
84- blocksize: 128×128, nodata: -1.0e10 , units: 1.0px + 0.0
84+ blocksize: 128×128, nodata: nothing , units: 1.0px + 0.0
8585 overviews: """
8686 end
8787 @test sprint (print, AG. getmaskband (destband)) == """
8888 [GA_ReadOnly] Band 0 (Undefined): 100 x 100 (UInt8)
89- blocksize: 100×81, nodata: -1.0e10 , units: 1.0px + 0.0
89+ blocksize: 100×81, nodata: nothing , units: 1.0px + 0.0
9090 overviews: """
9191 @test AG. maskflags (destband) == 1
92+ @test AG. maskflaginfo (rb) == (all_valid = true , per_dataset = false , alpha = false , nodata = false )
9293 AG. createmaskband! (destband, 3 )
9394 AG. getmaskband (destband) do maskband
9495 @test sprint (print, maskband) == """
9596 [GA_Update] Band 1 (Gray): 100 x 100 (UInt8)
96- blocksize: 100×81, nodata: -1.0e10 , units: 1.0px + 0.0
97+ blocksize: 100×81, nodata: nothing , units: 1.0px + 0.0
9798 overviews: """
9899 end
99100 @test AG. maskflags (destband) == 3
101+ @test AG. maskflaginfo (destband) == (all_valid = true , per_dataset = true , alpha = false , nodata = false )
100102 AG. fillraster! (destband, 3 )
101103 AG. setcategorynames! (destband, [" foo" ," bar" ])
102104 @test AG. getcategorynames (destband) == [" foo" , " bar" ]
0 commit comments