whitebox-tools icon indicating copy to clipboard operation
whitebox-tools copied to clipboard

mosaic result drops rows (with sparse inputs)

Open cefect opened this issue 2 years ago • 1 comments

When using the Mosiac tool to combine two rasters with the same extents, but sparse, with no overlap of reals (i.e., filling in the blanks):

layer 2 image

layer 1 image

I expect the result to have the same extents, and for the null cells to be infilled. Actual result infills as expected, but drops the bottom row: image

Some other tests I've done drop the right column as well.

Using v2.0.0, Windows 10 x64

whitebox\v2.0.0\whitebox_tools.exe -r=Mosaic -v --output=mosaic.tif --inputs=lay1.tif,lay2.tif --method=nn

layers are here.

Thank you for the awesome tool!

cefect avatar Aug 08 '22 08:08 cefect

The mosaic tool itself has no issue, the problem is linked to the way WBT read/write GeoTIFF files (see #126). So any tool that has a GeoTIFF as an input or output will have a similar problem currently.

I suggest you to either compile WBT with my fix (#187) or convert your GeoTIFFs to the BIL/HDR or FLT/HDR format with an other software (e.g. ArcMap, QGIS/GDAL) before feeding WBT.

jfbourdon avatar Aug 08 '22 13:08 jfbourdon