From 176dc7dd370eb4f4b74a292f9e15f6bab8c6cf89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanc?= Date: Wed, 2 Mar 2022 16:06:47 +0100 Subject: [PATCH] Fix #201 QgsVectorLayer loading for spatialite --- gml_application_schema_toolbox/core/load_gmlas_in_qgis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gml_application_schema_toolbox/core/load_gmlas_in_qgis.py b/gml_application_schema_toolbox/core/load_gmlas_in_qgis.py index 9d92134..8ddcc71 100644 --- a/gml_application_schema_toolbox/core/load_gmlas_in_qgis.py +++ b/gml_application_schema_toolbox/core/load_gmlas_in_qgis.py @@ -66,7 +66,7 @@ def _qgis_layer( elif provider in ("spatialite"): # use OGR for spatialite loading couche = QgsVectorLayer( - "{} table={} {}".format(uri, layer_name, g_column), + "{} table=({}) {}".format(uri, layer_name, g_column), qgis_layer_name, "spatialite", )