gpf_common_point_cloud.utils.pdal_utils module

Helper to use pdal commands

gpf_common_point_cloud.utils.pdal_utils.pdal_info_from_ept(ept_head_file: Path) Status

Execute a PDAL pipeline to check the consistency of an EPT dataset.

Paramètres:

ept_head_file (Path) – path of the head file of dataset

Renvoie:

SUCCESS if execution OK FAILURE if a handled error occured TECHNICAL_ERROR otherwise

Type renvoyé:

Status

gpf_common_point_cloud.utils.pdal_utils.pdal_info_from_las(file: Path) dict | None

Execute a PDAL pipeline to get informations from a LAS/LAZ file.

Paramètres:

file (Path) – path of the file

Renvoie:

the pipeline executed. None, if error occurs

Type renvoyé:

pdal.Pipeline

gpf_common_point_cloud.utils.pdal_utils.pdal_merge_using_tile(files_to_merge: list[Path], output_file_path: Path, out_srs: str) Status

Use pdal tile (with tile_size=0) to combine input files into a single output file.

Paramètres:
  • files_to_merge (list[Path]) – input files paths

  • output_file_path (Path) – output file path

  • out_srs (str) – output SRS

Renvoie:

SUCCESS if the job is ok, FAILURE otherwise

Type renvoyé:

Status

gpf_common_point_cloud.utils.pdal_utils.pdal_tile_las(pdal_tile_params: PdalTileParameters, input_dir: Path, output_dir: Path) Status

Produce tiling from inputs laz files :param pdal_tile_params: parameters from the configuration file :type pdal_tile_params: PdalTileParameters :param input_dir: POINT-CLOUD las/laz input folder :type input_dir: Path :param output_dir: POINT-CLOUD laz output folder :type output_dir: Path

Renvoie:

SUCCESS if the job is ok, FAILURE otherwise

Type renvoyé:

Status

gpf_common_point_cloud.utils.pdal_utils.untwine_convert_las_to_copc(files_paths: list[Path], output_file_path: Path, out_srs: str) Status

Convert files from las/laz to COPC.

Paramètres:
  • files_paths (list[Path]) – las/laz files paths to merge and convert

  • output_file_path (Path) – output file path copc.laz

  • out_srs (str) – output SRS

Renvoie:

SUCCESS if the job is ok, FAILURE otherwise

Type renvoyé:

Status