App Mosaic
While using the otb app Mosaic, I encountered 3 unexpected behaviors:
- When the option comp.feather is enable, the application crashes when asking for a relative input/output filename. Because the application badly resolve path and try to write in '/'. This is most likely link to the tmpdir internal management when not provided as parameter.
otbcli_Mosaic -il SENTINEL2X_20211015-083945-724_L3A_T36SXG_C_V1-2_FRC_B4.tif SENTINEL2X_20211017-204003-113_L3A_T36SXF_C_V1-2_FRC_B4.tif SENTINEL2X_20211029-202946-404_L3A_T36SYG_C_V1-2_FRC_B4.tif SENTINEL2X_20211029-203001-126_L3A_T36SYF_C_V1-2_FRC_B4.tif -interpolator linear -comp.feather slim -distancemap.sr 5 -out mosaic_slim_linear.tif Writing binary mask (from image boundaries) /mosaic_slim_linear_tmp_binary_mask_0.tif: 0% [ ]ERROR 4: Attempt to create new tiff file
/mosaic_slim_linear_tmp_binary_mask_0.tif' failed: Permission denied 2023-02-08 14:57:55 (FATAL) Mosaic: itk::ERROR: GDALImageIO(0x55f591ea7250): Attempt to create new tiff file
/mosaic_slim_linear_tmp_binary_mask_0.tif' failed: Permission denied
- The non mandatory param '-comp.feather.slim.length' causes a crash when it is not provided (when comp.feather is enable)
(FATAL) Mosaic: itk::ERROR: NumericalParameter(0x5624d7f0bf80): Cannot convert parameter length to float (no value).
- The nodata management is causing an issue for the output mosaic. Indeed when trying to set a no data different than 0. This is ignored by the StreamingFeatherMosaicFilter thus causing bad pixel value computation. Is there a solution to work with no data?
StreamingFeatherMosaicFilter (0x5573600ef150): NoDataOutputPixel not set. Using zeros