Skip to content

Commit

Permalink
Fix partitioning logic in a bit celltype case
Browse files Browse the repository at this point in the history
Signed-off-by: Grisha Pomadchin <gr.pomadchin@gmail.com>
  • Loading branch information
pomadchin authored and echeipesh committed Dec 20, 2017
1 parent b814bf1 commit 6ba4ddb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ private [geotrellis] trait GeoTiffInfoReader extends LazyLogging {
info.segmentLayout.listWindows(maxSize)
}

info.segmentLayout.partitionWindowsBySegments(windows, partitionBytes / info.cellType.bytes)
info.segmentLayout.partitionWindowsBySegments(windows, partitionBytes / math.max(info.cellType.bytes, 1))
}

def readWindows[O, I, K, V](
Expand Down

0 comments on commit 6ba4ddb

Please sign in to comment.