pylas.lasappender

LasAppender

class pylas.lasappender.LasAppender(dest: BinaryIO, laz_backend: Union[pylas.compression.LazBackend, Iterable[pylas.compression.LazBackend], None] = None, closefd: bool = True)[source]

Allows to append points to and existing LAS/LAZ file.

Appending to LAZ is only supported by the lazrs backend

append_points(points: pylas.point.record.PackedPointRecord) → None[source]

Append the points to the file, the points must have the same point format as the points already contained within the file.

Parameters:points – The points to append