[Liblas-commits] hg: use proper path for points minimums for --min-offset

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Oct 29 10:29:11 EDT 2010


changeset 5fff1d2e78f6 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=5fff1d2e78f6
summary: use proper path for points minimums for --min-offset

diffstat:

 apps/las2las.cpp |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r b7880519887b -r 5fff1d2e78f6 apps/las2las.cpp
--- a/apps/las2las.cpp	Fri Oct 29 09:12:30 2010 -0500
+++ b/apps/las2las.cpp	Fri Oct 29 09:29:05 2010 -0500
@@ -106,25 +106,24 @@
     liblas::Summary* summary = new liblas::Summary;
     
     reader.SetFilters(filters);
-    reader.SetTransforms(transforms);
-
+    reader.SetTransforms(transforms);    
+    
     if (min_offset) 
     {
         
         liblas::property_tree::ptree tree = reader.Summarize();
-    
         try
         {
-            header.SetOffset(tree.get<double>("minimum.x"),
-                             tree.get<double>("minimum.y"),
-                             tree.get<double>("minimum.z"));
+            header.SetOffset(tree.get<double>("summary.points.minimum.x"),
+                             tree.get<double>("summary.points.minimum.y"),
+                             tree.get<double>("summary.points.minimum.z"));
     
                               
         }
         catch (liblas::property_tree::ptree_bad_path const& e) 
         {
             std::cerr << "Unable to write minimum header info.  Does the outputted file have any points?";
-            e.what();
+            std::cerr << e.what() << std::endl;
             return false;
         }
         if (verbose) 


More information about the Liblas-commits mailing list