In this tutorial, I will show you how to convert DEM/DTM/DSM files to LAZ/LAS files. Because Chad's Tool is only support las/laz file format (classified cloud point Lidar file). But the lidar data not cover all the place, somewhere we only have DEM files. DEM file is not perfect, it only provide the ground elevation, no trees, buildings information, but have something is better than nothing. The DEM, DTM and DSM is very similar file format, we use same way to convert them to las/laz format. In this tutorial, I just show you how to convert dem to las/laz. LAZ file is zipped las file, so laz file is better than las.
Tools we need here are all totally free.
The first tool is QGIS, and you must install an plugin "Lastools", we will use this LasTools later.
![2021-03-28_22h12_41.jpg Click image for larger version Name: 2021-03-28_22h12_41.jpg Views: 0 Size: 188.6 KB ID: 327383](filedata/fetch?id=327383&d=1616984043)
![2021-03-28_22h15_12.jpg Click image for larger version Name: 2021-03-28_22h15_12.jpg Views: 0 Size: 127.9 KB ID: 327384](filedata/fetch?id=327384&d=1616984193)
The other freeware we need is SAGA
![2021-03-28_22h16_56.jpg Click image for larger version Name: 2021-03-28_22h16_56.jpg Views: 0 Size: 119.9 KB ID: 327385](filedata/fetch?id=327385&d=1616984235)
After you install those freeware and plugin, now we get started.
1. Drag and drop the DEM file into QGIS and open its properties, record the ESPG and Projections value, we will use this values later.
![2021-03-21_18h08_12.jpg Click image for larger version Name: 2021-03-21_18h08_12.jpg Views: 0 Size: 104.8 KB ID: 327386](filedata/fetch?id=327386&d=1616984602)
2. Convert Raster DEM to GRD format. I create a folder "D:\LIO". You can create any other folder name you like.
![2021-03-21_13h11_29.jpg Click image for larger version Name: 2021-03-21_13h11_29.jpg Views: 0 Size: 155.7 KB ID: 327387](filedata/fetch?id=327387&d=1616984773)
![2021-03-21_18h03_04.jpg Click image for larger version Name: 2021-03-21_18h03_04.jpg Views: 0 Size: 73.4 KB ID: 327388](filedata/fetch?id=327388&d=1616984895)
3. Now we open SAGA software. Open the upon output .grd file with SAGA, you can drag and drop the .grd file into SAGA.
4. Look for tool "Point Cloud from Grid Point" in SAGA, and convert it to point Clouds format.
![2021-03-21_13h18_57.jpg Click image for larger version Name: 2021-03-21_13h18_57.jpg Views: 0 Size: 58.5 KB ID: 327389](filedata/fetch?id=327389&d=1616985082)
Conversion interface:
![2021-03-21_18h17_00.jpg Click image for larger version Name: 2021-03-21_18h17_00.jpg Views: 0 Size: 81.7 KB ID: 327390](filedata/fetch?id=327390&d=1616985238)
5. Look for tool "Export Point Cloud to Text File" in SAGA, to export txt file. I export all the .txt file into "D:\LIO" folder, we will use this folder later. You can create any folder name you like.
![2021-03-21_13h16_22.jpg Click image for larger version Name: 2021-03-21_13h16_22.jpg Views: 0 Size: 55.7 KB ID: 327391](filedata/fetch?id=327391&d=1616985334)
Exporting interface 1:
![2021-03-21_18h22_17.jpg Click image for larger version Name: 2021-03-21_18h22_17.jpg Views: 0 Size: 81.8 KB ID: 327392](filedata/fetch?id=327392&d=1616985391)
Exporting interface 2:
![2021-03-21_18h23_08.jpg Click image for larger version Name: 2021-03-21_18h23_08.jpg Views: 0 Size: 79.0 KB ID: 327393](filedata/fetch?id=327393&d=1616985448)
6. Go back to QGIS software.
7. Look for the tool "txt2las" in "LasTools" plugin. Double click to run it.
![2021-03-21_18h30_58.jpg Click image for larger version Name: 2021-03-21_18h30_58.jpg Views: 0 Size: 39.9 KB ID: 327394](filedata/fetch?id=327394&d=1616985657)
8. Set all the values as below, the most important thing is to set all the point type to 2 (ground type), use "-set_classification 2". Otherwise Chad's tools won't recognize the point type, and report an "unclassified cloud point" error message. The EPSG and Projections value, we already got them instep 1, now input them. Output file size select LAZ. LAZ is a better file format than .LAS. Chad's tool can support laz files very well. You can run single file conversion, or you can also run batch conversion for multiple files in same folder. Please refer the following to screenshot, one for single file, one for multiple files.
Convert single file.
![2021-03-21_13h27_17.jpg Click image for larger version Name: 2021-03-21_13h27_17.jpg Views: 0 Size: 64.8 KB ID: 327395](filedata/fetch?id=327395&d=1616986226)
Convert multiple files.
![2021-03-21_19h17_19.jpg Click image for larger version Name: 2021-03-21_19h17_19.jpg Views: 0 Size: 72.5 KB ID: 327396](filedata/fetch?id=327396&d=1616986416)
9. Done. Congratulations. You learned all what I know.
Tools we need here are all totally free.
The first tool is QGIS, and you must install an plugin "Lastools", we will use this LasTools later.
The other freeware we need is SAGA
After you install those freeware and plugin, now we get started.
1. Drag and drop the DEM file into QGIS and open its properties, record the ESPG and Projections value, we will use this values later.
2. Convert Raster DEM to GRD format. I create a folder "D:\LIO". You can create any other folder name you like.
3. Now we open SAGA software. Open the upon output .grd file with SAGA, you can drag and drop the .grd file into SAGA.
4. Look for tool "Point Cloud from Grid Point" in SAGA, and convert it to point Clouds format.
Conversion interface:
5. Look for tool "Export Point Cloud to Text File" in SAGA, to export txt file. I export all the .txt file into "D:\LIO" folder, we will use this folder later. You can create any folder name you like.
Exporting interface 1:
Exporting interface 2:
6. Go back to QGIS software.
7. Look for the tool "txt2las" in "LasTools" plugin. Double click to run it.
8. Set all the values as below, the most important thing is to set all the point type to 2 (ground type), use "-set_classification 2". Otherwise Chad's tools won't recognize the point type, and report an "unclassified cloud point" error message. The EPSG and Projections value, we already got them instep 1, now input them. Output file size select LAZ. LAZ is a better file format than .LAS. Chad's tool can support laz files very well. You can run single file conversion, or you can also run batch conversion for multiple files in same folder. Please refer the following to screenshot, one for single file, one for multiple files.
Convert single file.
Convert multiple files.
9. Done. Congratulations. You learned all what I know.
![Wink](https://golfsimulatorforum.com/core/images/smilies/wink.png)
Comment