Skip to content

Fix vectorizer bug - #2839

Merged
pomadchin merged 2 commits into
locationtech:masterfrom
jpolchlo:fix/polygonizer
Dec 6, 2018
Merged

pomadchin merged 2 commits into
locationtech:masterfrom
jpolchlo:fix/polygonizer

Conversation

@jpolchlo

@jpolchlo jpolchlo commented Dec 5, 2018

Copy link
Copy Markdown
Contributor

Overview

A user reported a condition when the rasterizer fails. This corresponds to the case when a new cluster begins at the lower right pixel. A bounds check wasn't quite right. This contribution fixes that issue and includes a new test to guard against it.

Signed-off-by: jpolchlo [email protected]

Checklist

  • Unit tests added for bug-fix or new feature

Closes #2833

Signed-off-by: jpolchlo <[email protected]>
@pomadchin

Copy link
Copy Markdown
Member

Btw, here is a test file attached: #2833 would not it be too hard / expensive to create a unit test for this file?

@echeipesh echeipesh modified the milestones: 2.2, 3.0 Dec 5, 2018
@echeipesh

Copy link
Copy Markdown
Contributor

Will need backported to 2.2 and 2.0

@pomadchin
pomadchin merged commit 56cc67a into locationtech:master Dec 6, 2018
echeipesh pushed a commit that referenced this pull request Dec 28, 2018
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.

java.lang.ArrayIndexOutOfBoundsException: 1936 when using toVector() to vectorize a tile

3 participants