Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[analysis] fix derivative filter z factor handling (#5073)
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/analysis/raster/qgsderivativefilter.cpp
|
@@ -92,7 +92,7 @@ float QgsDerivativeFilter::calcFirstDerX( float* x11, float* x21, float* x31, fl |
|
|
return mOutputNodataValue; |
|
|
} |
|
|
|
|
|
return sum / ( weight * mCellSizeX * mZFactor ); |
|
|
return sum / ( weight * mCellSizeX ) * mZFactor; |
|
|
} |
|
|
|
|
|
float QgsDerivativeFilter::calcFirstDerY( float* x11, float* x21, float* x31, float* x12, float* x22, float* x32, float* x13, float* x23, float* x33 ) |
|
@@ -159,7 +159,7 @@ float QgsDerivativeFilter::calcFirstDerY( float* x11, float* x21, float* x31, fl |
|
|
return mOutputNodataValue; |
|
|
} |
|
|
|
|
|
return sum / ( weight * mCellSizeY * mZFactor ); |
|
|
return sum / ( weight * mCellSizeY ) * mZFactor; |
|
|
} |
|
|
|
|
|
|
|
|