Debug fill function so it handles cases where no working directory de…#4
Conversation
…fined. Close files that are opened/edited by gdal.
|
Hey thanks for contributing, it looks like this has to do with the way Windows operates and so it makes sense why this never surfaced in development as we've only developed and tested in Linux or in containers. Windows does not allow files to be deleted if they are open, so the I also noticed a similar issue in the resolve flats process which should also be fixed. I'll push a commit with the changes. |
…fined. Close files that are opened/edited by gdal.
Hi there, Thomas and I are using overflow in our sinkhole tool and find that when working directory is not defined in fill function, it would report error like "/...system path.../label.tif" is in use. I tested the before and after versions for the edits I made here and believe fill_depressions_tiled.py is the cause and added lines should fix it.