Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Mar 11, 2021

When computing the number of tiles a bounding box might touch, we perform the calculation in integers which can overflow. In addition when calculating such value during rasterisation, we do not have into account the bounds in the bounded case, therefore we might overestimate the number of cells we might be touching.

This PR uses longs to compute the number of tiles touching a bounding box and bounds the value in the bounded case.

backport #70222

This PR uses longs to compute the number of tiles touching a bounding box
@iverase iverase merged commit 8279572 into elastic:7.12 Mar 11, 2021
@iverase iverase deleted the backport70222-7.12 branch March 11, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant