diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fcab2e..07361c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# dev +- [fix] color: rename Deviation extra dim to PredictionOccupationSol + # 1.15.9 - [fix] color: fix main diff --git a/pdaltools/color.py b/pdaltools/color.py index 8de5db0..9cc20ae 100644 --- a/pdaltools/color.py +++ b/pdaltools/color.py @@ -40,7 +40,7 @@ def color_from_stream( color_rvb_enabled=True, color_ir_enabled=True, veget_index_file="", - vegetation_dim="Deviation", + vegetation_dim="PredictionOccupationSol", check_images=False, stream_RGB="ORTHOIMAGERY.ORTHOPHOTOS", stream_IRC="ORTHOIMAGERY.ORTHOPHOTOS.IRC", @@ -64,7 +64,7 @@ def color_from_stream( veget_index_file (str, optional): Path to the tiff tile to use for "vegetation_dim" colorization. Defaults to "". vegetation_dim (str, optional): Name of the dimension to use to store the values of "veget_index_file". - Defaults to "Deviation". + Defaults to "PredictionOccupationSol". check_images (bool, optional): If true, check if images from the geoplateform data feed are white (and raise and error in this case). Defaults to False. stream_RGB (str, optional): WMS raster stream for RGB colorization: @@ -164,7 +164,7 @@ def color_from_files( color_rvb_enabled=True, color_ir_enabled=True, veget_index_file="", - vegetation_dim="Deviation", + vegetation_dim="PredictionOccupationSol", ): pipeline = pdal.Reader.las(filename=input_file) @@ -253,7 +253,10 @@ def add_common_options(parser): help="Vegetation file (raster), value will be stored in 'vegetation_dim' field", ) parser.add_argument( - "--vegetation_dim", type=str, default="Deviation", help="name of the extra_dim uses for the vegetation value" + "--vegetation_dim", + type=str, + default="PredictionOccupationSol", + help="name of the extra_dim uses for the vegetation value", ) diff --git a/test/data/las_with_several_extra_byte_bloc.laz b/test/data/las_with_several_extra_byte_bloc.laz index e1a7ec0..881c7e3 100755 Binary files a/test/data/las_with_several_extra_byte_bloc.laz and b/test/data/las_with_several_extra_byte_bloc.laz differ diff --git a/test/test_pdal.py b/test/test_pdal.py index 2e009b4..9277f60 100755 --- a/test/test_pdal.py +++ b/test/test_pdal.py @@ -16,7 +16,7 @@ def test_pdal_read_severals_extra_dims(): metadata = pipeline.quickinfo["readers.las"] # dimensions should contains 'Deviation' and 'confidence' - assert "Deviation" in metadata["dimensions"] + assert "PredictionOccupationSol" in metadata["dimensions"] assert "confidence" in metadata["dimensions"] # Test Python PDAL bindings