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 OffsetCurve to ensure end segments are included #1029

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Jan 11, 2024

This fixes the OffsetCurve algorithm to handle rare cases where an end segment is dropped because of heuristics used to reduce the number of short segments in generated buffer curves.

Example

LINESTRING (4.821 0.72, 7.767 1.801, 4.94 9.552, 0 7.79, 2.858 0, 4.821 0.72)

Offset curve Distance - -0.045; Mitre Join

Before:

image

Fixed code:
image

@dr-jts dr-jts merged commit 872bc44 into locationtech:master Jan 11, 2024
2 checks passed
@dr-jts dr-jts deleted the fix-offset-curve branch January 11, 2024 21:08
@jodygarnett jodygarnett added this to the 1.20.0 milestone Aug 22, 2024
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.

2 participants