47 , mRasterName( rasterName )
70 QMap<QString, QgsRasterMatrix*>::iterator it = rasterData.find(
mRasterName );
71 if ( it == rasterData.end() )
76 int nEntries = ( *it )->nColumns() * ( *it )->nRows();
77 float* data =
new float[nEntries];
78 memcpy( data, ( *it )->data(), nEntries *
sizeof( float ) );
79 result.
setData(( *it )->nColumns(), ( *it )->nRows(), data, ( *it )->nodataValue() );
98 leftMatrix.
add( rightMatrix );
107 leftMatrix.
divide( rightMatrix );
110 leftMatrix.
power( rightMatrix );
113 leftMatrix.
equal( rightMatrix );
162 int newNColumns = leftMatrix.
nColumns();
163 int newNRows = leftMatrix.
nRows();
169 float* data =
new float[1];
171 result.
setData( 1, 1, data, -FLT_MAX );
179 extern QgsRasterCalcNode* localParseRasterCalcString(
const QString & str, QString & parserErrorMsg );
180 return localParseRasterCalcString( str, parserErrorMsg );