Permalink
Browse files

grib.py: adapt expected test results w.r.t upgrade to OpenJPEG 2.1.2 …

…on Ubuntu 16.04
  • Loading branch information...
rouault committed Sep 3, 2018
1 parent dc782e5 commit 75f0c16d57c905ded395ebd2c01df87fbf6b83fb
Showing with 2 additions and 2 deletions.
  1. +2 −2 autotest/gdrivers/grib.py
@@ -1210,8 +1210,8 @@ def grib_grib2_write_data_encodings():
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000'], 4672, GS5_JPEG2000]]
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'COMPRESSION_RATIO=2'], 4672, GS5_JPEG2000]] # COMPRESSION_RATIO ignored in that case
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'NBITS=8'], 4672, GS5_JPEG2000]]
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'DECIMAL_SCALE_FACTOR=-1'], 4820, GS5_JPEG2000]]
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'NBITS=8', 'DECIMAL_SCALE_FACTOR=-1'], 4855, GS5_JPEG2000]]
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'DECIMAL_SCALE_FACTOR=-1'], (4820, 4722), GS5_JPEG2000]]
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'NBITS=8', 'DECIMAL_SCALE_FACTOR=-1'], (4855, 4795), GS5_JPEG2000]]
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'NBITS=9'], 4672, GS5_JPEG2000]]
# 4899 for JP2ECW, 4440 for JP2OPENJPEG
tests += [['data/byte.tif', ['DATA_ENCODING=JPEG2000', 'NBITS=7'], (4484, 4899, 4440), GS5_JPEG2000]]

0 comments on commit 75f0c16

Please sign in to comment.