I am creating a cost surface raster for identifying least cost paths for road constructions. One of the factors influencing the cost is water cover. I am using Landsat based Global Surface Water raster dataset for water cover. In some cases the rivers on the raster dataset do not have continuation and they break, messing up my least cost paths (assuming that on the break point there is no water, but there is).
How can I assure the continuation of rivers?