-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add Polygon simplify #138
Add Polygon simplify #138
Conversation
8bd2e1e
to
93939d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments:
} | ||
|
||
/** | ||
* Returns true if ring has at least 3 coordinates and its first coordinate is the same as its last |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description does not match the logic of the function: if a ring has 3 coordinates, and it's first and last coordinates are equal - it will return false
. Thus, the function checks first and last coordinates only for 3-points rings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes the original comment set me up for failure. Just pushed an update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for contributing!
2247bdc
to
a345fb1
Compare
Added Polygon simplify.
The expected output numbers had to be altered with more precision from what you see here
I noticed this was done with the
LineString
tests as well.