Skip to content

pgraster failing tests with mapnik v3.0.15 #155

@springmeyer

Description

@springmeyer

This is the test output for pgraster tests and mapnik v3.0.15:

~/projects/python-mapnik[v3.0.x-mason]$ python test/python_tests/pgraster_test.py ✘ test_data_16bsi_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_16bsi_subquery-16BSI-135-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 700, in test_data_16bsi_subquery _test_data_subquery('data_16bsi_subquery', '16BSI', 135) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_16bui_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_16bui_subquery-16BUI-126-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 695, in test_data_16bui_subquery _test_data_subquery('data_16bui_subquery', '16BUI', 126) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_2bui_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_2bui_subquery-2BUI-3-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 681, in test_data_2bui_subquery _test_data_subquery('data_2bui_subquery', '2BUI', 3) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_32bf_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_32bf_subquery-32BF-450-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 711, in test_data_32bf_subquery _test_data_subquery('data_32bf_subquery', '32BF', 450) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_32bsi_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_32bsi_subquery-32BSI-264-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 708, in test_data_32bsi_subquery _test_data_subquery('data_32bsi_subquery', '32BSI', 264) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_32bui_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_32bui_subquery-32BUI-255-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 703, in test_data_32bui_subquery _test_data_subquery('data_32bui_subquery', '32BUI', 255) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_4bui_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_4bui_subquery-4BUI-15-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 684, in test_data_4bui_subquery _test_data_subquery('data_4bui_subquery', '4BUI', 15) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_64bf_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_64bf_subquery-64BF-3072-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 714, in test_data_64bf_subquery _test_data_subquery('data_64bf_subquery', '64BF', 3072) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_8bsi_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_8bsi_subquery-8BSI-69-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 692, in test_data_8bsi_subquery _test_data_subquery('data_8bsi_subquery', '8BSI', 69) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✘ test_data_8bui_subquery AssertionError: images do not match, check diff at images/support/pgraster/data_subquery-data_8bui_subquery-8BUI-63-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 687, in test_data_8bui_subquery _test_data_subquery('data_8bui_subquery', '8BUI', 63) File "test/python_tests/pgraster_test.py", line 678, in _test_data_subquery compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✓ test_dataraster_16bsi ✓ test_grayscale_16bsi_subquery ✓ test_grayscale_16bui_subquery ✓ test_grayscale_2bui_subquery ✓ test_grayscale_32bsi_subquery ✓ test_grayscale_32bui_subquery ✓ test_grayscale_4bui_subquery ✓ test_grayscale_8bsi_subquery ✓ test_grayscale_8bui_subquery ✓ test_rgb_8bui ✘ test_rgba_8bui AssertionError: images do not match, check diff at images/support/pgraster/rgba_8bui-rgba_8bui C O_2-2-0-box1-diff.png Traceback: File "test/python_tests/pgraster_test.py", line 386, in test_rgba_8bui 'rgba_8bui', tilesize, constraint, overview) File "test/python_tests/pgraster_test.py", line 378, in _test_rgba_8bui _test_rgba_8bui_rendering(lbl, overview, prescale, clip) File "test/python_tests/pgraster_test.py", line 323, in _test_rgba_8bui_rendering compare_images(expected, im) File "test/python_tests/pgraster_test.py", line 151, in compare_images assert False, 'images do not match, check diff at %s' % diff ✓ test_rgba_8bui_subquery

Here are the diff images (expected on left, actual on right):

data_subquery-data_2bui_subquery-2bui-3-diff
data_subquery-data_4bui_subquery-4bui-15-diff
data_subquery-data_8bsi_subquery-8bsi-69-diff
data_subquery-data_8bui_subquery-8bui-63-diff
data_subquery-data_16bsi_subquery-16bsi-135-diff
data_subquery-data_16bui_subquery-16bui-126-diff
data_subquery-data_32bf_subquery-32bf-450-diff
data_subquery-data_32bsi_subquery-32bsi-264-diff
data_subquery-data_32bui_subquery-32bui-255-diff
data_subquery-data_64bf_subquery-64bf-3072-diff
rgba_8bui-rgba_8bui c o_2-2-0-box1-diff

It looks like the failures are due to 2 changes:

  • backgrounds no longer being transparent
  • resampling difference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions