|
25 | 25 | #define TO8(x) (x).toLocal8Bit().constData() |
26 | 26 | #endif |
27 | 27 |
|
28 | | -QgsNineCellFilter::QgsNineCellFilter( const QString& inputFile, const QString& outputFile, const QString& outputFormat ): \ |
29 | | - mInputFile( inputFile ), mOutputFile( outputFile ), mOutputFormat( outputFormat ), mCellSizeX( -1 ), mCellSizeY( -1 ), mInputNodataValue( -1 ), mOutputNodataValue( -1 ) |
| 28 | +QgsNineCellFilter::QgsNineCellFilter( const QString& inputFile, const QString& outputFile, const QString& outputFormat ) |
| 29 | + : mInputFile( inputFile ), mOutputFile( outputFile ), mOutputFormat( outputFormat ), mCellSizeX( -1 ), mCellSizeY( -1 ), mInputNodataValue( -1 ), mOutputNodataValue( -1 ) |
30 | 30 | { |
31 | 31 |
|
32 | 32 | } |
@@ -153,17 +153,17 @@ int QgsNineCellFilter::processRaster( QProgressDialog* p ) |
153 | 153 | { |
154 | 154 | if ( j == 0 ) |
155 | 155 | { |
156 | | - resultLine[j] = processNineCellWindow( &mInputNodataValue, &scanLine1[j], &scanLine1[j+1], &mInputNodataValue, &scanLine2[j], \ |
| 156 | + resultLine[j] = processNineCellWindow( &mInputNodataValue, &scanLine1[j], &scanLine1[j+1], &mInputNodataValue, &scanLine2[j], |
157 | 157 | &scanLine2[j+1], &mInputNodataValue, &scanLine3[j], &scanLine3[j+1] ); |
158 | 158 | } |
159 | 159 | else if ( j == xSize - 1 ) |
160 | 160 | { |
161 | | - resultLine[j] = processNineCellWindow( &scanLine1[j-1], &scanLine1[j], &mInputNodataValue, &scanLine2[j-1], &scanLine2[j], \ |
| 161 | + resultLine[j] = processNineCellWindow( &scanLine1[j-1], &scanLine1[j], &mInputNodataValue, &scanLine2[j-1], &scanLine2[j], |
162 | 162 | &mInputNodataValue, &scanLine3[j-1], &scanLine3[j], &mInputNodataValue ); |
163 | 163 | } |
164 | 164 | else |
165 | 165 | { |
166 | | - resultLine[j] = processNineCellWindow( &scanLine1[j-1], &scanLine1[j], &scanLine1[j+1], &scanLine2[j-1], &scanLine2[j], \ |
| 166 | + resultLine[j] = processNineCellWindow( &scanLine1[j-1], &scanLine1[j], &scanLine1[j+1], &scanLine2[j-1], &scanLine2[j], |
167 | 167 | &scanLine2[j+1], &scanLine3[j-1], &scanLine3[j], &scanLine3[j+1] ); |
168 | 168 | } |
169 | 169 | } |
|
0 commit comments