Hi,
I am currently stuck with a strange issue in GDAL and do not understand how to solve it. I have a method inside an IO module:
read_image_file(filename::AbstractPath) = AG.read(string(filename))
This method is being called from another method:
function write_cog(output_path::SystemPath, dataset_path::AbstractPath)
dataset = read_image_file(dataset_path)
AG.copy(dataset; filename = string(output_path), driver = AG.getdriver("COG"))
end
and here it fails giving me the error
Exception has occurred: GDAL.GDALError
GDALError (CE_Failure, code 4):
`.../temp.tif' not recognized as a supported file format.
When I run the same code through the debugger, it works well. Not sure how to solve this issue. Any help is much appreciated.