Nyall Dawson 47fba106dd
Improve method for calculation of rectangle centers (#37092)
More numerically stable in the case of massive rectangles.

This is the ultimate cause behind #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 #36898
Refs #30686 (partial fix -- this report includes two different bugs)
2020-06-11 13:53:20 +10:00
..
2018-07-26 08:34:38 +02:00
2019-06-06 17:41:40 +02:00
2020-02-14 17:18:36 +01:00
2019-07-15 12:52:20 +10:00
2018-08-08 09:18:32 +02:00
2020-03-30 08:26:16 +02:00
2020-05-05 22:55:44 +02:00
2020-03-30 08:26:16 +02:00
2018-10-24 00:21:53 +02:00
2018-10-24 00:21:53 +02:00
2018-10-24 00:21:53 +02:00
2018-10-24 00:21:53 +02:00
2018-10-24 00:21:53 +02:00
2020-01-10 13:32:42 +13:00
2018-09-16 14:18:39 +02:00
2018-09-16 14:18:39 +02:00
2018-09-16 14:18:39 +02:00
2018-09-16 14:18:39 +02:00
2020-04-25 11:29:56 +02:00
2020-04-15 18:20:27 +10:00
2019-04-25 22:14:08 +02:00