[GRASS-user] getting LiDAR data into GRASS

Hi,
I'm new to GRASS. I am using 7.0.5 on Windows 7. I have LiDAR data in .las format that I want to reclassify in GRASS. I read, I think on Stackoverflow.com that one can reclassify in GRASS, thus my desire for this task. I looked up help for using GRASS with LiDAR and found the wiki, but it seems to skip steps. Does the LiDAR data need to be in one of the GRASS locations, like "spearfish60_grass7" for the Spearfish practice data? Or can the data sit in a folder outside the GRASS directory and be imported from there anyway? When I look at the structure of that directory, I don't know where to put the .las files.

Tangential to this, I don't know what command to use on the console for importing or making a connection to the .las files. This is what I tried:

(Tue Dec 06 12:36:10 2016)
v.in.lidar -p input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
(Tue Dec 06 12:41:39 2016) Command finished (5 min 29 sec)

It says that the command finished, but I don't know where to view the layer. I tried:

(Tue Dec 06 12:42:46 2016)
g.list vect
country_boundaries
mysites
point

Doesn't seem to show anything related to the LiDAR that I tried to import.

Can someone please tell me 1) where to put the .las files, 2) the correct way to format the input for the v.in.lidar command and 3) how to verify that the data are loaded.

Sincerely,
John Polo

Hi,

2016-12-06 20:56 GMT+01:00 john polo <jpolo@mail.usf.edu>:

(Tue Dec 06 12:36:10 2016)
v.in.lidar -p
input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
(Tue Dec 06 12:41:39 2016) Command finished (5 min 29 sec)

from v.in.lidar manual [1]:

-p: "Print LAS file info and exit"

So the command just prints info (extent, ...) and exit. Try import
data instead :slight_smile:

v.in.lidar -p input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
out=f35096E1_NEA_PrjAdd

Ma

[1] https://grass.osgeo.org/grass70/manuals/v.in.lidar.html

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 12/6/2016 2:14 PM, Martin Landa wrote:

So the command just prints info (extent, ...) and exit. Try import
data instead :slight_smile:

v.in.lidar -p input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
out=f35096E1_NEA_PrjAdd

Ma

[1] https://grass.osgeo.org/grass70/manuals/v.in.lidar.html

Thanks for the reply. I tried your suggestion, with and without the -p.

"v.in.lidar input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las out=lidarone
(Tue Dec 06 14:32:02 2016) Command finished (8 sec)
(Tue Dec 06 14:32:07 2016)
g.list vect
country_boundaries
mysites
point
(Tue Dec 06 14:32:07 2016) Command finished (0 sec)

Command 'd.vect --quiet map=lidarone display=shape,cat'
failed
Details: Vector map <lidarone> not found"

The layer that I tried to create, "lidarone", doesn't appear in the list of vectors. v.in.lidar appears to be the command, but I am missing something.

john

Hi,

2016-12-06 21:47 GMT+01:00 john polo <jpolo@mail.usf.edu>:

"v.in.lidar
input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
out=lidarone
(Tue Dec 06 14:32:02 2016) Command finished (8 sec)

ok, what prints

lasinfo C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las

?

(similar to

v.in.lidar -p input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
out=foo

btw, in G72 you don't need to set up output when you are using -p flag)

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 12/6/2016 3:33 PM, Martin Landa wrote:

ok, what prints

lasinfo C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las

?

I'm looking in the Output Window just above the Console. There is nothing printed. Just a reply that the command finished.

When I run the command, there is a window that opens and says that lasinfo.exe has stopped working. I click on the "Close program" button in the window and then GRASS comes back like nothing happened. It doesn't exit and restart, it just come back to focus after the window closes. But there is no output that I can see.

There was a similar message with GRASS when I used v.in.lidar, but since the program didn't actually crash or exit, I figured it wasn't much of a problem. I've used this lidar file in LASTools without incident, so I don't think it's the file, but like I said, I'm new to GRASS.

Hi,

2016-12-06 22:51 GMT+01:00 john polo <jpolo@mail.usf.edu>:

When I run the command, there is a window that opens and says that
lasinfo.exe has stopped working. I click on the "Close program" button in

las support has been broken in Windows, which version you are using? Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Hi,

2016-12-06 22:57 GMT+01:00 Martin Landa <landa.martin@gmail.com>:

las support has been broken in Windows, which version you are using? Ma

I see - 7.0.5. Can you try 7.2.0RC2 [1]? Ma

[1] https://geo102.fsv.cvut.cz:8000/?PROJECT=vagrant/rain/webapp

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

2016-12-06 22:58 GMT+01:00 Martin Landa <landa.martin@gmail.com>:

I see - 7.0.5. Can you try 7.2.0RC2 [1]? Ma

[1] https://geo102.fsv.cvut.cz:8000/?PROJECT=vagrant/rain/webapp

ops, sorry for wrong link! Here it is

https://grass.osgeo.org/news/65/15/GRASS-GIS-7-2-0RC2-released/

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 12/6/2016 3:33 PM, Martin Landa wrote:

Hi,

2016-12-06 21:47 GMT+01:00 john polo <jpolo@mail.usf.edu>:

"v.in.lidar
input=C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las
out=lidarone
(Tue Dec 06 14:32:02 2016) Command finished (8 sec)

ok, what prints

lasinfo C:/Users/Admin/Documents/grassdata/okmulgee/f35096E1_NEA_PrjAdd.las

?

This command does not work for me. I am on a different machine. Still Windows 7 and now GRASS 7.2.0RC2. An error comes up reporting that lasinfo.exe has stopped working. I tried the v.in.lidar command from the console and from the File menu and get a similar error about GRASS not working.

I have lasinfo installed separately, as in not part of the GRASS "extrabin" folder, for LiDAR tasks and when I use that lasinfo, it works. I don't know what about the GRASS install is different and why I am having this problem. I can't seem to find a debug for GRASS to see more specific messages about what is stopped or crashed. It just says that it has crashed, but then it stays open and then the output window says command finished without showing any new data.

john