Skip to content
Permalink
Browse files

Fix drag & drop for PG rasters in DB Manager

(backport of 431dc14269bf24ce32001046d021b7f9312fc61c from master)
  • Loading branch information
Sandro Santilli
Sandro Santilli committed May 19, 2015
1 parent e94a8cc commit ea447e78e4f121fb1ef2c83e4e45e727bd9d9f87
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -34,6 +34,8 @@
except ImportError:
pass

import re

def classFactory():
return PostGisDBPlugin

@@ -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):

0 comments on commit ea447e7

Please sign in to comment.
You can’t perform that action at this time.