<p dir="ltr">Personally I recommend either the erdas ecwj2k or mrsid driver for uses jp2 files. </p>
<div class="gmail_quote">On Apr 24, 2014 7:25 PM, "Kasper van Wijk" <<a href="mailto:k.vanwijk@auckland.ac.nz">k.vanwijk@auckland.ac.nz</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Eli: thanks for the new repo. This got me from gdal 1.7.3 to 1.9.1, but still the same warning/output<div><br></div><div>Trent: I downloaded the linux binaries and followed the instructions in the README (about PATHS), but: </div>
<div><div>kasper@PALette:~/Downloads$ kdu_expand -i m_3810623_ne_13_1_20110921_20111031.jp2 -o geo.tif -num_threads 2</div><div>bash: /home/kasper/kakadu/bin/kdu_expand: cannot execute binary file</div></div><div><br></div>
<div>Even: I managed to install the <a href="http://gdal.org/frmt_jp2openjpeg.html" target="_blank">http://gdal.org/frmt_jp2openjpeg.html</a>, and downloaded and install gdal1.10 against the openjpeg libs, but </div><div>
<br></div><div><div>kasper@PALette:~/Downloads/gdal-1.10.1$ !gdal</div><div>gdal_translate</div><div>ERROR 1: gdal_translate was compiled against GDAL 1.10 but current library version is 1.9</div></div><div><br></div><div>
How/where do I get the 1.10 libs? Or should I install GDAL1.09 to match?</div><div><br></div>
<div>Cheers,</div><div>kasper</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 25 April 2014 09:43, Eli Adam <span dir="ltr"><<a href="mailto:eadam@co.lincoln.or.us" target="_blank">eadam@co.lincoln.or.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kasper,<br>
<br>
On Thu, Apr 24, 2014 at 2:32 PM, Even Rouault<br>
<<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>> wrote:<br>
> Le jeudi 24 avril 2014 23:29:03, Kasper van Wijk a écrit :<br>
<div>>> thank you, Even, for the fast reply. I am a beginner at GDAL and installed<br>
>> the gdal suite with "standard" apt-get and yum, respectively. Can you point<br>
>> me to a place where I can read how to compile GDAL against one of the other<br>
>> JPEG2000 libraries, as you say?<br>
<br>
</div>Compiling is a great option and might be the best. You might also<br>
want to check which drivers are in Ubuntu GIS and Enterprise Linux GIS<br>
which might be easier than compiling. They are often more recent and<br>
with more features than the standard repos.<br>
<br>
<a href="https://wiki.ubuntu.com/UbuntuGIS" target="_blank">https://wiki.ubuntu.com/UbuntuGIS</a><br>
<a href="http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS" target="_blank">http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS</a><br>
<br>
Best regards, Eli<br>
<div><br>
><br>
> You will find various resources at <a href="http://trac.osgeo.org/gdal/wiki/BuildHints" target="_blank">http://trac.osgeo.org/gdal/wiki/BuildHints</a><br>
><br>
> Most interesting links for your use case :<br>
> * <a href="http://trac.osgeo.org/gdal/wiki/DownloadSource" target="_blank">http://trac.osgeo.org/gdal/wiki/DownloadSource</a><br>
> * <a href="http://trac.osgeo.org/gdal/wiki/BuildingOnUnix" target="_blank">http://trac.osgeo.org/gdal/wiki/BuildingOnUnix</a><br>
> * <a href="http://trac.osgeo.org/gdal/wiki/ECW" target="_blank">http://trac.osgeo.org/gdal/wiki/ECW</a> : if you want to compile against ECW SDK<br>
> * <a href="http://gdal.org/frmt_jp2openjpeg.html" target="_blank">http://gdal.org/frmt_jp2openjpeg.html</a> : if you want to compile against<br>
> OpenJPEG v2<br>
><br>
>><br>
</div><div><div>>> Thanks again,<br>
>> Kasper<br>
>><br>
>> On 25 April 2014 09:25, Even Rouault <<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>> wrote:<br>
>> > Le jeudi 24 avril 2014 23:17:29, Kasper van Wijk a écrit :<br>
>> > > dear all,<br>
>> > ><br>
>> > > I am downloading jp2 data from the usgs national map. To plot this in<br>
>> > > cartopy, I need to transform to something else, such as geotiff.<br>
>> > > However, using gdal_translate I get a warning copied below, and the<br>
>> > > output is a grainy bw version of the image. I have checked my results<br>
>> > > under linux<br>
>> ><br>
>> > both<br>
>> ><br>
>> > > fedora core 20 and ubuntu 12.04 versions with GDAL 1.7.3, released<br>
>> > > 2010/11/10<br>
>> > ><br>
>> > > gdal_translate m_3810623_ne_13_1_20110921_20111031.jp2 test.tiff -of<br>
>> ><br>
>> > GTiff<br>
>> ><br>
>> > > warning: not enough tile data (2 bytes)<br>
>> ><br>
>> > Apparently your GDAL build uses libjasper as the jpeg2000 library. Jasper<br>
>> > doesn't work very well unfortunately with some real world images.<br>
>> > You might want to compile GDAL against one of the other JPEG2000<br>
>> > libraries that are supported : see <a href="http://gdal.org/formats_list.html" target="_blank">http://gdal.org/formats_list.html</a><br>
>> ><br>
>> > --<br>
>> > Geospatial professional services<br>
>> > <a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
><br>
> --<br>
> Geospatial professional services<br>
> <a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</div></div>> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">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></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>