ign-packo / PackO

Outil pour le contrôle et la retouche du mosaïquage d'ortho
Other
6 stars 2 forks source link

Fix table name #356

Closed nlenglet-ign closed 1 year ago

nlenglet-ign commented 1 year ago

Ticket #357

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 3310627711


Totals Coverage Status
Change from base Build 3290143124: 0.0%
Covered Lines: 6015
Relevant Lines: 6300

💛 - Coveralls
ftoromanoff commented 1 year ago

J'ai tout d'abord lancé la requête qui marche sur master et j'obtient :

python scripts/create_cache.py -I "D:\PackO_CreateCache\11_OPI_ir\*.tif" -R "D:\PackO_CreateCache\11_OPI_rvb\*.tif" -o ressources/LAMB93_20cm.json -c cache_11OPI_RGBIR_test -g "D:\PackO_CreateCache\69_2020_mosaiquage_mtd_region.gpkg" -t '69_2020_mosaiquage_mtd_region' -r 1 Traceback (most recent call last): File "D:\PackO\scripts\create_cache.py", line 6, in cache.generate(update=False) File "D:\PackO\scripts\cache.py", line 249, in generate args = read_args(update, False, False) File "D:\PackO\scripts\cache.py", line 106, in read_args db_graph.GetLayer(args.table).GetExtent() AttributeError: 'NoneType' object has no attribute 'GetExtent'

Erreur pas très clair...

nlenglet-ign commented 1 year ago

J'ai tout d'abord lancé la requête qui marche sur master et j'obtient :

python scripts/create_cache.py -I "D:\PackO_CreateCache\11_OPI_ir*.tif" -R "D:\PackO_CreateCache\11_OPI_rvb*.tif" -o ressources/LAMB93_20cm.json -c cache_11OPI_RGBIR_test -g "D:\PackO_CreateCache\69_2020_mosaiquage_mtd_region.gpkg" -t '69_2020_mosaiquage_mtd_region' -r 1 Traceback (most recent call last): File "D:\PackO\scripts\create_cache.py", line 6, in cache.generate(update=False) File "D:\PackO\scripts\cache.py", line 249, in generate args = read_args(update, False, False) File "D:\PackO\scripts\cache.py", line 106, in read_args db_graph.GetLayer(args.table).GetExtent() AttributeError: 'NoneType' object has no attribute 'GetExtent'

Erreur pas très clair...

La table que tu essaie de requêter est '69_2020_mosaiquage_mtd_region' qui n'existe pas, la table qui existe étant vraisemblablement 69_2020_mosaiquage_mtd_region, invalide car premier caractère numérique.

ftoromanoff commented 1 year ago

J'ai tout d'abord lancé la requête qui marche sur master et j'obtient : python scripts/create_cache.py -I "D:\PackO_CreateCache\11_OPI_ir.tif" -R "D:\PackO_CreateCache\11_OPI_rvb.tif" -o ressources/LAMB93_20cm.json -c cache_11OPI_RGBIR_test -g "D:\PackO_CreateCache\69_2020_mosaiquage_mtd_region.gpkg" -t '69_2020_mosaiquage_mtd_region' -r 1 Traceback (most recent call last): File "D:\PackO\scripts\create_cache.py", line 6, in cache.generate(update=False) File "D:\PackO\scripts\cache.py", line 249, in generate args = read_args(update, False, False) File "D:\PackO\scripts\cache.py", line 106, in read_args db_graph.GetLayer(args.table).GetExtent() AttributeError: 'NoneType' object has no attribute 'GetExtent' Erreur pas très clair...

La table que tu essaie de requêter est '69_2020_mosaiquage_mtd_region' qui n'existe pas, la table qui existe étant vraisemblablement 69_2020_mosaiquage_mtd_region, invalide car premier caractère numérique.

c'est donc une erreur non gérée. Qu'il faut donc gérer

nlenglet-ign commented 1 year ago

J'ai poussé des corrections par rapport aux dernières remarques