[GRASS-user] Re: Re: some interesting tools for working with LAS format

At a minimum, this description would be good to add to the grass FAQ.

---- Original message ----

Date: Wed, 11 Jul 2007 15:11:31 +0200
From: Bernhard Reimar Hoefle <Bernhard.Hoefle@uibk.ac.at>
Subject: [GRASS-user] Re: Re: some interesting tools for working with LAS format
To: grassuser@grass.itc.it

Hi!
Thanks to Hamish we can now easily convert LAS files to DEMs with r.in.xyz.

To remind, LAS Tools can be found here:
http://www.cs.unc.edu/~isenburg/lastools/

I successfully compiled and used it like this:

1)
in las2txt.cpp (lastools/tools/src): change main to return int:
int main(int argc, char *argv)

2)
g++ ../../src/lasreader.cpp las2txt.cpp -I ../../inc/ -o las2txt
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64

3)
./las2txt test.las -otxt | r.in.xyz input=- output=dtm method=min fs=" "

As a start we can include references to the LAS tools in the relevant man
pages and wiki, with build and useage examples. This would get new users up
to speed on the 'toolchain' approach to processing data with GRASS+external
tools.

We should definitely do that.

While this is always an option, I think that by generalizing things a bit
further (via a GDAL/ogr driver) or using the LAS tools as a pre-processing
step would be the best way forward.

I absolutely agree with you. But don't know how complicated this implementation
will be and I'm not a programmer, so I cannot really support.

Bernhard

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

Gerald Nelson
Professor, Dept. of Agricultural and Consumer Economics
University of Illinois, Urbana-Champaign
office: 217-333-6465
cell: 217-390-7888
315 Mumford Hall
1301 W. Gregory
Urbana, IL 61801