From 4cc8340c59d9643cf80282ac801309fdc0cbf747 Mon Sep 17 00:00:00 2001 From: bordoray Date: Tue, 12 Mar 2024 12:04:16 +0900 Subject: [PATCH] exclude no geometry layer to dialog --- ui/main_dialog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/main_dialog.py b/ui/main_dialog.py index b6c7830..01c5dc1 100644 --- a/ui/main_dialog.py +++ b/ui/main_dialog.py @@ -260,6 +260,9 @@ def _process_node_recursive(self, node, parent_node): ): # Unsupported QgsMapLayerType continue + if not child.layer().isSpatial(): + # exclude no geometry layers such as CSV files + continue else: raise Exception("Unknown child type")