Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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 coordinates 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 file = input.las.
  • input.las path: C:\lidar\input.las.
  • .csv file: output.csv.
  • output.csv path: C:\lidar\output.csv.

With Fusion, the command line to export as CSV is LDA2ASCII. Its syntax is:

LDA2ASCII InputFile OutputFile format 

Write the following:

C:\Fusion\LDA2ASCII C:\lidar\input.las C:\lidar\output.csv. 0  

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

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\\input.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\\output.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.