Skip to content

Commit ea447e7

Browse files
author
Sandro Santilli
committedMay 19, 2015
Fix drag & drop for PG rasters in DB Manager
(backport of 431dc14269bf24ce32001046d021b7f9312fc61c from master)
1 parent e94a8cc commit ea447e7

File tree

1 file changed

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

1 file changed

+3
-1
lines changed
 

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
except ImportError:
3535
pass
3636

37+
import re
38+
3739
def classFactory():
3840
return PostGisDBPlugin
3941

@@ -261,7 +263,7 @@ def gdalUri(self):
261263
return gdalUri
262264

263265
def mimeUri(self):
264-
uri = u"raster:gdal:%s:%s" % (self.name, self.gdalUri())
266+
uri = u"raster:gdal:%s:%s" % (self.name, re.sub(":", "\:", self.gdalUri()))
265267
return uri
266268

267269
def toMapLayer(self):

0 commit comments

Comments
 (0)
Please sign in to comment.