Skip to content

Commit 27f1d9f

Browse files
radosuavSandro Santilli
authored andcommitted
Fix drag & drop for PG rasters in DB Manager
1 parent d8e1cf3 commit 27f1d9f

File tree

1 file changed

+2
-1
lines changed
  • python/plugins/db_manager/db_plugins/postgis

1 file changed

+2
-1
lines changed

python/plugins/db_manager/db_plugins/postgis/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
except ImportError:
3636
pass
3737

38+
import re
3839

3940
def classFactory():
4041
return PostGisDBPlugin
@@ -273,7 +274,7 @@ def gdalUri(self):
273274
return gdalUri
274275

275276
def mimeUri(self):
276-
uri = u"raster:gdal:%s:%s" % (self.name, self.gdalUri())
277+
uri = u"raster:gdal:%s:%s" % (self.name, re.sub(":", "\:", self.gdalUri()))
277278
return uri
278279

279280
def toMapLayer(self):

0 commit comments

Comments
 (0)