lasmerge header behavior question

33 views
Skip to first unread message

Andrew Johnson

unread,
Jan 17, 2025, 1:32:29 AM1/17/25
to LAStools - efficient tools for LiDAR processing
Hello,

If I understand correctly, the first file given to lasmerge decides the LASheader contents for the entire merged file. For example, when merging these two files with "lasmerge -i FileA.las FileB.las ...":
FileA.las: XYZ, intensity
FileB.las: XYZ, RGB, intensity

The merged output will not contain any RGB data, because the headers from FileA.las are used to determine which attributes are written to the merged file, and FileA only has XYZ and intensity attributes. On the other hand, if one were to reverse the order of the filenames specified to lasmerge ("lasmerge -i FileB.las FileA.las ..."), the output would indeed contain RGB data. Understandably, only the points that were originally associated with FileB.las would have usable RGB data. In summary, by passing file with all the attributes to lasmerge first, you can ensure that as much input data as possible is preserved in the merged file.

However, one may want to merge the following set of files:
FileA.las containing XYZ, Intensity
FileB.las containing XYZ, RGB
FileC.las containing XYZ, Intensity, Classification

In this case, it's not possible to specify the file with all of the attributes first, since no single file has all of them.

Is there any solution to this problem?

Thank you,

Andrew


Rainer Wiesenfarth

unread,
Jan 17, 2025, 3:17:03 AM1/17/25
to last...@googlegroups.com
Hi Andrew,

creating an empty dummy file containing XYZ, Intensity, RGB, Classification and using this as first input might be a workaround?

However, I did not check if this works, this is just a theory...

Cheers, Rainer

--
Download LAStools at
https://rapidlasso.de
Manage your settings at
https://groups.google.com/g/lastools/membership
---
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 visit https://groups.google.com/d/msgid/lastools/5e80af4b-b2cf-451b-a36f-f7bf6b7ff118n%40googlegroups.com.


--

Rainer Wiesenfarth
Senior Software Engineer
Geospatial Division
 

Rotebühlstr. 81, 70178 Stuttgart
Germany

Rainer_Wi...@trimble.com
geospatial.trimble.com/products-and-solutions/trimble-inpho


Trimble Services GmbH, Am Prime Parc 11, 65479 Raunheim, Eingetragen beim Amtsgericht Darmstadt unter HRB 83893, Geschäftsführer: Rob Reeder, Jürgen Kesper
Reply all
Reply to author
Forward
0 new messages