Crappy support of gdal: GDALImageIO
Mantis Issue 192, reported by echristophe, assigned to jmalik, created: 2010-10-18
I confirm that the writing for png and jpeg is done by the ITK IO (so I wasn't able to remote as much as I wanted to). And all other gdal formats that do not support random access writing are not working. This is due to some false assumption, for example: http://hg.orfeo-toolbox.org/OTB/file/9ab8b09e60ab/Code/IO/otbGDALImageIO.h#l104 104 /** Determine the file type. Returns true if the ImageIO can stream write the specified file */ 105 //THOMAS 106 virtual bool CanStreamWrite() 107 { 108 return true; 109 } and the use of the Create() method: http://hg.orfeo-toolbox.org/OTB/file/9ab8b09e60ab/Code/IO/otbGDALImageIO.cxx#l969
The gdal tutorial is pretty clear and we should be using the CreateCopy for the format that do not support random write access: http://www.gdal.org/gdal_tutorial.html
All gdal format that do not provide a Create() method are currently not supported.
1288774459 - julienmfixed by http://hg.orfeo-toolbox.org/OTB/rev/4643ea121331
1372256181 - grizonnetmResolved in 2010, I closed this bug