Skip to content

Commit

Permalink
Fix drag & drop for PG rasters in DB Manager
Browse files Browse the repository at this point in the history
(backport of 431dc14269bf24ce32001046d021b7f9312fc61c from master)
  • Loading branch information
Sandro Santilli committed May 19, 2015
1 parent e94a8cc commit ea447e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/db_manager/db_plugins/postgis/plugin.py
Expand Up @@ -34,6 +34,8 @@
except ImportError:
pass

import re

def classFactory():
return PostGisDBPlugin

Expand Down Expand Up @@ -261,7 +263,7 @@ def gdalUri(self):
return gdalUri

def mimeUri(self):
uri = u"raster:gdal:%s:%s" % (self.name, self.gdalUri())
uri = u"raster:gdal:%s:%s" % (self.name, re.sub(":", "\:", self.gdalUri()))
return uri

def toMapLayer(self):
Expand Down

0 comments on commit ea447e7

Please sign in to comment.