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 (#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)
- Loading branch information
1 parent
db8fa4f
commit 47fba10
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+8.05 KB
(180%)
...p_renderer/expected_staged_render_raster/expected_staged_render_raster_mask.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.