lasgrid with .tif

93 views
Skip to first unread message

Susana Gonzalez

unread,
Feb 15, 2022, 2:24:27 PM2/15/22
to LAStools - efficient command line tools for LIDAR processing

Hi all,

 

I am trying to merge these tiles together (attached) using this line of code

 

C:/LAStools/bin/lasgrid.exe -v -i J:\tmp03\*.tif -merged -step 1 -o J:/Temp_J/test.tif

 

If I run it with .bil as an input, the line works fine but my tiles are in .tif (happy to transform them if the process is quicker).

 

 

Thanks

Susana

 

Susana Gonzalez - Forest Engineer, LiDAR Science

 

Interpine Group Ltd

Mobile:      021 026 49733   DDI:  +64 7 350 3209 or Australia +61 2 80113645
Skype:        sugonar

Address:   99 Sala Street, PO Box 1209, Rotorua 3010, New Zealand
Website:  
www.interpine.co.nz

 

Interpine Innovation is Shaping Today’s Forests with the Technology of Tomorrow

He rangahau tenei ra he hangarau apopo

 

656750_7698750.tif
656750_7699000.tif

Michał Kuś

unread,
Feb 16, 2022, 1:07:16 AM2/16/22
to last...@googlegroups.com
Hi Susana,

I am not exactly an expert but I would not expect this to work, since lasgrid expects pointcloud as input, not raster image. Should you look at readme it says:
Supported LAS Inputs
-i lidar.las
-i lidar.laz
-i lidar1.las lidar2.las lidar3.las -merged
-i *.las - merged
-i flight0??.laz flight1??.laz
-i terrasolid.bin
-i esri.shp
-i nasa.qi
-i lidar.txt -iparse xyzti -iskip 2 (on-the-fly from ASCII)
-i lidar.txt -iparse xyzi -itranslate_intensity 1024
I'm surprised that the BIL format works in this case. 

The tool I use to merge georeferenced rasters is the gdal_merge.py script from the GDAL package. Very irritating piece of software, since it does not support wildcards for input, but it gets the job done.

Best regards,

Michal Kus

--
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 on the web visit https://groups.google.com/d/msgid/lastools/PUZPR03MB59628EB3B3D0F57EEF66D33D8D349%40PUZPR03MB5962.apcprd03.prod.outlook.com.

Michael Stimson

unread,
Feb 16, 2022, 1:08:02 AM2/16/22
to last...@googlegroups.com

Hi Susana,

 

Isn’t LASGrid supposed to take LAS/LAZ/XYZ as input and not rasters? To merge rasters I would use GDAL, in QGIS or command line, or ArcGIS if you have a license and prefer a GUI.

 

Michael Stimson

Senior GIS Analyst
RPS | Australia Asia Pacific
+61 7 3539 9694
michael...@rpsgroup.com.au

 

From: last...@googlegroups.com <last...@googlegroups.com> On Behalf Of Susana Gonzalez
Sent: Tuesday, 15 February 2022 3:00 PM
To: LAStools - efficient command line tools for LIDAR processing <last...@googlegroups.com>
Subject: [LAStools] lasgrid with .tif

 

CAUTION: This email originated from outside of RPS.

--

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 on the web visit https://groups.google.com/d/msgid/lastools/PUZPR03MB59628EB3B3D0F57EEF66D33D8D349%40PUZPR03MB5962.apcprd03.prod.outlook.com.

This email and its attachments may contain confidential and/or privileged information and is for the sole use of the intended recipient(s). The contents of this email must not be disclosed to or used by or copied in any way by anyone other than the intended recipient(s). If you are not the intended recipient, any use, distribution or copying of the information contained in this email and its attachments is strictly prohibited. Confidentiality and/or privilege in the content of this email is not waived. If you have received this email in error, please email the sender by replying to this message and immediately delete and destroy any copies of this email and any attachments. Please note that neither RPS Consultants Pty Ltd, any subsidiary, related entity ('RPS') nor the sender accepts any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. The views or opinions expressed are the author's own and may not reflect the views or opinions of RPS

Jorge Delgado García

unread,
Feb 16, 2022, 3:12:37 AM2/16/22
to last...@googlegroups.com
Good morning from Spain,

I agree with what you have been told, I think it is not possible to incorporate a GeoTIFF with the information in LASgrid. The program is designed to rasterize a point cloud and therefore surely the most common input format is not GeoTIFF, the truth is that I am even surprised that it supports BIN (I don't know this) ;-).

With the files you have sent I have made a couple of tests, if the idea is just to join files as other members have recommended you can use directly QGIS or GDAL, if you need to modify the spacing, etc (it could also be done with those programs) I would be more inclined to continue using LAStools.

For me the best option is a conversion of those TIFF to a LAZ, using DEMZIP (with which you will even reduce its size considerably).
656750_7689750.tif (34129 bytes) > 656750_7689750.laz (4544 bytes)
656750_7699000.tif (213661 bytes) > 656750_7699000.laz (31895 bytes)

And then integrate them with LASGRID, which will also provide you with the KML in addition to the GeoTIFF. In addition LASgrid as you know allows you to set the spacing and other parameters for the rasterization.

The sequence would be more or less:
demzip -i *.tif -olaz
lasgrid -i *.laz -merged -step 1 -o dem.tif

In my tests (although the files are very small) it is extraordinarily fast.

I hope you find it useful,

Jorge Delgado
jdel...@ujaen.es

--
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 on the web visit https://groups.google.com/d/msgid/lastools/PUZPR03MB59628EB3B3D0F57EEF66D33D8D349%40PUZPR03MB5962.apcprd03.prod.outlook.com.


--

Guilherme Sanchez

unread,
Feb 16, 2022, 3:53:15 PM2/16/22
to last...@googlegroups.com
Hello everyone,

Due to everyone's surprise with the use of the bil file in the lasgrid input, here is a good opportunity to say that all readme files need to be reviewed.
Much of lastools' potential is limited to experienced users in this group. The read_me files have been in need of an update for a few years.

Best Regards,

Support at rapidlasso

unread,
Feb 16, 2022, 3:58:28 PM2/16/22
to LAStools - efficient tools for LiDAR processing
Thanks to Jorge and all the others very experienced users! And yes, Guilherme, the readme files need an update: We are working on that. Every tool I touch I update the *_README.txt for the tool + we are working on a complete documentation...
Jochen @rapidlasso

Susana Gonzalez

unread,
Feb 16, 2022, 4:46:41 PM2/16/22
to last...@googlegroups.com

Hi all,

 

Thanks a lot for all your answers.

 

I think lasgrid supports .bil because Martin liked that format a lot 😊

 

The option that Jorge suggested is good (I will add it to my workflow).

 

In the end, I have run gdal_merge.py as Michael suggested, it was also very fast.

 

Keep in touch.

Susana

 

 

https://youtu.be/rZFxmnvlOP8: Mobile Laser Data Collection in conjunction with VR Analysis for Forest Inventory

 

Susana Gonzalez - Forest Engineer, LiDAR Science

 

Interpine Group Ltd

Mobile:      021 026 49733   DDI:  +64 7 350 3209 or Australia +61 2 80113645
Skype:        sugonar

Address:   99 Sala Street, PO Box 1209, Rotorua 3010, New Zealand
Website:  
www.interpine.co.nz

 

Interpine Innovation is Shaping Today’s Forests with the Technology of Tomorrow

He rangahau tenei ra he hangarau apopo

 

 

From: last...@googlegroups.com <last...@googlegroups.com> On Behalf Of Support at rapidlasso
Sent: Thursday, 17 February 2022 9:58 AM
To: LAStools - efficient tools for LiDAR processing <last...@googlegroups.com>
Subject: Re: [LAStools] lasgrid with .tif

 

[EXTERNAL]

Reply all
Reply to author
Forward
0 new messages