I have tried just about all the standard J2K extensions - none appear to work.
This is the output from... gdal_translate -of JPEG2000 image.ntf image.jp2 Input file size is 4008, 2672 0...10...20...30...40...50...60...70...80...90...100 - done. ERROR 4: `image.jp2' not recognised as a supported file format. The 0..10... bit happens absurdly quickly (as if it does nothing useful) The ERROR is (I think) perhaps generated by an automatic gdalinfo directly after the translate. Certainly, a gdalinfo on the created file returns an almost identical error. I can convert the ntf file into a geotiff OK. But then, if I try and convert the geotiff to jp2 - it fails - giving exactly the same symptoms. Is there some sort of JPEG2000 library I have to specifically load or something? ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Greg Coats Sent: 18 August 2009 15:44 To: Smart, Gary Cc: [email protected] Subject: Re: [gdal-dev] Converting to J2K $ gdal_translate --version GDAL 1.6.2, released 2009/07/31 $ gdal_translate -of JPEG2000 18stj940125.tif 18stj940125.jp2 Input file size is 5000, 5000 0...10...20...30...40...50...60...70...80...90...100 - done. FYI The convention for JPEG2000 image files is to use the extension .jp2. Greg On Aug 18, 2009, at 4:13 AM, Smart, Gary wrote: I am trying 'gdal_translate -of JPEG2000 thingy.ntf thingy.j2k' but GDAL complains that it doesn't understand the format thingy.j2k I think its getting the arguments confused. What am I doing wrong?
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
