Navigation Menu

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
  • Loading branch information
radosuav authored and Sandro Santilli committed May 19, 2015
1 parent d8e1cf3 commit 27f1d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/db_plugins/postgis/plugin.py
Expand Up @@ -35,6 +35,7 @@
except ImportError:
pass

import re

def classFactory():
return PostGisDBPlugin
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 27f1d9f

Please sign in to comment.