|
|
@@ -344,10 +344,9 @@ class Mn2Checker(BaseChecker):
|
|
|
for item in self.dataset[model]:
|
|
|
item_geom_type = item.get_geom_type()
|
|
|
if item_geom_type != model.geom_type:
|
|
|
- excected = QgsModel.GEOM_NAMES.get(model.geom_type, "(inconnue)")
|
|
|
- found = QgsModel.GEOM_NAMES.get(item_geom_type, "(inconnue)")
|
|
|
- self.log_error(f"Type de géométrie invalide (attendu: {excected}, trouvé: {found})", item=item)
|
|
|
-
|
|
|
+ expected, found = model.get_geom_name(model.geom_type), model.get_geom_name(item_geom_type)
|
|
|
+ self.log_error(f"Type de géométrie invalide (attendu: {expected}, trouvé: {found})", item=item)
|
|
|
+
|
|
|
def test_bounding_box(self):
|
|
|
""" Contrôle des emprises
|
|
|
Vérifie que les objets sont dans le périmètre attendu
|