Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve method for calculation of rectangle centers
More numerically stable in the case of massive rectangles. This is the ultimate cause behind qgis#36898 -- during rendering of the worldwide layer in Winkel Tripel the inverse transform fails, so the renderer sets a "maximal" filter extent for the layer (+/- double max). The previous method for calculating the rectangles center would fail, because it would overflow. The new method handles this case and correctly returns 0,0. Fixes bounding boxes show incorrectly when simplication is enabled for a layer in certain projections. Fixes qgis#36898 Refs qgis#30686 (partial fix -- this report includes two different bugs)
- Loading branch information