File: make_bad_points.py

package info (click to toggle)
liblas 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,888 kB
  • ctags: 4,614
  • sloc: cpp: 31,630; xml: 4,195; python: 2,928; ansic: 2,439; cs: 2,411; sh: 143; makefile: 37
file content (22 lines) | stat: -rwxr-xr-x 406 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from liblas import file
from liblas import header
from liblas import point

import datetime

h = header.Header()
h.date = datetime.datetime.now()
h.dataformat_id = 1

f = file.File('bad_points_1.1.las', mode='w', header=h)

p = point.Point()
p.flightline_edge = 3
p.return_number = 3
p.classification = 63
p.scan_angle = -127

#p.time = datetime.datetime(1969, 12, 31, 17, 59, 59, 2)

f.write(p)
f.close()