<div dir="ltr">I'm attempting to polygonize a GeoTIFF using the built-in GDALPolygonize, but sometimes it fails to write to file. I'm not attempting any sort of multi-threaded functionality so everything is running synchronously. Here is the code I'm using to polygonize: <a href="https://gist.github.com/Irantwomiles/c5f38b3e81fc3014be4e859048ad523f">https://gist.github.com/Irantwomiles/c5f38b3e81fc3014be4e859048ad523f</a><br></div>