Skip to content

Commit 8b6f623

Browse files
committed
revisit eachchunk
1 parent aa09c06 commit 8b6f623

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/ArchGDALExt/archgdaldataset.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ DiskArrays.haschunks(::GDALBand) = DiskArrays.Chunked()
2222
# end
2323
# end
2424
function DiskArrays.readblock!(b::GDALBand, aout::Matrix, r::AbstractUnitRange...)
25-
chunk_size = b.cs.chunks.ranges
25+
@show eachchunk(b)
26+
chunk_size = first(eachchunk(b))
27+
@show chunk_size
2628
# Calculate chunk indices for all dimensions
2729
chunk_indices = [(div(first(r[i])-1, length(chunk_size[i]))+1):(div(last(r[i])-1, length(chunk_size[i]))+1)
2830
for i in eachindex(r)]

0 commit comments

Comments
 (0)