shp2las

230 views
Skip to first unread message

Anna Guimet

unread,
Jun 16, 2015, 7:34:45 AM6/16/15
to last...@googlegroups.com
I'm trying to use the lastools, in particular shp2las. I have a point layer but I do not know what to put in the field of x and y coordinate resolution. I have tried many options and no work for me. Someone can help me? I'm using 2.8.1 Wien. Thanks!

Nicolas Cadieux

unread,
Jun 16, 2015, 12:45:37 PM6/16/15
to last...@googlegroups.com

Hi,

If you have problems with .shp2las used from the processing toolbar, I recommend you simply use the shp2las.exe  gui (graphical user interface) found in the las tool folder. Having worked with Lidar extensively, I recommend moving away rapidly from the .shp format as it is incapable of effectively dealing with point clouds. I recommend you save the .shp as a CSV or txt file from QGIS and use txt2las.exe instead.

Nicolas Cadieux M.Sc.
Les Entreprises Archéotec inc. 
8548, rue Saint-Denis Montréal H2P 2H2
Téléphone: 514.381.5112  Fax: 514.381.4995
www.archeotec.ca

On Jun 16, 2015 07:16, Anna Guimet <annagu...@gmail.com> wrote:
I'm trying to use the lastools, in particular shp2las. I have a point layer but I do not know what to put in the field of x and y coordinate resolution. I have tried many options and no work for me. Someone can help me? I'm using 2.8.1 Wien. Thanks!

Martin Isenburg

unread,
Jun 19, 2015, 1:39:04 PM6/19/15
to LAStools - efficient command line tools for LIDAR processing
Hello,

turns out there was a small copy & paste bug in the Python script  'shp2las.py'. I assume that module did not get used too often because the same bug was already there in earlier versions. So either change the two lines in file  'shp2las.py' to match those

[...]
       self.addParameter(ParameterNumber(shp2las.SCALE_FACTOR_XY,
            self.tr("resolution of x and y coordinate"), 0, None, 0.01))
        self.addParameter(ParameterNumber(shp2las.SCALE_FACTOR_Z,
            self.tr("resolution of z coordinate"), 0, None, 0.01))
[...]

or simply replace the existing file 'shp2las.py' that for me is in this location

C:\Program Files\QGIS Wien\apps\qgis\python\plugins\processing\algs\lidar\lastools\

with the version attached to this message. You may have to change the write/modify permissions on the lidar\lastools folder first.

Regards,

Martin @rapidlasso
shp2las.py

Martin Isenburg

unread,
Jul 5, 2015, 8:14:29 AM7/5/15
to LAStools - efficient command line tools for LIDAR processing
Hello,

two more script errors have been identified for QGIS 2.8 (Wien) for the lasmerge and lasmergePro tool when used with the "apply point source ID" option. Simply replace the existing files in your QGIS installation with the two (well three) attached scripts. The location of these files is:


C:\Program Files\QGIS Wien\apps\qgis\python\plugins\processing\algs\lidar\lastools

Regards,

Martin @rapidlasso
lasmerge.py
lasmergePro.py
shp2las.py
Reply all
Reply to author
Forward
0 new messages