Chris,<br><br>Did yo remember to make a call to <span style="font-family: courier new,monospace;">GDALAllRegister()</span> ?<br>Python automatically calls that when the GDAL module is imported.<br><br><div class="gmail_quote">
On Tue, Sep 28, 2010 at 3:31 PM, GOO Creations <span dir="ltr"><<a href="mailto:goocreations@gmail.com">goocreations@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi everyone
<br>
<br>
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:<br>
<br>
This is my code I use to open an image:
<br>
<span> </span>const
char* f = "/home/goocreations/Documents/blue.pix";
<br>
<span> </span>GDALDataset
*d = (GDALDataset*) GDALOpen(f,GA_Update);
<br>
<br>
I'm getting the following error:
<br>
<span> </span>ERROR
4: `/home/goocreations/Documents/blue.pix' not recognised as a
supported file
format.
<br>
<br>
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.
<br>
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).
<br>
<br>
I've read through the archive, and yes the following
applies:
<br>
- The image actually exists.
<br>
- I have full access/permission to the image
<br>
- The image is 30mb
<br>
- The image is not corrupt, since I can open it through the
GUI and through QGis.
<br>
<br>
I've really no idea what’s wrong, any idea??
<br>
<br>
Thanks<br>
Chris
</div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>