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

Vincent Schut schut at sarvision.nl
Fri Apr 3 02:04:41 EDT 2009


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 'gdalinfo -mm <file>'.

Vincent


More information about the gdal-dev mailing list