Conversion of PTS to LAS/LAZ using pointzip

158 views
Skip to first unread message

Pavan Vyas

unread,
Jul 31, 2019, 2:56:40 PM7/31/19
to last...@googlegroups.com
Hi All,

I have exported few registered point cloud data (with RGB Information) from FARO Scene in .PTS
 format. I have to convert the same to LAS/LAZ for which i tried using pointzip with xyziRGB and mm precision, But when i open the converted file there is not color information attached to it. 

Can you please suggest me how to go about this ?

Thanks in advance.


Regards,

Pavan.R.Vyas

J. Thaddeus Eldredge

unread,
Jul 31, 2019, 3:36:36 PM7/31/19
to last...@googlegroups.com
Did you export B&W along with color?  You have to check the box.

Did you save the cloud in FARO after you colorized it?  I am not sure if the newer versions fixed this issue but the older versions certainly require it.

Thadd



J. Thaddeus Eldredge, PLS, CFM



East-SouthEast, LLC
1038 Main Street
Chatham, MA 02633




PRIVACY NOTICE - This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.  You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.


--
Download LAStools at
http://lastools.org
http://rapidlasso.com
Be social with LAStools at
http://facebook.com/LAStools
http://twitter.com/LAStools
http://linkedin.com/groups/LAStools-4408378
Manage your settings at
http://groups.google.com/group/lastools/subscribe
---
You received this message because you are subscribed to the Google Groups "LAStools - efficient tools for LiDAR processing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lastools+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lastools/CAK62WdPGJxd9MUq9Qg%3Dpqw1n%2BT2uzbjGhNJGEQTkKt6Me0L58g%40mail.gmail.com.

Pavan Vyas

unread,
Aug 1, 2019, 1:32:52 AM8/1/19
to last...@googlegroups.com
Hi 
All the clouds were colourised in FARO . We are  using scene 5.5 which dose have export B&W along with colour.

Regards
Pavan R Vyas

--
Regards
Pavan R. Vyas

Martin Isenburg

unread,
Aug 1, 2019, 4:51:58 AM8/1/19
to LAStools - efficient command line tools for LIDAR processing
Hello Pavan,

could you send me the first 20 or 50 lines of your PTS file? It might be too big to open in a text editor but you can

(1) start the cmd.exe console window
(2) use the more command
(3) and then mark, copy and paste the text.

A sample is below (see also attached images).

c:\software\LAStools\bin>more dgm5_32361_5453_1_sl.xyz
32361000.000 5453000.000 238.768
32361005.000 5453000.000 239.643
32361010.000 5453000.000 241.215
32361015.000 5453000.000 242.338
32361020.000 5453000.000 244.638
32361025.000 5453000.000 246.429
32361030.000 5453000.000 248.118
32361035.000 5453000.000 249.654
32361040.000 5453000.000 250.676
32361045.000 5453000.000 251.765
32361050.000 5453000.000 253.311
32361055.000 5453000.000 255.275
32361060.000 5453000.000 256.523
32361065.000 5453000.000 257.931
32361070.000 5453000.000 259.671
32361075.000 5453000.000 261.095
32361080.000 5453000.000 262.235
32361085.000 5453000.000 263.424
32361090.000 5453000.000 264.561
32361095.000 5453000.000 266.096
32361100.000 5453000.000 267.269
32361105.000 5453000.000 268.467
32361110.000 5453000.000 269.635
32361115.000 5453000.000 270.823
32361120.000 5453000.000 271.692
32361125.000 5453000.000 272.531
32361130.000 5453000.000 273.312
32361135.000 5453000.000 274.180
32361140.000 5453000.000 274.903
-- Fortsetzung (0%) --


--
using_more_in_cmd_exe_and_marking_text_for_copy.png
using_more_in_cmd_exe_and_marking_text_for_copy_1.png

Pavan Vyas

unread,
Aug 1, 2019, 2:07:02 PM8/1/19
to last...@googlegroups.com
hi,

I am attaching the first few lines of the pts file.

Thanks :)

Regards,

Pavan.R.Vyas


few line of pts file.txt

Martin Isenburg

unread,
Aug 1, 2019, 2:10:32 PM8/1/19
to LAStools - efficient command line tools for LIDAR processing
Hello Pavan.

looking at the PTS lines I see that all your points have the exact *same* intensity of 65 and the exact *same* color of R/G/B = 147/128/118. So from that small sample it seems that your PTS file has no colors *or just a single color).

Regards,

Martin

Martin Isenburg

unread,
Aug 1, 2019, 2:54:17 PM8/1/19
to LAStools - efficient command line tools for LIDAR processing
Hello,

so Pavan sent me a longer snippet that contain color variations. It had 637 points and I created a proper PTS file from this snippet (that is attached). Using txt2las (which implements more or less the same recoding from PTS to LAZ as pointzip.exe) I can convert this to LAZ as follows below. This looks okay to me. Note that in the first approach the RGB is only stored in the lower byte (using 8 bits) whereas in the second approach it is scaled up to used to full 16 bits. Maybe that was the reason your colors did not display correctly?

An aside: The coordinates of the 24481752 points that are in the original PTS file are stored with eight (8!!!) digits right of the decimal point to ASCII. Six decimal digits are micrometer - a scale to measure the diameter of a human hair. Eight decimal digits are 10 nanometer increments. A scale to scan the transistor layout of a modern CPU that uses nanoelectronics .... (-: ... we convert this down to millimeters in the command line below (with '-set_scale 0.001 0.001 0.001') but you might want to use tenth of a millimeter instead (with '-set_scale 0.0001 0.0001 0.0001').

==================================== 

>> txt2las -i Pavan.pts -ipts -set_scale 0.001 0.001 0.001 -parse xzyiRGB -o Pavan_8bitRGB.laz  
done with 'Pavan.laz'. total time 0.007 sec.

==================================== 

>> txt2las -i Pavan.pts -ipts -set_scale 0.001 0.001 0.001 -scale_RGB_up -parse xzyiRGB -o Pavan_16bitRGB.laz
done with 'Pavan.laz'. total time 0.007 sec.  

==================================== 

>> lasinfo Pavan_8bitRGB.laz
lasinfo (190728) report for 'Pavan_8bitRGB.laz'
reporting all LAS header entries:
  file signature:             'LASF'
  file source ID:             0
  global_encoding:            0
  project ID GUID data 1-4:   00000000-0000-0000-0000-000000000000
  version major.minor:        1.2
  system identifier:          'LAStools (c) by rapidlasso GmbH'
  generating software:        'txt2las (version 190728)'
  file creation day/year:     213/2019
  header size:                227
  offset to point data:       313
  number var. length records: 1
  point data format:          2
  point data record length:   26
  number of point records:    637
  number of points by return: 637 0 0 0 0
  scale factor x y z:         0.001 0.001 0.001
  offset x y z:               0 0 0
  min x y z:                  26.309 119.804 -8.216
  max x y z:                  26.320 119.807 -8.211
variable length header record 1 of 1:
  reserved             0
  user ID              'LAStools'
  record ID            2000
  length after header  32
  description          'by LAStools of rapidlasso GmbH'
LASzip compression (version 3.4r1 c2 50000): POINT10 2 RGB12 2
reporting minimum and maximum for all LAS point record entries ...
  X               26309      26320
  Y              119804     119807
  Z               -8216      -8211
  intensity        1921       2113
  return_number       1          1
  number_of_returns   1          1
  edge_of_flight_line 0          0
  scan_direction_flag 0          0
  classification      0          0
  scan_angle_rank     0          0
  user_data           0          0
  point_source_ID     0          0
  Color R 133 147
        G 124 129
        B 108 118

number of first returns:        637
number of intermediate returns: 0
number of last returns:         637
number of single returns:       637
overview over number of returns of given pulse: 637 0 0 0 0 0 0
histogram of classification of points:
             637  never classified (0)

====================================

>> lasinfo Pavan_16bitRGB.laz
lasinfo (190728) report for 'Pavan_16bitRGB.laz'
reporting all LAS header entries:
  file signature:             'LASF'
  file source ID:             0
  global_encoding:            0
  project ID GUID data 1-4:   00000000-0000-0000-0000-000000000000
  version major.minor:        1.2
  system identifier:          'LAStools (c) by rapidlasso GmbH'
  generating software:        'txt2las (version 190728)'
  file creation day/year:     213/2019
  header size:                227
  offset to point data:       313
  number var. length records: 1
  point data format:          2
  point data record length:   26
  number of point records:    637
  number of points by return: 637 0 0 0 0
  scale factor x y z:         0.001 0.001 0.001
  offset x y z:               0 0 0
  min x y z:                  26.309 119.804 -8.216
  max x y z:                  26.320 119.807 -8.211
variable length header record 1 of 1:
  reserved             0
  user ID              'LAStools'
  record ID            2000
  length after header  32
  description          'by LAStools of rapidlasso GmbH'
LASzip compression (version 3.4r1 c2 50000): POINT10 2 RGB12 2
reporting minimum and maximum for all LAS point record entries ...
  X               26309      26320
  Y              119804     119807
  Z               -8216      -8211
  intensity        1921       2113
  return_number       1          1
  number_of_returns   1          1
  edge_of_flight_line 0          0
  scan_direction_flag 0          0
  classification      0          0
  scan_angle_rank     0          0
  user_data           0          0
  point_source_ID     0          0
  Color R 34048 37632
        G 31744 33024
        B 27648 30208

number of first returns:        637
number of intermediate returns: 0
number of last returns:         637
number of single returns:       637
overview over number of returns of given pulse: 637 0 0 0 0 0 0
histogram of classification of points:
             637  never classified (0)
Pavan.pts

Pavan Vyas

unread,
Aug 2, 2019, 1:39:23 AM8/2/19
to last...@googlegroups.com
hi Martin ,

Got the desired out put .

Thanks :)

Regards,

Pavan.R.Vyas


Reply all
Reply to author
Forward
0 new messages