[Liblas-commits] r1045 - trunk/test/data
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Feb 17 17:35:07 EST 2009
Author: hobu
Date: Tue Feb 17 17:35:05 2009
New Revision: 1045
URL: http://liblas.org/changeset/1045
Log:
add test data array
Added:
trunk/test/data/1.0_0.las (contents, props changed)
trunk/test/data/1.0_1.las (contents, props changed)
trunk/test/data/1.1_0.las (contents, props changed)
trunk/test/data/1.1_1.las (contents, props changed)
trunk/test/data/1.2_0.las (contents, props changed)
trunk/test/data/1.2_1.las (contents, props changed)
trunk/test/data/1.2_2.las (contents, props changed)
trunk/test/data/1.2_3.las (contents, props changed)
Modified:
trunk/test/data/make_data.py (contents, props changed)
Added: trunk/test/data/1.0_0.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.0_1.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.1_0.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.1_1.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.2_0.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.2_1.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.2_2.las
==============================================================================
Binary file. No diff available.
Added: trunk/test/data/1.2_3.las
==============================================================================
Binary file. No diff available.
Modified: trunk/test/data/make_data.py
==============================================================================
--- trunk/test/data/make_data.py (original)
+++ trunk/test/data/make_data.py Tue Feb 17 17:35:05 2009
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
from liblas import file
from liblas import header
from liblas import point
@@ -17,9 +19,12 @@
p.x = 42.0000
p.y = -93.00
p.z = 16.0
-p.color.red=255
-p.color.green=12
-p.color.blue=234
+c = color.Color()
+
+c.red=255
+c.green=12
+c.blue=234
+p.color = c
p.time = datetime.datetime.now()
print p.time
@@ -30,7 +35,7 @@
h.dataformat_id = format
h.major_version = 1
h.minor_version = version
- f = file.File('test_1.%d_pointformat%d.las'%(version,format), mode='w', header=h)
+ f = file.File('1.%d_%d.las'%(version,format), mode='w', header=h)
f.write(p)
f.close()
More information about the Liblas-commits
mailing list