[Liblas-commits] hg-main-tree: sync apps with new initialize()
req'ment
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Aug 1 19:49:21 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/7706439c9431
changeset: 975:7706439c9431
user: Michael P. Gerlek <mpg at flaxen.com>
date: Mon Aug 01 16:49:15 2011 -0700
description:
sync apps with new initialize() req'ment
diffstat:
apps/pc2pc.cpp | 7 +++++++
apps/pcinfo.cpp | 2 ++
apps/pcview/main.cpp | 2 ++
3 files changed, 11 insertions(+), 0 deletions(-)
diffs (69 lines):
diff -r f170d83eaf4d -r 7706439c9431 apps/pc2pc.cpp
--- a/apps/pc2pc.cpp Mon Aug 01 16:46:11 2011 -0700
+++ b/apps/pc2pc.cpp Mon Aug 01 16:49:15 2011 -0700
@@ -132,6 +132,8 @@
//writer.setPointFormat( reader.getPointFormatNumber() );
+ writer.initialize();
+
writer.write(numPoints);
}
@@ -183,6 +185,7 @@
// pdal::filters::ByteSwapFilter swapper(descalingFilter);
pdal::drivers::oci::Writer writer(descalingFilter, options);
+ writer.initialize();
writer.write(numPoints);
@@ -249,6 +252,7 @@
writer->setChunkSize(oracle_options.get<boost::uint32_t>("capacity"));
writer->setPointFormat(pdal::drivers::las::PointFormat3);
+ writer->initialize();
writer->write(0);
delete writer;
@@ -261,6 +265,7 @@
writer->setChunkSize(oracle_options.get<boost::uint32_t>("capacity"));
writer->setPointFormat(pdal::drivers::las::PointFormat3);
+ writer->initialize();
writer->write(0);
delete writer;
@@ -299,6 +304,8 @@
writer.setPointFormat( reader.getPointFormat() );
+ writer.initialize();
+
writer.write(numPoints);
}
diff -r f170d83eaf4d -r 7706439c9431 apps/pcinfo.cpp
--- a/apps/pcinfo.cpp Mon Aug 01 16:46:11 2011 -0700
+++ b/apps/pcinfo.cpp Mon Aug 01 16:49:15 2011 -0700
@@ -111,6 +111,8 @@
return 1;
}
+ reader.initialize();
+
const boost::uint64_t numPoints = reader->getNumPoints();
const SpatialReference& srs = reader->getSpatialReference();
diff -r f170d83eaf4d -r 7706439c9431 apps/pcview/main.cpp
--- a/apps/pcview/main.cpp Mon Aug 01 16:46:11 2011 -0700
+++ b/apps/pcview/main.cpp Mon Aug 01 16:49:15 2011 -0700
@@ -238,6 +238,8 @@
pdal::Stage* colorizer = new pdal::filters::ColorFilter(*decimator);
+ colorizer->initialize();
+
const boost::uint32_t numPoints = (boost::uint32_t)colorizer->getNumPoints();
#if 1
More information about the Liblas-commits
mailing list