[Liblas-commits] r1048 - trunk/test/data

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Feb 19 00:27:08 EST 2009


Author: hobu
Date: Thu Feb 19 00:27:08 2009
New Revision: 1048
URL: http://liblas.org/changeset/1048

Log:
make files more rigorous

Modified:
   trunk/test/data/1.0_0.las
   trunk/test/data/1.0_1.las
   trunk/test/data/1.1_0.las
   trunk/test/data/1.1_1.las
   trunk/test/data/1.2_0.las
   trunk/test/data/1.2_1.las
   trunk/test/data/1.2_2.las
   trunk/test/data/1.2_3.las
   trunk/test/data/make_data.py

Modified: trunk/test/data/1.0_0.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.0_1.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.1_0.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.1_1.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.2_0.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.2_1.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.2_2.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/1.2_3.las
==============================================================================
Binary files. No diff available.

Modified: trunk/test/data/make_data.py
==============================================================================
--- trunk/test/data/make_data.py	(original)
+++ trunk/test/data/make_data.py	Thu Feb 19 00:27:08 2009
@@ -20,9 +20,10 @@
 c.green=12
 c.blue=234
 p.color = c
-p.time = datetime.datetime.now()
+p.time = datetime.datetime(2008,3,19)
+p.classification = 2
+p.return_number = 2
 
-print p.time
 
 def write_file(version, format):
     h = header.Header()
@@ -30,7 +31,11 @@
     h.dataformat_id = format
     h.major_version = 1
     h.minor_version = version
+    h.min = [p.x, p.y, p.z]
+    h.max = [p.x, p.y, p.z]
+    h.point_return_count = [0L, 1L, 0L, 0L, 0L, 0L, 0L, 0L]
     h.proj4 = '+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs '
+    h.date = p.time
     
     f = file.File('1.%d_%d.las'%(version,format), mode='w', header=h)
     f.write(p)


More information about the Liblas-commits mailing list