Skip to content

Commit

Permalink
use GRASS raster provider everywhere
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12885 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 5, 2010
1 parent 36672e6 commit a132e79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/plugins/grass/qgsgrassbrowser.cpp
Expand Up @@ -149,7 +149,9 @@ void QgsGrassBrowser::addMap()
if ( type == QgsGrassModel::Raster )
{
QgsDebugMsg( QString( "add raster: %1" ).arg( uri ) );
mIface->addRasterLayer( uri, map );
//mIface->addRasterLayer( uri, map );
mIface->addRasterLayer( uri, map, "grassraster", QStringList(), QStringList(),
QString(), QString() );
mapSelected = true;
}
else if ( type == QgsGrassModel::Vector )
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -1548,7 +1548,9 @@ void QgsGrassModule::viewOutput()
+ QgsGrass::getDefaultMapset()
+ "/cellhd/" + map;

mIface->addRasterLayer( uri, map );
//mIface->addRasterLayer( uri, map );
mIface->addRasterLayer( uri, map, "grassraster", QStringList(), QStringList(),
QString(), QString() );
}
}

Expand Down

0 comments on commit a132e79

Please sign in to comment.