File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 19
19
Base. size (b:: GDALBand ) = b. size
20
20
DiskArrays. eachchunk (b:: GDALBand ) = b. cs
21
21
DiskArrays. haschunks (:: GDALBand ) = DiskArrays. Chunked ()
22
- function DiskArrays. readblock! (b:: GDALBand , aout, r:: AbstractUnitRange... )
23
- AG. read (b. filename) do ds
24
- AG. getband (ds, b. band) do bh
25
- DiskArrays. readblock! (bh, aout, r... )
22
+
23
+ function DiskArrays. readblock! (b:: GDALBand , aout:: Matrix , r:: AbstractUnitRange... )
24
+ AG. read (b. filename) do ds
25
+ AG. getband (ds, b. band) do bh
26
+ DiskArrays. readblock! (bh, aout, r... )
27
+
26
28
end
27
29
end
28
- end
30
+ end
31
+
32
+ function DiskArrays. readblock! (b:: GDALBand , aout, r:: AbstractUnitRange... )
33
+ aout2 = similar (aout)
34
+ DiskArrays. readblock! (b, aout2, r)
35
+ aout .= aout2
36
+ end
37
+
38
+
29
39
function DiskArrays. writeblock! (b:: GDALBand , ain, r:: AbstractUnitRange... )
30
40
AG. read (b. filename, flags= AG. OF_Update) do ds
31
41
AG. getband (ds, b. band) do bh
You can’t perform that action at this time.
0 commit comments