RE: [LAStools] Txt2Laz?

102 views
Skip to first unread message

Stuart Mowbray

unread,
Aug 17, 2012, 8:21:14 AM8/17/12
to last...@googlegroups.com

Hi Jeff,

 

I believe LASZip itself will convert straight from ASCII/txt …

 

Examples from the LASZip readme:

 

>> laszip *.txt -iparse xyztairn
 
parses and compresses all ASCII files in the current folder.

 

>> laszip -lof file_list.txt
 
compresses (or uncompresses) all LAS/TXT (or LAZ) files listed in the
the text file 'file_list.txt'

 

>> laszip -i lidar.txt -iparse xyziRGB -itranslate_intensity 2047

 

parses the ASCII file 'lidar.txt' with parse string 'xyziRGB' and

converts it on-the-fly to LAS while translating the intensity with

an offset of 2047 and compresses it to the LAZ file 'lidar.laz'

 

>> laszip -i *.txt -iparse xyzt -iscale_intensity 65535

 

parses all ASCII file ending in *.txt with parse string 'xyzt' and

converts them on-the-fly to LAS while scaling the intensity with a

multiplier of 65535 and compresses it to a properly named LAZ file.

 

>> laszip -i *.txt -iparse xyzt -iscale_intensity 65535 -merged -o merged.laz

 

same as above but all matching ASCII files are merged into one LAS

file.

 

Regards,

 

Dr Stuart Mowbray

Software Engineer – MDL

Group Engineering Software

Renishaw plc

 

 

From: last...@googlegroups.com [mailto:last...@googlegroups.com] On Behalf Of Jeff Fagerman
Sent: 17 August 2012 02:01
To: last...@googlegroups.com
Subject: [LAStools] Txt2Laz?

 

Are you, or have you, added to your txt2las (etc) tools a means of going from txt to laz without first going to las (txt2las, laszip)? 

--
Download LAStools at
http://lastools.org/
Visit the LAStools group at
http://groups.google.com/group/lastools/
Be social with LAStools at
http://www.facebook.com/LAStools
http://www.twitter.com/LAStools

--------------------------------------------------------------------------------------------------
This email and any attachments are confidential and are for the use of the
addressee only. If you are not the addressee, you must not use or disclose the
contents to any other person. Please immediately notify the sender and
delete the email. Statements and opinions expressed here may not
represent those of the company. Email correspondence is monitored by
the company. This information may be subject to export control
regulation. You are obliged to comply with such regulations.

Renishaw plc (company number 1106260), Wotton Travel Limited (company
number 01973158) and Renishaw Advanced Materials Limited (company number 04632041),
are companies registered in England and Wales with a registered office
at New Mills, Wotton-under-Edge, Gloucestershire, GL12 8JR,
United Kingdom, Telephone +44 1453 524524.
--------------------------------------------------------------------------------------------------

Martin Isenburg

unread,
Aug 18, 2012, 9:12:14 AM8/18/12
to LAStools - efficient tools for LiDAR processing
Hello Jeff,

Stuart gave one possible answer: every of the LAStools modules is also
an on-the-fly txt2las tool because you can specify ASCII input and use
the '-iparse xyz...' and '-iskip ...' command line flags to specify
how to parse the text file.

But there is another way to answer this: every of the LAS producing
LAStools modules is also a laszip compressor because you can specify
the output to be compressed with the '-olaz' command line flag or by
choosing an output file name that ends in '.laz'. Hence these are your
possibilities:

txt2las -i lidar.txt -parse xyziRGB -olaz
txt2las -i lidar.txt -parse xyziRGB -o lidar.laz

laszip -i lidar.txt -iparse xyziRGB -olaz
laszip -i lidar.txt -iparse xyziRGB -o lidar.laz

las2las -i lidar.txt -iparse xyziRGB -olaz
las2las -i lidar.txt -iparse xyziRGB -o lidar.laz

lasmerge -i lidar1.txt lidar2.txt -iparse xyziRGB -o merged.laz

Regards,

Martin @rapidlasso
Reply all
Reply to author
Forward
0 new messages