Re: [Gdal-dev] how can i get the error msg

2009-04-02 Thread Vincent Schut
mjollnir wrote: It's ok. thanks form your reply. can i know the health status of the image file before process it. You could try opening and reading its contents first? If the file is bad, I'd say you'd probably get an error somewhere while reading it. On the command line I'd do this with '

Re: [Gdal-dev] how can i get the error msg

2009-04-02 Thread mjollnir
It's ok. thanks form your reply. can i know the health status of the image file before process it. mjollnir, It looks like this warning is issued by libjpeg in the fill_input_buffer function: fill_input_buffer (j_decompress_ptr cinfo) { my_src_ptr src = (my_src_ptr) cinfo->src; size_t n

Re: [Gdal-dev] how can i get the error msg

2009-04-02 Thread Frank Warmerdam
mjollnir wrote: hi, when i handle a bad jpg file, like this: eErr = GDALRasterIO(hBand, GF_Read, 0, 0, nXSize, nYSize,..) i got this error message in console: Premature end of JPEG file i'm wonder where the error msg come from. because i found that: eErr == CE_None when i use this code th

[Gdal-dev] how can i get the error msg

2009-04-02 Thread mjollnir
hi, when i handle a bad jpg file, like this: eErr = GDALRasterIO(hBand, GF_Read, 0, 0, nXSize, nYSize,..) i got this error message in console: Premature end of JPEG file i'm wonder where the error msg come from. because i found that: eErr == CE_None when i use this code the code quiet the