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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to