No BSD License  

Highlights from
LASRead

4.0

4.0 | 1 rating Rate this file 16 Downloads (last 30 days) File Size: 1.29 KB File ID: #21434

LASRead

by Cici Alexander

 

14 Sep 2008 (Updated 26 Sep 2008)

Reads in files in LAS 1.1 format and outputs comma delimited text files.

| Watch this File

File Information
Description

Lidar or laser scanning data are often provided by vendors in binary LAS format. Though GIS softwares can be used to read in and display data, the attributes of the points are sometimes not accessible.

LASRead reads in files in LAS 1.1 format and outputs comma delimited text files with X coordinates, Y coordinates and Z coordinates (option 1), X coordinates, Y coordinates, Z coordinates and Intensity (option 2) or X coordinates, Y coordinates, Z coordinates, Intensity, Return number and Number of returns (option 3).

Large datasets (say, more than 3000000 points, depending on the system) may have to be split into smaller files to avoid errors related to available memory.

Reference: ASPRS LAS Specification Version 1.1, March 07, 2005
http://liblas.org/raw-attachment/wiki/WikiStart/asprs_las_format_v11.pdf

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
30 Nov 2009 leonel solano

Can you attach a .las file to your post so I can see how it works, I'm completely confused :S I'm new at this with MatLab. Thanks.

15 Jul 2011 Sukuchha

Do you have also written Las writer in matlab ?

19 Aug 2011 Amy Farris

This is a very helpful file. Are you planning on unp-dating it to read LAS 1.2?

20 Aug 2011 Amy Farris

LAS file formats 1.1 and 1.2 are so similar, that this m-file can read LAS1.2 files. Just change line 35 from:

if VersionMajor ~= 1 || VersionMinor ~= 1

to:

if VersionMajor ~= 1

and it will work!

Please login to add a comment or rating.
Updates
16 Sep 2008

I had forgotten to change the number of records to be read in back to 'inf' after doing a trial with 100000 records.

26 Sep 2008

Opening and closing the files several times have been replaced by 'fseek' which seems more efficient.

Tag Activity for this File
Tag Applied By Date/Time
data import Cici Alexander 22 Oct 2008 10:19:13
data export Cici Alexander 22 Oct 2008 10:19:13
las 11 Cici Alexander 22 Oct 2008 10:19:13
lidar Cici Alexander 22 Oct 2008 10:19:14
utilities Cici Alexander 22 Oct 2008 10:19:14
data export Jason Zhang 20 Nov 2009 11:12:25
lidar Jason Zhang 20 Nov 2009 11:12:29
lidar Fevzi Karsli 08 Jun 2011 05:56:13
las 11 Fevzi Karsli 08 Jun 2011 05:56:16

Contact us at files@mathworks.com