Le jeudi 24 avril 2014 23:29:03, Kasper van Wijk a écrit : > thank you, Even, for the fast reply. I am a beginner at GDAL and installed > the gdal suite with "standard" apt-get and yum, respectively. Can you point > me to a place where I can read how to compile GDAL against one of the other > JPEG2000 libraries, as you say?
You will find various resources at http://trac.osgeo.org/gdal/wiki/BuildHints Most interesting links for your use case : * http://trac.osgeo.org/gdal/wiki/DownloadSource * http://trac.osgeo.org/gdal/wiki/BuildingOnUnix * http://trac.osgeo.org/gdal/wiki/ECW : if you want to compile against ECW SDK * http://gdal.org/frmt_jp2openjpeg.html : if you want to compile against OpenJPEG v2 > > Thanks again, > Kasper > > On 25 April 2014 09:25, Even Rouault <even.roua...@mines-paris.org> wrote: > > Le jeudi 24 avril 2014 23:17:29, Kasper van Wijk a écrit : > > > dear all, > > > > > > I am downloading jp2 data from the usgs national map. To plot this in > > > cartopy, I need to transform to something else, such as geotiff. > > > However, using gdal_translate I get a warning copied below, and the > > > output is a grainy bw version of the image. I have checked my results > > > under linux > > > > both > > > > > fedora core 20 and ubuntu 12.04 versions with GDAL 1.7.3, released > > > 2010/11/10 > > > > > > gdal_translate m_3810623_ne_13_1_20110921_20111031.jp2 test.tiff -of > > > > GTiff > > > > > warning: not enough tile data (2 bytes) > > > > Apparently your GDAL build uses libjasper as the jpeg2000 library. Jasper > > doesn't work very well unfortunately with some real world images. > > You might want to compile GDAL against one of the other JPEG2000 > > libraries that are supported : see http://gdal.org/formats_list.html > > > > -- > > Geospatial professional services > > http://even.rouault.free.fr/services.html -- Geospatial professional services http://even.rouault.free.fr/services.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev