From fbf34223939dda653de274f2ca55807783c1991f Mon Sep 17 00:00:00 2001 From: nlenglet Date: Mon, 8 Dec 2025 15:29:29 +0100 Subject: [PATCH] feat: reset tags v2 feat: 0.6.1_test fix: v0.6.1 fix: changelog --- RELEASE_NOTES.md | 3 +++ pdal_ign_macro/main_preprocessing_mnx.py | 8 ++++++++ pdal_ign_macro/version.py | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index cbc129b..f3e8ec6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,8 @@ ### dev +# 0.6.1 +- update preprocessing_mnx to allow to reset tags if needed + # 0.6.0 - update mark_points_to_use_for_digital_models_with_new_dimension to allow to reset tags if needed diff --git a/pdal_ign_macro/main_preprocessing_mnx.py b/pdal_ign_macro/main_preprocessing_mnx.py index 10fd5e3..be64403 100644 --- a/pdal_ign_macro/main_preprocessing_mnx.py +++ b/pdal_ign_macro/main_preprocessing_mnx.py @@ -101,6 +101,11 @@ def parse_args(): default=1000, help="scale used in the filename to describe coordinates in meters (required when running with a buffer)", ) + parser.add_argument( + "--reset_tags", + action="store_true", + help="reset tags at the beginning of the process", + ) return parser.parse_args() @@ -122,6 +127,7 @@ def preprocess_mnx( virtual_points_classes: int, tile_width: int, tile_coord_scale: int, + reset_tags: bool = False, ): """Launch preprocessing before calculating MNX Args: @@ -141,6 +147,7 @@ def preprocess_mnx( virtual_points_classes (int): The classification value to assign to those virtual points (default: 66). tile_width (int): Width of the tile in meters (default: 1000). tile_coord_scale (int): scale used in the filename to describe coordinates in meters (default: 1000). + reset_tags (bool): If set, reset tags at the beginning of the process (default: False). """ # If no GeoJSON input is provided, we cannot add or mark points @@ -178,6 +185,7 @@ def preprocess_mnx( spatial_ref=spatial_ref, tile_width=tile_width, tile_coord_scale=tile_coord_scale, + reset_tags=reset_tags, ) diff --git a/pdal_ign_macro/version.py b/pdal_ign_macro/version.py index f94cd5c..6619d78 100755 --- a/pdal_ign_macro/version.py +++ b/pdal_ign_macro/version.py @@ -1,4 +1,4 @@ -__version__ = "0.6.0" +__version__ = "0.6.1" if __name__ == "__main__":