Skip to content
Permalink
Browse files

GRASS raster: remove superfluous QProcess instances

  • Loading branch information
wonder-sk committed Jan 9, 2014
1 parent 1b7c794 commit a07ddd6c22ef50640c093ed3f8fc5ecd14eef07d
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/providers/grass/qgsgrassrasterprovider.cpp
@@ -32,7 +32,6 @@
#include <QImage>
#include <QSettings>
#include <QColor>
#include <QProcess>
#include <QMessageBox>
#include <QDir>
#include <QFileInfo>
@@ -176,7 +175,6 @@ QImage* QgsGrassRasterProvider::draw( QgsRectangle const & viewExtent, int pixe
.arg( QgsRasterBlock::printValue( viewExtent.xMaximum() ) )
.arg( QgsRasterBlock::printValue( viewExtent.yMaximum() ) )
.arg( pixelWidth ).arg( pixelHeight ) ) );
QProcess process( this );
QString cmd = QgsApplication::libexecPath() + "grass/modules/qgis.d.rast";
QByteArray data;
try
@@ -230,7 +228,6 @@ void QgsGrassRasterProvider::readBlock( int bandNo, int xBlock, int yBlock, void
.arg( mCols ).arg( mYBlockSize ) ) );

arguments.append( "format=value" );
QProcess process( this );
QString cmd = QgsApplication::libexecPath() + "grass/modules/qgis.d.rast";
QByteArray data;
try
@@ -278,7 +275,6 @@ void QgsGrassRasterProvider::readBlock( int bandNo, QgsRectangle const & viewEx
.arg( QgsRasterBlock::printValue( viewExtent.yMaximum() ) )
.arg( pixelWidth ).arg( pixelHeight ) ) );
arguments.append( "format=value" );
QProcess process( this );
QString cmd = QgsApplication::libexecPath() + "grass/modules/qgis.d.rast";
QByteArray data;
try

0 comments on commit a07ddd6

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