[Liblas-commits] hg-main-tree: add some lint
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Apr 11 15:57:20 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/19fd27127551
changeset: 528:19fd27127551
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Apr 11 14:57:15 2011 -0500
description:
add some lint
diffstat:
src/drivers/las/Writer.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r dda3f9a45049 -r 19fd27127551 src/drivers/las/Writer.cpp
--- a/src/drivers/las/Writer.cpp Mon Apr 11 14:43:45 2011 -0500
+++ b/src/drivers/las/Writer.cpp Mon Apr 11 14:57:15 2011 -0500
@@ -40,6 +40,8 @@
#include <libpc/SchemaLayout.hpp>
#include <libpc/PointBuffer.hpp>
+#include <iostream>
+
namespace libpc { namespace drivers { namespace las {
@@ -78,8 +80,10 @@
m_lasHeader.SetOffset(dimX.getNumericOffset(), dimY.getNumericOffset(), dimZ.getNumericOffset());
+ std::cout.setf(std::ios_base::fixed, std::ios_base::floatfield);
+ std::cout.precision(2);
-
+ std::cout << "scale: " << dimX.getNumericScale() << dimY.getNumericScale() << dimZ.getNumericScale() << std::endl;
boost::uint32_t cnt = static_cast<boost::uint32_t>(m_targetNumPointsToWrite);
m_lasHeader.SetPointRecordsCount(cnt);
More information about the Liblas-commits
mailing list