Skip to content

Commit

Permalink
Merge pull request #77 from rskelly/header_reproject_76
Browse files Browse the repository at this point in the history
Issue #76: las2las tries to reproject header bounds without setting coordinates.
  • Loading branch information
hobu committed Dec 22, 2015
2 parents f081d81 + 15f05c4 commit a143b30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/laskernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,11 @@ std::vector<liblas::TransformPtr> GetTransforms(po::variables_map vm, bool verbo
liblas::ReprojectionTransform trans(in_ref, out_ref);

liblas::Point minimum(&header);
minimum.SetCoordinates(b.minx(), b.miny(), b.minz());

liblas::Point maximum(&header);
maximum.SetCoordinates(b.maxx(), b.maxy(), b.maxz());

trans.transform(minimum);
trans.transform(maximum);
b = liblas::Bounds<double>(minimum, maximum);
Expand Down

0 comments on commit a143b30

Please sign in to comment.