[Liblas-commits] hg: base point dimension is now 5, with time and classification

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Feb 18 09:10:26 EST 2011


details:   http://hg.liblas.orghg/rev/5bc1a235f1e6
changeset: 2867:5bc1a235f1e6
user:      Howard Butler <hobu.inc at gmail.com>
date:      Fri Feb 18 08:10:20 2011 -0600
description:
base point dimension is now 5, with time and classification

diffstat:

 python/scripts/oci2las.py |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 36ee969435d0 -r 5bc1a235f1e6 python/scripts/oci2las.py
--- a/python/scripts/oci2las.py	Thu Feb 17 12:14:44 2011 -0600
+++ b/python/scripts/oci2las.py	Fri Feb 18 08:10:20 2011 -0600
@@ -14,7 +14,7 @@
 import cx_Oracle as oci
 
 # big-endian DOUBLE, DOUBLE, DOUBLE, LONG, LONG
-format = '>dddll'
+format = '>dddddll'
 ptsize = struct.calcsize(format)
 
 
@@ -145,9 +145,11 @@
         for i in xrange(num_points):
             rng = ptsize*i,ptsize*(i+1)
             d = struct.unpack(format,blob[ptsize*i:ptsize*(i+1)])
-            x, y, z, blk_id, pt_id = d
+            x, y, z, time, classification, blk_id, pt_id = d
             p = point.Point()
             p.x = x; p.y = y; p.z = z
+            p.classification = classification
+            p.raw_time = time
 
             if self.first_point:
                 self.min.x = p.x


More information about the Liblas-commits mailing list