<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry guys, seems like my process somehow changed the image along
the way.<br>
It works now.<br>
<br>
Thanks for the help.<br>
<br>
Chris<br>
<br>
<br>
<br>
On 2010/09/28 12:17 PM, Chaitanya kumar CH wrote:
<blockquote
cite="mid:AANLkTi=CCMs9XJMi2DcXLc2CSvu=Qj3eQ7BJvJ_fGQVU@mail.gmail.com"
type="cite">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
moz-do-not-send="true" 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 moz-do-not-send="true"
href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
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>
</blockquote>
<br>
</body>
</html>