[gdal-dev] Having trouble working with jp2 files

Stephen Woodbridge stephenwoodbridge37 at gmail.com
Wed Jun 20 13:08:25 PDT 2018


Even,

My bad, I ran the wrong container. Just reran the test and it works with 
gdal 2.2.4 and openjpeg 2.1.2. And this also worked:

root at ab86ce382ef0:/usr/local# gdal_translate -of GTiff -co TILED=YES -co 
PHOTOMETRIC=YCBCR -co COMPRESS=JPEG /data/850011.jp2 /data/850011.tif
Input file size is 29364, 25856
0...10...20...30...40...50...60...70...80...90...100 - done.

I also built openjpeg-master.zip and gdal 2.3.0 in the docker and that 
works also and is much much faster.

Thanks so much for your help!

Best regards,
   -Steve

On 6/20/2018 12:42 PM, Even Rouault wrote:
> On mercredi 20 juin 2018 12:33:40 CEST Stephen Woodbridge wrote:
>> Even,
>>
>> Thanks!
>>
>> I did built gdal 2.2.4 with openjpeg 2.1.2 on a docker container and
>> that solves the simple case of:
>>
>> gdalinfo -stats /data/850011.jp2
>>
>> but it still fails with:
>>
>> root at 436a09289084:/usr/local# gdal_translate -of GTiff -co TILED=YES
>> /data/850011.jp2 /data/850011.tif
> A bit strange, but I didn't actually test with 2.1.2
>
> You can download a zip of openjpeg master sources at:
> https://codeload.github.com/uclouvain/openjpeg/zip/master
>
> And you'd better use GDAL 2.3.0 with it.
>
> Even
>


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the gdal-dev mailing list