Skip to content
Permalink
Browse files

[analysis] fix derivative filter z factor handling

  • Loading branch information
nirvn committed Aug 25, 2017
1 parent 233f25a commit 05071434e3ae4592f4c03bd340c12b0889fa259b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/raster/qgsderivativefilter.cpp
@@ -87,7 +87,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 )
@@ -154,7 +154,7 @@ float QgsDerivativeFilter::calcFirstDerY( float *x11, float *x21, float *x31, fl
return mOutputNodataValue;
}

return sum / ( weight * mCellSizeY * mZFactor );
return sum / ( weight * mCellSizeY ) * mZFactor;
}


0 comments on commit 0507143

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