Skip to content

Feat/add z ref in pointcloud#7

Open
mdupaysign wants to merge 10 commits intodevfrom
feat/add_z_ref_in_pointcloud
Open

Feat/add z ref in pointcloud#7
mdupaysign wants to merge 10 commits intodevfrom
feat/add_z_ref_in_pointcloud

Conversation

@mdupaysign
Copy link
Copy Markdown
Collaborator

Fonction de pré-traitement de LIdarForFuel :

  • ajouter un Zref en extra_dims aux nuages de points LIDAR filtrés

@mdupaysign mdupaysign self-assigned this Mar 9, 2026
num_filtered = len(filtered_arrays[0])
print(f"Nombre de points filtrés: {num_filtered}")

assert num_filtered <= num_points
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'algo de calcul des jours, la distribution des jours et la fenetre est assez compliqué.
Et le test ne vérifie pas que l'algo a bien fonctionné.
Pour être plus précis, tu pourrais faire

assert num_points == le_nombre_de_point_total
assert num_filtered == le_nombre_de_points_filtré


las_out = laspy.read(OUTPUT_LAS)
assert len(las_out.points) > 0, "Points preserved after processing"
assert "Z_ref" in las_out.point_format.dimension_names, "Z_ref dimension added"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pareil ici tu pourrais vérifier plus de choses

assert len(las_out.points) == le_nombre_points

assert isinstance(pipeline, pdal.Pipeline)
arrays = pipeline.arrays
assert len(arrays) == 1
assert len(arrays[0]) > 0 # Fichier test a des points
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

au lieu de mettre

assert len(arrays[0]) > 0  # Fichier test a des points

autant mettre directement le nb de points du fichier de test

assert len(arrays[0]) ==le_nombre_de_points

@mdupaysign mdupaysign force-pushed the feat/add_z_ref_in_pointcloud branch from a866eaa to e136d53 Compare March 12, 2026 10:15
… computation

- normalize_height_in_pointcloud: build TIN from all points with dtm_marker==1 (no longer restricted to Classification==2), apply filter_dimension/filter_values after HAG computation, remove use_dtm_marker parameter
- validate_lidar_file: check that dtm_marker extra dimension is present
- main_pretreatment: remove use_dtm_marker call argument
- configs/config.yaml: remove use_dtm_marker parameter
- tests: update synthetic data with dtm_marker field, use real file without dtm_marker to test the new validation error
>
@@ -1,4 +1,4 @@
__version__ = "0.0.2"
__version__ = "1.0.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pas besoin d'incrémenter le n° de version majeur. Le n° de version mineur est suffisant. Passe plutôt en 0.1.0.

Et il faut que ce soit dans un commit à part, car c'est un moment important et unitaire un changement de version.

@mdupaysign mdupaysign force-pushed the feat/add_z_ref_in_pointcloud branch from 6a7ddbd to 3792838 Compare March 18, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants