[Liblas-commits] hg: 2 new changesets

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jul 21 10:24:47 EDT 2010


changeset ce3942ea9e06 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=ce3942ea9e06
summary: notes about not knowing why this test is failing

changeset 57a472166c20 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=57a472166c20
summary: add lasblock docs

diffstat:

 doc/images/lasblock_big.png           |    0 
 doc/images/lasblock_small.png         |    0 
 doc/utilities/index.txt               |    3 +-
 doc/utilities/las2ogr.txt             |    8 +++--
 doc/utilities/lasblock.txt            |   49 ++++++++++++++++++++++++++++++++++
 test/unit/lasreader_iterator_test.cpp |   20 +++++++++++++
 6 files changed, 76 insertions(+), 4 deletions(-)

diffs (120 lines):

diff -r 9a5ce4fa49d8 -r 57a472166c20 doc/images/lasblock_big.png
Binary file doc/images/lasblock_big.png has changed
diff -r 9a5ce4fa49d8 -r 57a472166c20 doc/images/lasblock_small.png
Binary file doc/images/lasblock_small.png has changed
diff -r 9a5ce4fa49d8 -r 57a472166c20 doc/utilities/index.txt
--- a/doc/utilities/index.txt	Tue Jul 20 21:16:40 2010 -0500
+++ b/doc/utilities/index.txt	Wed Jul 21 09:24:35 2010 -0500
@@ -14,4 +14,5 @@
    lasdiff
    las2ogr
    txt2las
-   las2oci
\ No newline at end of file
+   las2oci
+   lasblock
\ No newline at end of file
diff -r 9a5ce4fa49d8 -r 57a472166c20 doc/utilities/las2ogr.txt
--- a/doc/utilities/las2ogr.txt	Tue Jul 20 21:16:40 2010 -0500
+++ b/doc/utilities/las2ogr.txt	Wed Jul 21 09:24:35 2010 -0500
@@ -21,9 +21,11 @@
 data exchange and processing.
 
 In order to build las2ogr utility, one has to link libLAS against GDAL library.
-For Unix, use ./configure script option --with-gdal.
-For Windows, edit nmake.opt file and set GDAL_HOME variable.
-Windows users can instal GDAL binaries using friendly installer from OSGeo4W package.
+See :ref:`compilation` for details on how to link against GDAL.
+
+.. note::
+    Windows users can install GDAL binaries using friendly installer from OSGeo4W package.
+
 
 Usage
 -----
diff -r 9a5ce4fa49d8 -r 57a472166c20 doc/utilities/lasblock.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/utilities/lasblock.txt	Wed Jul 21 09:24:35 2010 -0500
@@ -0,0 +1,49 @@
+
+.. raw:: pdf
+
+    PageBreak
+    
+.. _lasblock:
+    
+****************************************************************
+  lasblock
+****************************************************************
+
+:Author: Howard Butler
+:Contact: hobu.inc at gmail.com
+
+
+lasblock is a utility for pre-processing an LAS file into "chips" or "blocks".  
+These blocks are a custom point partitioning process that aims to optimize 
+the fill capacity, shape, and speed of processing.  More specifically, 
+it attempts to keep the blocks as full as possible and as square as possible 
+to augment querying characteristics for `Oracle Point Cloud`_. 
+This pre-processing is needed as precursor 
+step in the processing chain that ends with actually loading the data via 
+:ref:`las2oci`.
+
+
+Usage
+------------------------------------------------------------------------------
+
+
+::
+
+    $ lasblock -c 3000 myfile.las
+
+.. note::
+    If no capacity is specified with ``-c``, 10000 is assumed.  
+
+.. note::
+    lasblock will always write out a myfile.las.kdx file name by default, 
+    but you can override the output name with a ``-o`` command-line switch.
+
+
+.. figure:: ./images/lasblock_small.png
+    :alt: lasblock output
+
+.. figure:: ./images/lasblock_big.png
+    :alt: lasblock output
+  
+.. _`Oracle Point Cloud`: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_pc_pkg_ref.htm
+
diff -r 9a5ce4fa49d8 -r 57a472166c20 test/unit/lasreader_iterator_test.cpp
--- a/test/unit/lasreader_iterator_test.cpp	Tue Jul 20 21:16:40 2010 -0500
+++ b/test/unit/lasreader_iterator_test.cpp	Wed Jul 21 09:24:35 2010 -0500
@@ -385,9 +385,29 @@
         bbox_t lasbbox(point_t(h.GetMinX(), h.GetMinY(), h.GetMinZ()),
                        point_t(h.GetMaxX(), h.GetMaxY(), h.GetMaxZ()));
 
+
+        // I don't know why this is failing -- hobu
+
+       // std::cout << std::endl;
+       //  std::cout << "minx: " << h.GetMinX()
+       //            << " miny: " << h.GetMinY()
+       //            << " minz: " << h.GetMinZ()
+       //            << " maxx: " << h.GetMaxX()
+       //            << " maxy: " << h.GetMaxY()
+       //            << " maxz: " << h.GetMaxZ();
+                  
         // Accumulate points extents to common bounding box
         bbox_calculator calculator;
         std::for_each(it, end, calculator);
+        
+        // std::cout << std::endl;
+        // bbox_t b = calculator.get_result();
+        // std::cout << "minx: " << b.min.x
+        //           << " miny: " << b.min.y
+        //           << " minz: " << b.min.z
+        //           << " maxx: " << b.max.x
+        //           << " maxy: " << b.max.y
+        //           << " maxz: " << b.max.z;
 
         ensure(lasbbox == calculator.get_result());
     }


More information about the Liblas-commits mailing list