Skip to content
Permalink
Browse files

Fix drag & drop for PG rasters in DB Manager

  • Loading branch information
radosuav Sandro Santilli
radosuav authored and Sandro Santilli committed May 19, 2015
1 parent d8e1cf3 commit 27f1d9fb3ebb2445c7bec4350fd5b822d4d718e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -35,6 +35,7 @@
except ImportError:
pass

import re

def classFactory():
return PostGisDBPlugin
@@ -273,7 +274,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 27f1d9f

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