[gdal-dev] GDAL fails on reading rset via Virtual File
aashishcy at gmail.com
Tue Mar 5 17:03:31 PST 2013
I am using GDAL Virtual File mechanism to read data off a stream (something
like what's shown below)
VSILFILE* fpTemp = VSIFileFromMemBuffer(szTempFileName, (GByte*)
this->gdal_data_ = (GDALDataset*) GDALOpen(szTempFileName, GA_ReadOnly)
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
File Format: File formats supported by GDAL
Decoding view (0,0) (+29952,+21760)...ERROR 4:
VSIFOpenL(/vsimem/tmp_0x1758cd0) failed unexpectedly in jpgdataset.cpp
ERROR 1: /vsimem/tmp_0x1758cd0, band 1: IReadBlock failed at X offset 75, Y
ERROR 1: GetBlockRef failed at X block offset 75, Y block offset 2
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.
Any help is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev