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

Fix a line clipping edge case #92

Merged
merged 1 commit into from
May 12, 2021
Merged

Conversation

pozdnyakov
Copy link
Contributor

Fix the edge case when a line string enters the clip region from outside and has a node exactly on the clip region border.
Before, the node on the border was skipped, which caused wrong line metrics estimation.

@pozdnyakov pozdnyakov requested review from mourner and alexshalamov May 5, 2021 11:12
Copy link
Contributor

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

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

lgtm

include/mapbox/geojsonvt/clip.hpp Outdated Show resolved Hide resolved
include/mapbox/geojsonvt/clip.hpp Show resolved Hide resolved
@pozdnyakov pozdnyakov force-pushed the mikhail_fix_line_string_clip branch from 59db77c to 937a23c Compare May 11, 2021 15:26
include/mapbox/geojsonvt/clip.hpp Outdated Show resolved Hide resolved
include/mapbox/geojsonvt/clip.hpp Outdated Show resolved Hide resolved
@pozdnyakov pozdnyakov force-pushed the mikhail_fix_line_string_clip branch from 937a23c to 18c8cb9 Compare May 12, 2021 07:21
Fix the edge case when a line string enters the clip region from outside and has a node exactly on the clip region border.
Before, the node on the border was skipped, which caused wrong line metrics estimation.
@pozdnyakov pozdnyakov merged commit b0f25fe into master May 12, 2021
@pozdnyakov pozdnyakov deleted the mikhail_fix_line_string_clip branch May 12, 2021 07:25
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.

3 participants