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 use a minimum QuadrantSegs value #918

Closed
wants to merge 4 commits into from

Conversation

@pramsey pramsey requested a review from strk May 26, 2023 23:27
pramsey added 2 commits May 26, 2023 16:37
…anks to the min quadsegs, and one was a shorter line, but still seemed reasonable, in capi::GEOSOffsetCurve::5
Copy link
Member

@strk strk left a comment

Choose a reason for hiding this comment

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

Beside nitpicking, is always good to port. Maybe add the port info in the source files though, so we know where we left ? See BufferBuilder.cpp for an example (includes the commit hash of the last port)

@@ -104,7 +104,7 @@ void object::test<3>()
{
checkOffset(
"LINESTRING(0 0, 10 0, 10 10)",
"LINESTRING (12 10, 12 0, 10 -2, 0 -2)",
"LINESTRING (0 -2, 10 -2, 10.390180644 -1.9615705608, 10.7653668647 -1.847759065, 11.111140466 -1.6629392246, 11.4142135624 -1.4142135624, 11.6629392246 -1.111140466, 11.847759065 -0.7653668647, 11.9615705608 -0.390180644, 12 0, 12 10)",
-2, 1, GEOSBUF_JOIN_ROUND, 2,
0.000001
Copy link
Member

Choose a reason for hiding this comment

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

Note that the last argument is a tolerance, so there's no need for more than 6 decimal digits with the current tolerance.

@pramsey pramsey closed this Jun 7, 2023
@pramsey pramsey deleted the main-minquadsegments branch June 27, 2023 21:27
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.

2 participants