Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Max Width Polygon Enclosure Bug #192

Merged
merged 2 commits into from
Aug 8, 2018
Merged

Conversation

jwpgage
Copy link
Contributor

@jwpgage jwpgage commented Aug 8, 2018

Description:

This PR fixes an issue where a max width polygon (from -180 to 180) would fail to trigger awtOverflows, which is a method that detects when a certain polygon is too large to be handled by awt Polygon.

Potential Impact:

This change will ensure that any Polygon with a width of 0 will use jts instead of awt to calculate fullyGeometricallyEncloses(Rectangle) or fullyGeometricallyEncloses(Location).

Unit Test Approach:

A unit test has been added that checks that a max width polygon can detect a fully enclosed rectangle.


In doubt: Contributing Guidelines

@jwpgage jwpgage added the Bug label Aug 8, 2018
Copy link
Contributor

@MikeGost MikeGost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find and test @jwpgage!

@matthieun matthieun merged commit 4bb7408 into osmlab:dev Aug 8, 2018
@jwpgage jwpgage deleted the fixata branch August 8, 2018 16:21
@matthieun matthieun added this to the 5.1.7 milestone Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants