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@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@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

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to