Skip to content

Commit

Permalink
r.in.pdal: use 1 based return numbers in LAS info output
Browse files Browse the repository at this point in the history
According to LAS specification, the first return number is 1.
Fixes #3827
  • Loading branch information
marisn committed Jun 19, 2024
1 parent 55b14b1 commit e9f8fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.in.pdal/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void print_lasinfo(struct StringList *infiles)
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 << "]: "
std::cout << "Point count by return[" << i + 1 << "]: "
<< const_cast<pdal::LasHeader &>(h).pointCountByReturn(i)
<< "\n";
std::cout << "Scales X/Y/Z: " << h.scaleX() << "/" << h.scaleY() << "/"
Expand Down

0 comments on commit e9f8fc7

Please sign in to comment.