Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Mar 10, 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.

@iverase iverase added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.0.0 v7.13.0 labels Mar 10, 2021
@iverase iverase requested a review from talevy March 10, 2021 11:47
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Mar 10, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@iverase iverase merged commit 7763470 into elastic:master Mar 11, 2021
iverase added a commit to iverase/elasticsearch that referenced this pull request Mar 11, 2021
This PR uses longs to compute the number of tiles touching a bounding box
iverase added a commit that referenced this pull request Mar 11, 2021
This PR uses longs to compute the number of tiles touching a bounding box
@iverase iverase deleted the boundedTileGrid branch March 11, 2021 06:44
iverase added a commit that referenced this pull request Mar 11, 2021
This PR uses longs to compute the number of tiles touching a bounding box
probakowski pushed a commit to probakowski/elasticsearch that referenced this pull request Mar 15, 2021
This PR uses longs to compute the number of tiles touching a bounding box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants