[Liblas-commits] hg-main-tree: move schema modification into initialize() method ...

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Aug 11 11:39:21 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/ea00b6f9de63
changeset: 1033:ea00b6f9de63
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Aug 11 10:39:17 2011 -0500
description:
move schema modification into initialize() method so that chipper-specific fields such as block_id and point_id are added

diffstat:

 src/filters/Chipper.cpp |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r e9a4b3aaf365 -r ea00b6f9de63 src/filters/Chipper.cpp
--- a/src/filters/Chipper.cpp	Thu Aug 11 08:52:06 2011 -0500
+++ b/src/filters/Chipper.cpp	Thu Aug 11 10:39:17 2011 -0500
@@ -96,8 +96,6 @@
 {
     pdal::Schema const& schema = buffer.getSchema();
 
-    
-        
     boost::int32_t size = m_right - m_left + 1;
     if (size < 0)
         throw pdal_error("m_right - m_left + 1 was less than 0 in Block::GetBuffer()!");
@@ -145,9 +143,6 @@
 {
     m_threshold = options.getValueOrThrow<boost::uint32_t>("capacity");
 
-    checkImpedance();
-    setPointCountType(PointCount_Fixed);
-    setNumPoints(0);
 }
 
 
@@ -155,6 +150,10 @@
 {
     Filter::initialize();
 
+    checkImpedance();
+    setPointCountType(PointCount_Fixed);
+    setNumPoints(0);
+
     return;
 }
 
@@ -499,7 +498,6 @@
         schema.addDimension(blockID);
     }
     
-    // std::cout << schema << std::endl;
     return;
 }
 


More information about the Liblas-commits mailing list