GitHubRGI / geopackage-python

Achived - See GitLab repository for current development
https://gitlab.com/GitLabRGI/erdc/geopackage-python
GNU General Public License v3.0
65 stars 42 forks source link

test_tiles2gpkg.py: test_matrix_width (470) and test_matrix_height (486) are failing #1

Closed GitHubRGI closed 9 years ago

GitHubRGI commented 9 years ago

Tile matrix size calculations were updated to reflect a full theoretical tile matrix. In previous versions, tiles2gpkg_parallel.py would calculate tile matrix height and width values based on what tiles actually reside in the raster tile table. Now, the calculation takes any theoretical, fully transparent tiles that should exist in the raster table but do not.

This failure of transparent tiles to exist in the raster tile table can be blamed on gdal2tiles not always making them.

Correct these two test cases to compare the matrix height and width values for what they should actually be.

JACochran commented 9 years ago

The commit 92af72e corrects the two test cases as well as an additional rounding error in a third test.