From e0377def61f3a8ed1a0d00b857fe8e29ff59f6c3 Mon Sep 17 00:00:00 2001 From: Tomas Zigo Date: Mon, 19 Sep 2022 08:44:29 +0200 Subject: [PATCH] Set idsn var value if DB is Rasterlite --- gui/wxpython/modules/import_export.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/wxpython/modules/import_export.py b/gui/wxpython/modules/import_export.py index 389ed98b8ac..f9a46d7e579 100644 --- a/gui/wxpython/modules/import_export.py +++ b/gui/wxpython/modules/import_export.py @@ -476,6 +476,7 @@ def OnRun(self, event): if self.dsnInput.GetType() == "dir": idsn = os.path.join(dsn, layer) elif self.dsnInput.GetType() == "db": + idsn = dsn if "PG:" in dsn: idsn = f"{dsn} table={layer}" else: