mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 12:39:49 -06:00
fix a bug in rawtilereader causing less map layers to be read
This commit is contained in:
@@ -564,7 +564,7 @@ void RawTileDataReader::initialize() {
|
||||
const int numOverviews = _dataset->GetRasterBand(1)->GetOverviewCount();
|
||||
_maxChunkLevel = static_cast<int>(-tileLevelDifference);
|
||||
if (numOverviews > 0) {
|
||||
_maxChunkLevel += numOverviews - 1;
|
||||
_maxChunkLevel += numOverviews;
|
||||
}
|
||||
_maxChunkLevel = std::max(_maxChunkLevel, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user