From 01a2ef9caf1d29b5673f6dff1adcaa0df95715d6 Mon Sep 17 00:00:00 2001 From: nlenglet Date: Thu, 19 Nov 2026 08:03:20 +0100 Subject: [PATCH] feat: add check las --- CHANGELOG.md | 3 +++ environment.yml | 2 +- patchwork/patchwork.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8320b32..12f0151 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## Not yes released +- Check that las/laz output can be read by pdal. + ## 1.4.1 - fix lorsque les las donneurs ne sont pas de même version (1.2 et 1.4): on ne garde que les attributs communs diff --git a/environment.yml b/environment.yml index dae9ac7..05304b9 100644 --- a/environment.yml +++ b/environment.yml @@ -27,4 +27,4 @@ dependencies: # TODO: use conda again for laspy installation once a new version is released - lazrs>=0.7.0 - git+https://github.com/laspy/laspy.git#egg[lazrs] - - ign-pdal-tools==1.11.1 \ No newline at end of file + - ign-pdal-tools>=1.18.1 \ No newline at end of file diff --git a/patchwork/patchwork.py b/patchwork/patchwork.py index cfde82b..42d953e 100644 --- a/patchwork/patchwork.py +++ b/patchwork/patchwork.py @@ -9,6 +9,7 @@ from laspy import LasReader, ScaleAwarePointRecord from omegaconf import DictConfig from pdaltools.las_info import get_tile_origin_using_header_info +from pdaltools.check_las import check_pdal_can_open_file_with_retry import patchwork.constants as c from patchwork.indices_map import create_indices_map @@ -258,6 +259,8 @@ def append_points(config: DictConfig, extra_points: pd.DataFrame): new_points.classification = extra_points[c.CLASSIFICATION_STR] output_las.append_points(new_points) + check_pdal_can_open_file_with_retry(output_filepath, 10) + def patchwork(config: DictConfig): recipient_filepath = os.path.join(config.filepath.RECIPIENT_DIRECTORY, config.filepath.RECIPIENT_NAME)