Even, <div><br></div><div>I feel quite foolish. I had not properly registered the plugin PATH. The jp2 are processing without a problem as I type. I will be sure to create a blog post documenting ALL of the steps that are required to get GDAL up on running on a windows machine.</div>
<div><br></div><div>Many thanks for your assistance!</div><div>Jay</div><div><br><div class="gmail_quote">On Sat, Jul 30, 2011 at 10:44 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le samedi 30 juillet 2011 19:14:17, Jay L. a écrit :<br>
<div class="im">> Here is the link. As I said, it is 28MB, including the .jp2, .aux.xml, and<br>
> .prj file.<br>
><br>
> <a href="http://www.personal.psu.edu/jzl5325/CTX.zip" target="_blank">http://www.personal.psu.edu/jzl5325/CTX.zip</a><br>
><br>
> I would have thought that unloading the JPEG2000 driver would have forced<br>
> the ECW driver to be used. It looks to me as if that driver is not being<br>
> used although it is in the ProgramFiles/GDAL/gdalplugins directory. What<br>
> is the best way to check for proper installation?<br>
<br>
</div>Hum, I'm confused : the JP2ECW driver works with gdalinfo, but not with python<br>
?<br>
<br>
Under the Python console, you can try :<br>
print(gdal.GetDriverByName('JP2ECW'))<br>
<br>
If it returns None, then it's clear there's an issue with your setup.<br>
<br>
And you should'nt have to unload the JPEG2000 driver because JP2ECW should be<br>
used before, due to the order in which the drivers are registered.<br>
<br>
So I suppose that the GDAL_DRIVER_PATH env variable isn't defined or doesn't<br>
point to the gdalplugin directory when you run your python script.<br>
<br>
I've tried on my (Linux) box and I can successfully run<br>
ComputeRasterMinMax(False) with the JP2ECW driver on your file.<br>
<div><div></div><div class="h5"><br>
><br>
> Again, many thanks,<br>
> Jay<br>
><br>
> > Ah ok, so it is the Jasper JPEG2000 driver that was used. Well it is<br>
> > known not<br>
> > to be very robust, so I'm not surprised that it fails decoding your<br>
> > image.<br>
> ><br>
> ><br>
> > Yes, upload it somewhere and provide the link.<br>
</div></div></blockquote></div><br></div>