pylas.lasreader module

class pylas.lasreader.LasReader(stream, closefd=True)[source]

Bases: object

This class handles the reading of the different parts of a las file.

As the Header is necessary to be able to understand how the data is structured, it will be read during initialisation of the instance

close()[source]

closes the file object used by the reader

read()[source]

Reads the whole las data (header, vlrs ,points, etc) and returns a LasData object

read_evlrs()[source]

Reads the EVLRs of the file, will fail if the file version does not support evlrs

read_header()[source]

Reads the head of the las file and returns it

read_vlrs()[source]

Reads and return the vlrs of the file