Skip to content
Permalink
Browse files

Fix occasional NaN when automatically calculating heatmap radius

  • Loading branch information
nyalldawson committed Apr 18, 2013
1 parent 404d89f commit 3acfdc3ad34bc8de9501ba069af2988eb9086b9d
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/plugins/heatmap/heatmapgui.cpp
@@ -219,9 +219,7 @@ double HeatmapGui::estimateRadius()

// Find max dimension of layer bounding box
QgsRectangle mExtent = inputLayer->extent();
double extentWidth = abs( mExtent.xMinimum() - mExtent.xMaximum() );
double extentHeight = abs( mExtent.yMinimum() - mExtent.yMaximum() );
double maxExtent = max( extentWidth, extentHeight );
double maxExtent = max( mExtent.width(), mExtent.height() );

// Return max dimension divided by 30. This is fairly arbitrary
// but approximately corresponds to the default value chosen by ArcMap

0 comments on commit 3acfdc3

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