Skip to content

Commit

Permalink
Use proper level for grid size. (PDAL#4246)
Browse files Browse the repository at this point in the history
Close PDAL#4230
  • Loading branch information
abellgithub authored Nov 16, 2023
1 parent a130d37 commit 482688f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/private/copcwriter/Grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void Grid::resetLevel(int level)
{
// We have to have at least level 1 or things break when sampling.
m_maxLevel = (std::max)(level, 1);
m_gridSize = (int)std::pow(2, level);
m_gridSize = (int)std::pow(2, m_maxLevel);

if (m_cubic)
{
Expand Down

0 comments on commit 482688f

Please sign in to comment.