convert LAS 1.2 to LAS 1.4 (easy peasy & free)

870 views
Skip to first unread message

Martin Isenburg

unread,
Apr 20, 2015, 1:31:24 PM4/20/15
to The LAS room - a friendly place to discuss specifications of the LAS format, LAStools - efficient command line tools for LIDAR processing
Hello,

we get a lot of questions from North America about converting LAS 1.2 files (using point type 1) to LAS 1.4 files (using point type 6). This is because the new point types of LAS 1.4 are now the required delivery for the United States Geological Survey (USGS) 3D Elevation Program. This can easily be done like this:

las2las -i ..\data\fusa.laz -set_version 1.4 -set_point_type 6 -o fusa14.las

You can then also compress and decompress them (latest version only):

laszip -i fusa14.las -o fusa14.laz
laszip -i fusa14.laz -o fusa14_dec.las

lasdiff -i fusa14.las -i fusa14_dec.las
checking 'fusa14.las' against 'fusa14_dec.las'
headers are identical.
raw points are identical.
files are identical. both have 277573 points. took 0.062 secs.

For point type 7 (with RGB colors) the command is basically the same:

las2las -i ..\data\fusa.laz -set_version 1.4 -set_point_type 7 -o fusa14col.las

The lasinfo reports for the original LAS 1.2 file (fusa.laz) and the up-converted LAS 1.4 files using point type 6 (fusa14.las) and point type 7 (fusa14_col.las).

Regards,

Martin @rapidlasso 

PS: And please don't use GPS week but Adjusted GPS Standard time.
fusa_info.txt
fusa14_info.txt
fusa14_col_info.txt

Balbahadur Bist

unread,
Sep 27, 2018, 9:00:39 PM9/27/18
to LAStools - efficient tools for LiDAR processing
Hi
ineed las 1.2 to laz 1.4
can it possible

Martin Isenburg

unread,
Sep 30, 2018, 11:28:51 AM9/30/18
to LAStools - efficient command line tools for LIDAR processing
Hello,

while keeping current LAS 1.2 point type:

las2las -i ..\data\fusa.laz -set_version 1.4 -o fusa14.laz  

while also upgrading point type from 1 to 6 (similar for 3 to 7):

las2las -i ..\data\fusa.laz -set_version 1.4 -set_point_type 6 -o fusa14pt6.laz

below the results:

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

lasinfo -i fusa14.laz
lasinfo (180919) report for 'fusa14.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.4
  system identifier:          'LAStools (c) by rapidlasso GmbH'
  generating software:        'las2las (version 180930)'
  file creation day/year:     40/2010
  header size:                375
  offset to point data:       469
  number var. length records: 1
  point data format:          1
  point data record length:   28
  number of point records:    277573
  number of points by return: 263413 13879 281 0 0
  scale factor x y z:         0.01 0.01 0.01
  offset x y z:               0 0 0
  min x y z:                  277750.00 6122250.00 42.21
  max x y z:                  277999.99 6122499.99 64.35
  start of waveform data packet record: 0
  start of first extended variable length record: 0
  number of extended_variable length records: 0
  extended number of point records: 277573
  extended number of points by return: 263413 13879 281 0 0 0 0 0 0 0 0 0 0 0 0
variable length header record 1 of 1:
  reserved             43707
  user ID              'LASF_Projection'
  record ID            34735
  length after header  40
  description          'by LAStools of Martin Isenburg'
    GeoKeyDirectoryTag version 1.1.0 number of keys 4
      key 1024 tiff_tag_location 0 count 1 value_offset 1 - GTModelTypeGeoKey: ModelTypeProjected
      key 3072 tiff_tag_location 0 count 1 value_offset 32754 - ProjectedCSTypeGeoKey: WGS 84 / UTM 54S
      key 3076 tiff_tag_location 0 count 1 value_offset 9001 - ProjLinearUnitsGeoKey: Linear_Meter
      key 4099 tiff_tag_location 0 count 1 value_offset 9001 - VerticalUnitsGeoKey: Linear_Meter
LASzip compression (version 3.2r5 c2 50000): POINT10 2 GPSTIME11 2
reporting minimum and maximum for all LAS point record entries ...
  X            27775000   27799999
  Y           612225000  612249999
  Z                4221       6435
  intensity          10      62293
  return_number       1          3
  number_of_returns   1          3
  edge_of_flight_line 0          0
  scan_direction_flag 0          0
  classification      1          6
  scan_angle_rank    79        103
  user_data           0        197
  point_source_ID     1          1
  gps_time 5880.963028 5886.739738
number of first returns:        263413
number of intermediate returns: 283
number of last returns:         263370
number of single returns:       249493
overview over extended number of returns of given pulse: 249493 27232 848 0 0 0 0 0 0 0 0 0 0 0 0
histogram of classification of points:
           17553  unclassified (1)
          180868  ground (2)
           37030  high vegetation (5)
           42122  building (6)

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

lasinfo -i fusa14pt6.laz
lasinfo (180919) report for 'fusa14pt6.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.4
  system identifier:          'LAStools (c) by rapidlasso GmbH'
  generating software:        'las2las (version 180930)'
  file creation day/year:     40/2010
  header size:                375
  offset to point data:       469
  number var. length records: 1
  point data format:          6
  point data record length:   30
  number of point records:    0
  number of points by return: 0 0 0 0 0
  scale factor x y z:         0.01 0.01 0.01
  offset x y z:               0 0 0
  min x y z:                  277750.00 6122250.00 42.21
  max x y z:                  277999.99 6122499.99 64.35
  start of waveform data packet record: 0
  start of first extended variable length record: 0
  number of extended_variable length records: 0
  extended number of point records: 277573
  extended number of points by return: 263413 13879 281 0 0 0 0 0 0 0 0 0 0 0 0
variable length header record 1 of 1:
  reserved             43707
  user ID              'LASF_Projection'
  record ID            34735
  length after header  40
  description          'by LAStools of Martin Isenburg'
    GeoKeyDirectoryTag version 1.1.0 number of keys 4
      key 1024 tiff_tag_location 0 count 1 value_offset 1 - GTModelTypeGeoKey: ModelTypeProjected
      key 3072 tiff_tag_location 0 count 1 value_offset 32754 - ProjectedCSTypeGeoKey: WGS 84 / UTM 54S
      key 3076 tiff_tag_location 0 count 1 value_offset 9001 - ProjLinearUnitsGeoKey: Linear_Meter
      key 4099 tiff_tag_location 0 count 1 value_offset 9001 - VerticalUnitsGeoKey: Linear_Meter
LASzip compression (version 3.2r5 c3 50000): POINT14 3
reporting minimum and maximum for all LAS point record entries ...
  X            27775000   27799999
  Y           612225000  612249999
  Z                4221       6435
  intensity          10      62293
  return_number       1          3
  number_of_returns   1          3
  edge_of_flight_line 0          0
  scan_direction_flag 0          0
  classification      1          6
  scan_angle_rank    79        103
  user_data           0        197
  point_source_ID     1          1
  gps_time 5880.963028 5886.739738
  extended_return_number          1      3
  extended_number_of_returns      1      3
  extended_classification         1      6
  extended_scan_angle         13167  17167
  extended_scanner_channel        0      0
number of first returns:        263413
number of intermediate returns: 283
number of last returns:         263370
number of single returns:       249493
overview over extended number of returns of given pulse: 249493 27232 848 0 0 0 0 0 0 0 0 0 0 0 0
histogram of classification of points:
           17553  unclassified (1)
          180868  ground (2)
           37030  high vegetation (5)
           42122  building (6)  


Reply all
Reply to author
Forward
0 new messages