Skip to content

Commit

Permalink
r.in.pdal: pass LasHeader::header by const ref (#2277)
Browse files Browse the repository at this point in the history
Fixes compilation failure caused by implementation changes of PDAL 2.4.0
  • Loading branch information
nilason committed Mar 24, 2022
1 parent 7573a7c commit 399355d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raster/r.in.pdal/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void get_extent(struct StringList *infiles, double *min_x, double *max_x,
pdal::LasReader las_reader;
las_reader.setOptions(las_opts);
las_reader.prepare(table);
pdal::LasHeader las_header = las_reader.header();
const pdal::LasHeader& las_header = las_reader.header();
if (first) {
*min_x = las_header.minX();
*min_y = las_header.minY();
Expand Down Expand Up @@ -95,7 +95,7 @@ void print_lasinfo(struct StringList *infiles)
pdal::LasReader las_reader;
las_reader.setOptions(las_opts);
las_reader.prepare(table);
pdal::LasHeader las_header = las_reader.header();
const pdal::LasHeader& las_header = las_reader.header();
pdal::PointLayoutPtr point_layout = table.layout();
const pdal::Dimension::IdList & dims = point_layout->dims();

Expand Down

0 comments on commit 399355d

Please sign in to comment.