1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
3
<refentry id='txt2las'>
6
<refentrytitle>txt2las</refentrytitle>
7
<manvolnum>1</manvolnum>
11
<refname>txt2las</refname>
12
<refpurpose>converts LIDAR data from ASCII format into LAS representation</refpurpose>
15
<refsynopsisdiv id='synopsis'>
17
<command>txt2las</command>
19
<arg choice='plain'><option>-h</option></arg>
20
<arg choice='plain'><option>-parse</option> <literal>tsxyz</literal>
21
<replaceable>lidar.txt</replaceable>
23
<arg choice='plain'><option>-parse</option> <literal>txyzar</literal>
24
<replaceable>lidar.txt.gz lidar.laz</replaceable>
26
<arg choice='plain'><option>-parse</option> <literal>xyz</literal>
27
<arg choice='opt'><option>-scale</option>
28
<replaceable>0.02</replaceable>
30
<option>-i</option> <replaceable>lidar.txt</replaceable>
31
<option>-o</option> <replaceable>lidar.laz</replaceable>
33
<arg choice='plain'><option>-parse</option> <literal>xyzsst</literal>
34
<arg choice='opt'><option>-verbose</option></arg>
35
<arg choice='opt'><option>-scale</option> <replaceable>0.05</replaceable></arg>
36
<replaceable>lidar.txt</replaceable>
38
<arg choice='plain'><option>-parse</option> <literal>xsysz</literal>
39
<arg choice='opt'><option>-xyz_scale</option> <replaceable>0.02 0.02 0.01</replaceable></arg>
40
<replaceable>lidar.txt</replaceable>
46
<refsect1 id='description'>
47
<title>DESCRIPTION</title>
49
<command>txt2las</command> converts LIDAR data from a standard
50
ASCII format into the more efficient binary LAS representation.
54
<refsect1 id='options'>
55
<title>OPTIONS</title>
60
<term><option>-h</option></term>
69
<term><option>-parse</option> <replaceable>arg</replaceable></term>
71
<para>Parsing Flags</para>
73
The '<option>-parse tsxyz</option>' flag specifies how to interpret
74
each line of the ASCII file.
77
For example, '<literal>tsxyzssa</literal>' means that the first
78
number is the gpstime, the next number should be skipped,
79
the next three numbers are the x, y, and z coordinate,
80
the next two should be skipped,
81
and the next number is the scan angle.
84
The other supported entries are:
87
<para>i - intensity</para>
90
<para>n - number of returns of given pulse</para>
93
<para>r - number of return</para>
96
<para>c - classification</para>
99
<para>u - user data</para>
102
<para>p - point source ID</para>
105
<para>e - edge of flight line flag</para>
108
<para>d - direction of scan flag.</para>
116
<term><option>-scale</option> <replaceable>arg</replaceable></term>
120
The '<option>-scale 0.02</option>' flag specifies the quantization.
123
The default value of 0.01 means that the smallest increment two
124
between coordinates is 0.01.
127
If measurements are in meters this corresponds to centimeter
128
accuracy, which is commonly considered sufficient for LIDAR data.
134
<term><option>-i</option> <replaceable>arg</replaceable></term>
143
<term><option>-o</option> <replaceable>arg</replaceable></term>
152
<term><option>-xyz_offset</option> <replaceable>500000 2000000 0</replaceable></term>
156
<term><option>-xyz_scale</option> <replaceable>0.02 0.02 0.01</replaceable></term>
160
<term><option>-file_creation</option> <replaceable>67 2003</replaceable></term>
164
<term><option>-system_identifier</option> <replaceable>"Airborne One Leica 50,000 Hz"</replaceable></term>
168
<term><option>-generating_software</option> <replaceable>"TerraScan"</replaceable></term>
175
<refsect1 id='example'>
176
<title>EXAMPLE</title>
179
<title>Simple conversion to text file</title>
182
$ txt2las -i lidar.las -o lidar.txt -parse xyz
185
converts LAS file to ASCII and places the x, y, and z coordinate
186
of each point at the 1st, 2nd, and 3rd entry of each line.
187
The entries are separated by a space.
192
$ txt2las -i lidar.taxyz -o lidar.las -parse ssxyz
195
converts ASCII file and uses the 3rd, 4th, and 5th entry of each
196
line as the x, y, and z coordinate of each point.
201
$ txt2las -i lidar.txt.gz -o lidar.las -parse txyzsa
204
converts a gzipped ASCII file and uses the 1st entry of each line
205
as the gps time, the 3rd, 4th, and 5th entry as the x, y, and z
206
coordinate of each point, and the 6th entry as the scan angle