Skip to content
Permalink
Browse files

[Fixes #8972] allows to drop PostGIS Raster layers into main app

  • Loading branch information
slarosa committed Nov 2, 2013
1 parent 5f916b4 commit a7a4452e79187cb80b2ca53f26bc40f7cb80231e
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/core/qgsmimedatautils.cpp
@@ -68,12 +68,20 @@ QgsMimeDataUtils::Uri::Uri( QString& encData )
parts << part;
}

if ( parts.size() == 4 )
if ( parts.size() <= 5 ) // PostGISTRaster layers yields five parts
{
layerType = parts[0];
providerKey = parts[1];
name = parts[2];
uri = parts[3];
// fetchs PostGISRaster layers
if ( parts[3] == "PG" )
{
uri = parts[3] + ":" + parts[4];
}
else
{
uri = parts[3];
}
QgsDebugMsg( "type: " + layerType + " key: " + providerKey + " name: " + name + " uri: " + uri );
}
}

0 comments on commit a7a4452

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