Segmentation app: file named "layer.*" unexpectedly created if output file exists (both obcli and QGIS)

If the file pointed by the output file name exists, this is not overwritten, but a file named “layer.” is created instead. Also, in QGIS, no confirmation message of the type (“File exists, overwrite?”) pops up, and the same name “layer.” is set to the output.

if MSQB_s5_r5_m1_B.shp exists, the following command:

otbcli_Segmentation -in QB_Toulouse_Ortho_PAN.tif -filter.meanshift.spatialr 5 -filter.meanshift.ranger 5 -minsize 1 -mode vector -mode.vector.out MSQB_s5_r5_m1_B.shp -filter meanshift

produces file “layer.*” with no clarifying message.

Using OTB 8.0.1
Reported in Segmentation app: file named "layer.*" unexpectedly created if output file exists (both obcli and QGIS) (#2298) · Issues · Main Repositories / otb · GitLab

I propose to discuss this issue directly in gitlab, since you reported it there.