pointcloudset.io.pointcloud.las module

pointcloudset.io.pointcloud.las.read_las(file_path: Path | str, normalize_xyz: bool = False) DataFrame

Read a LAS/LAZ pointcloud file into a dataframe.

Parameters:
  • file_path – Path to the LAS/LAZ file.

  • normalize_xyz – Whether to convert LAS-native X/Y/Z coordinates to lowercase x/y/z for pointcloudset internals.

Returns:

A dataframe containing pointcloud columns.

Raises:

ValueError – If normalize_xyz is not enabled.

pointcloudset.io.pointcloud.las.write_las(pointcloud: PointCloud, file_path: Path) None

Write a pointcloud to LAS/LAZ using point format 7 and LAS 1.4.

Parameters:
  • pointcloud – PointCloud instance to serialize.

  • file_path – Destination LAS/LAZ file path.

Raises:

ValueError – If the pointcloud is missing x, y, or z.