Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any tool available for extracting the X, Y and Z channels from a .las file and exporting them to a .csv or similar file?

share|improve this question
1  
Welcome to GIS SE! Are you looking for new software or do you already have GIS software and are just looking for a tool you have not used? – PolyGeo Jul 22 '13 at 11:01
1  
Thanks. Just any piece of software would be fine. – Dan Jul 22 '13 at 11:38
up vote 4 down vote accepted

las2txt from liblas.org may do what you want:

http://www.liblas.org/utilities/las2txt.html

share|improve this answer

Assume the following:

  • .las filename = project_x.las.
  • path where project_x.las is stored: c:\lidar\las_files\project_x.las.
  • .csv output file will be named project_x.csv.
  • project_x.csv will be saved at c:\lidar\csv_files\project_x.csv.

With Fusion:

Fusion is a free software for lidar processing and visualization. The command line to export as csv is LDA2ASCII.

The syntax is:

LDA2ASCII InputFile OutputFile format 

Write the following:

c:\FUSION\LDA2ASCII c:\lidar\las_files\project_x.las c:\lidar\csv_files\project_x.csv. 0  

The argument 0 will export only the x, y and z coordinates. It should create the file project_x_csv in the folder c:\lidar\csv_files.

In the example above, Fusion was installed under c:\FUSION.


With R:

There is the readLAS function written by Michael Sumner. Run it in R, then:

nfile = paste("c:\\lidar\\las_files\\project_x.las", sep="")
lasfiles = readLAS(nfile)
head(lasfiles,3) #see first three rows

            x       y      z  gpstime intensity
[1,] 732652.7 7459141 31.413 566219.0        58
[2,] 732655.2 7459144 28.600 566633.1        50
[3,] 732660.2 7459140 25.680 566633.0        52

lasframe = data.frame(lasfiles)
write.csv(lasframe,"c:\\lidar\\csv_files\\project_x.csv")
share|improve this answer
    
Great solutions. Thanks a lot. – Dan Jul 22 '13 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.