pchandler.data_io.util
Top-level convenience loader that dispatches to the per-format handler by suffix.
Functions
|
Load a point cloud from disk by dispatching on the file suffix. |
- pchandler.data_io.util.load_file(file_path, **kwargs)
Load a point cloud from disk by dispatching on the file suffix.
Recognised suffixes are listed in
SUPPORTED_TYPES(.las/.laz/.txt/.asc/.csv/.pts/.e57/.ply).- Parameters:
file_path (str | Path) – Path to the point-cloud file to load.
**kwargs (Any) – Additional keyword arguments forwarded to the per-format handler’s
loadmethod.
- Returns:
The loaded point cloud.
- Return type:
- Raises:
ValueError – If the file’s suffix is not in
SUPPORTED_TYPES.