[gdal-dev] GDAL Error 4 - Again

GOO Creations goocreations at gmail.com
Tue Sep 28 07:52:38 EDT 2010


  Sorry guys, seems like my process somehow changed the image along the way.
It works now.

Thanks for the help.

Chris



On 2010/09/28 12:17 PM, Chaitanya kumar CH wrote:
> Chris,
>
> Did yo remember to make a call to GDALAllRegister() ?
> Python automatically calls that when the GDAL module is imported.
>
> On Tue, Sep 28, 2010 at 3:31 PM, GOO Creations <goocreations at gmail.com 
> <mailto:goocreations at gmail.com>> wrote:
>
>     Hi everyone
>
>     I've looked through the mailing-list archive and I know this issue
>     was addressed several 100 times, but I still can't find the problem:
>
>     This is my code I use to open an image:
>     const char* f = "/home/goocreations/Documents/blue.pix";
>     GDALDataset *d = (GDALDataset*) GDALOpen(f,GA_Update);
>
>     I'm getting the following error:
>     ERROR 4: `/home/goocreations/Documents/blue.pix' not recognised as
>     a supported file format.
>
>     The interesting part is that I have a python GUI (with SIP
>     bindings) that calls exactly the same C++ code as above and passed
>     a file path via the QFileDialog.
>     This plugin can open the exact same image
>     (/home/goocreations/Documents/blue.pix) correctly through GDAL,
>     although some other images sometimes open and sometimes don't
>     (this is weird).
>
>     I've read through the archive, and yes the following applies:
>     - The image actually exists.
>     - I have full access/permission to the image
>     - The image is 30mb
>     - The image is not corrupt, since I can open it through the GUI
>     and through QGis.
>
>     I've really no idea what’s wrong, any idea??
>
>     Thanks
>     Chris
>
>     _______________________________________________
>     gdal-dev mailing list
>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
>
> -- 
> Best regards,
> Chaitanya kumar CH.
> /tʃaɪθənjə/ /kʊmɑr/
> +91-9494447584
> 17.2416N 80.1426E

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100928/00927a35/attachment.html


More information about the gdal-dev mailing list