Re: [gdal-dev] Having trouble working with jp2 files

2018-06-20 Thread Stephen Woodbridge
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 i

Re: [gdal-dev] Having trouble working with jp2 files

2018-06-20 Thread Even Rouault
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# gd

Re: [gdal-dev] Having trouble working with jp2 files

2018-06-20 Thread Stephen Woodbridge
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 Input file si

Re: [gdal-dev] Having trouble working with jp2 files

2018-06-20 Thread Even Rouault
On mardi 19 juin 2018 23:07:24 CEST Stephen Woodbridge wrote: > I tried the following: > > git clone https://github.com/GeographicaGS/Docker-GDAL2.git > cd Docker-GDAL2/2.2.4 > #Edit Dockerfile and set 'ENV OPENJPEG_VERSION 2.3.0' > docker build -t gdal2:local ./ > cd /path/to/jp2 > docker run -t

Re: [gdal-dev] Having trouble working with jp2 files

2018-06-19 Thread Stephen Woodbridge
I tried the following: git clone https://github.com/GeographicaGS/Docker-GDAL2.git cd Docker-GDAL2/2.2.4 #Edit Dockerfile and set 'ENV OPENJPEG_VERSION 2.3.0' docker build -t gdal2:local ./ cd /path/to/jp2 docker run -t -i gdal2:local -v $(pwd):/data /bin/bash gdalinfo -stats /data/850011.jp2 An

Re: [gdal-dev] Having trouble working with jp2 files

2018-06-19 Thread Even Rouault
On mardi 19 juin 2018 16:57:30 CEST Stephen Woodbridge wrote: > Hi all, > > I'm having a problem readding jp2 files. My goal is to be able to > display them through mapserver, but I'm have problems with gdalinfo and > gdal_translate. I set up a docker image with the latest gdal2 in it like > the f

[gdal-dev] Having trouble working with jp2 files

2018-06-19 Thread Stephen Woodbridge
Hi all, I'm having a problem readding jp2 files. My goal is to be able to display them through mapserver, but I'm have problems with gdalinfo and gdal_translate. I set up a docker image with the latest gdal2 in it like the following.  I have 1074 jp2 files and all that I have tried are throwi