Skip to content

Commit

Permalink
JP2KAK: add a test related to #1860
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 19, 2019
1 parent ed5fefc commit fd4905e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions autotest/gdrivers/jp2kak.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,22 @@ def test_jp2kak_22():

gdal.Unlink('/vsimem/jp2kak_22.jp2')

###############################################################################
# Test accessing overview levels when the dimensions of the full resolution
# image are not a multiple of 2^numresolutions


def test_jp2kak_odd_dimensions():

if gdaltest.jp2kak_drv is None:
pytest.skip()

ds = gdal.Open('data/513x513.jp2')
cs = ds.GetRasterBand(1).GetOverview(0).Checksum()
ds = None

assert cs == 29642


###############################################################################
# Cleanup.
Expand Down

0 comments on commit fd4905e

Please sign in to comment.