Skip to content

Fix map{X|Y}ToGrid function behavior that could give a bit incorrect results - #2953

Merged
pomadchin merged 4 commits into
locationtech:masterfrom
pomadchin:fix/extent-for-bounds
May 30, 2019
Merged

pomadchin merged 4 commits into
locationtech:masterfrom
pomadchin:fix/extent-for-bounds

Conversation

@pomadchin

@pomadchin pomadchin commented May 30, 2019 •

Copy link
Copy Markdown
Member

Overview

In case of negative Extent coordinates and because of a floating point errors, in case where the north and west site of the block is very close to the Int we could approximate number of cols / rows incorrectly.

Checklist

  • docs/CHANGELOG.rst updated, if necessary
  • Unit tests added for bug-fix or new feature

Closes #2918

@pomadchin pomadchin changed the title map{X|Y}ToGrid can give incorrect results Fix map{X|Y}ToGrid function behavior that could give a bit incorrect results May 30, 2019
@pomadchin pomadchin added this to the 3.0 milestone May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RasterExtent.gridBoundsFor(subExtent, clamp) produces incorrect extent

2 participants