root/trunk/python/tests/Point.txt

Revision 947, 1.0 kB (checked in by hobu, 7 weeks ago)

more fixups related to #83.. ensure we use GMT and fix microseconds overflow

Line 
1
2  >>> from liblas import point
3  >>> p = point.Point()
4 
5  >>> p.x
6  0.0
7  >>> p.x = 1.0
8  >>> p.x
9  1.0
10
11  >>> p.y
12  0.0
13  >>> p.y = 1.0
14  >>> p.y
15  1.0
16
17  >>> p.z
18  0.0
19  >>> p.z = 1.0
20  >>> p.z
21  1.0
22
23  >>> p.return_number
24  0
25  >>> p.return_number = 3
26  >>> p.return_number
27  3
28 
29  >>> p.number_of_returns
30  0
31  >>> p.number_of_returns = 4
32  >>> p.number_of_returns
33  4
34 
35  >>> p.flightline_edge
36  0
37  >>> p.flightline_edge = 1
38  >>> p.flightline_edge
39  1
40 
41  >>> p.scan_flags
42  163
43 
44  >>> p.classification
45  0
46  >>> p.classification = 3
47  >>> p.classification
48  3
49 
50  >>> p.user_data
51  0
52  >>> p.user_data = 163446
53  >>> p.user_data
54  118
55 
56  >>> p.scan_angle
57  0
58  >>> p.scan_angle = 45
59  >>> p.scan_angle
60  45
61 
62  >>> import datetime
63  >>> td = datetime.timedelta(hours=5) # my timezone is GMT-5
64  >>> t = datetime.datetime(2008,3,19,23,45,45,13434) - td
65  >>> p.time = t
66  >>> p.time
67  datetime.datetime(2008, 3, 19, 23, 45, 45, 13434)
68  >>> p.time.microsecond
69  13434
70 
71  >>> p.intensity
72  0
73  >>> p.intensity = 120
74  >>> p.intensity
75  120
76   
Note: See TracBrowser for help on using the browser.