Skip to content

Commit

Permalink
r.in.pdal: use different variable name to avoid confusion (#4782)
Browse files Browse the repository at this point in the history
  • Loading branch information
marisn authored Nov 28, 2024
1 parent 10f2278 commit 0122ff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raster/r.in.pdal/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ void print_lasinfo(struct StringList *infiles)
std::cout << "Point format: " << (int)h.pointFormat() << "\n";
std::cout << "Point offset: " << h.pointOffset() << "\n";
std::cout << "Point count: " << h.pointCount() << "\n";
for (size_t i = 0; i < pdal::LasHeader::RETURN_COUNT; ++i)
std::cout << "Point count by return[" << i + 1 << "]: "
<< const_cast<pdal::LasHeader &>(h).pointCountByReturn(i)
for (size_t k = 0; k < pdal::LasHeader::RETURN_COUNT; ++k)
std::cout << "Point count by return[" << k + 1 << "]: "
<< const_cast<pdal::LasHeader &>(h).pointCountByReturn(k)
<< "\n";
std::cout << "Scales X/Y/Z: " << h.scaleX() << "/" << h.scaleY() << "/"
<< h.scaleZ() << "\n";
Expand Down

0 comments on commit 0122ff5

Please sign in to comment.