opengeospatial / geoedge-plugfest

Repository for Geospatial to the Edge Interoperability Plugfest
http://www.github.com/opengeospatial/geoedge-plugfest
0 stars 2 forks source link

GDAL Validation - Inconsistent values in matrices #72

Open bermud opened 6 years ago

bermud commented 6 years ago

Running GDAL Validation Script validate_gpkg.py from GDAL version 2.3 makes the following complaint:

~/Desktop/sprint2/orion$ ../validate_gpkg.py PuertoRico_Vectors_HiResImage_Elevation-3.gpkg 
Traceback (most recent call last):
  File "../validate_gpkg.py", line 1611, in <module>
    verbose=verbose)
  File "../validate_gpkg.py", line 1578, in check
    checker.check()
  File "../validate_gpkg.py", line 1557, in check
    self._check_tiles(c)
  File "../validate_gpkg.py", line 905, in _check_tiles
    self._check_tile_user_table(c, table_name, data_type)
  File "../validate_gpkg.py", line 735, in _check_tile_user_table
    "gpkg_tile_matrix_set for table %s") % table_name)
  File "../validate_gpkg.py", line 88, in _assert
    raise GPKGCheckException('Req %s: %s' % (str(req), msg))
__main__.GPKGCheckException: Req 45: Inconsistent values in gpkg_tile_matrix and gpkg_tile_matrix_set for table Imagery
gramnation commented 5 years ago

I've noticed running gdaladdo (GDAL v2.3.1) without explicit factors can insert an inconsistent row into gpkg_tile_matrix, similar to here. Passing -minsize option with tile dimension seems to avoid this problem, though.