[gdal-dev] problem with gdal_translate jp2 file from the usgs (linux)

Eli Adam eadam at co.lincoln.or.us
Thu Apr 24 14:43:51 PDT 2014


Kasper,

On Thu, Apr 24, 2014 at 2:32 PM, Even Rouault
<even.rouault at mines-paris.org> wrote:
> 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?

Compiling is a great option and might be the best.  You might also
want to check which drivers are in Ubuntu GIS and Enterprise Linux GIS
which might be easier than compiling.  They are often more recent and
with more features than the standard repos.

https://wiki.ubuntu.com/UbuntuGIS
http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS

Best regards, Eli

>
> 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.rouault at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list