whitebox-tools
whitebox-tools copied to clipboard
mosaic result drops rows (with sparse inputs)
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
layer 1
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:
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!
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.