mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix drag & drop for PG rasters in DB Manager
This commit is contained in:
parent
d8e1cf30af
commit
27f1d9fb3e
@ -35,6 +35,7 @@ try:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import re
|
||||
|
||||
def classFactory():
|
||||
return PostGisDBPlugin
|
||||
@ -273,7 +274,7 @@ class PGRasterTable(PGTable, RasterTable):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user