<div dir="ltr">Folks, <br><br>I am using GDAL Virtual File mechanism to read data off a stream (something like what's shown below)<br><div><br><div>VSILFILE* fpTemp = VSIFileFromMemBuffer(szTempFileName, (GByte*) s->file_size(), FALSE);<br>
this->gdal_data_ = (GDALDataset*) GDALOpen(szTempFileName, GA_ReadOnly)<br><br></div><div>The code works for most of the file formats of varying size but when I tried my reader on the rset NITF files (for example foo.r0), it exited with an error below<br>
<br>Image 29952x21760x1<br>File Format: File formats supported by GDAL<br>Decoding view (0,0) (+29952,+21760)...ERROR 4: VSIFOpenL(/vsimem/tmp_0x1758cd0) failed unexpectedly in jpgdataset.cpp<br>ERROR 1: /vsimem/tmp_0x1758cd0, band 1: IReadBlock failed at X offset 75, Y offset 2<br>
ERROR 1: GetBlockRef failed at X block offset 75, Y block offset 2<br>vil_convert: /home/aashish/tools/vidtk/src.git/wrappers/vil_plugins/file_formats/vil_gdal_image.cxx:235: vil_image_view_base_sptr vil_gdal_image_impl::read_data(vil_memory_chunk_sptr, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) [with TPixel = unsigned char]: Assertion `err == CE_None' failed.<br>
<br></div><div>Any help is appreciated. <br><br></div><div>Thanks.<br><br></div><div><br><br></div></div></div>