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/Zcoordinates to lowercasex/y/zfor pointcloudset internals.
- Returns:
A dataframe containing pointcloud columns.
- Raises:
ValueError – If
normalize_xyzis 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, orz.