Skip to content

Conversation

@rafaqz
Copy link
Member

@rafaqz rafaqz commented Oct 20, 2025

accidentally pushed the actual code, but here are the tests at least...


@testset "Simplify small LinearRing" begin
lr = GI.LinearRing([(1, 1), (2, 2), (3, 3), (4, 4), (1, 1)])
@test GI.npoint(GO.simplify(lr, tol=10)) == 3
Copy link
Member

Choose a reason for hiding this comment

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

This seems to give 5 points...maybe you want radial instead?

@testset "Simplify small LinearRing" begin
lr = GI.LinearRing([(1, 1), (2, 2), (3, 3), (4, 4), (1, 1)])
@test GI.npoint(GO.simplify(lr, tol=10)) == 3
@test GI.npoint(GO.simplify(lr, number=3)) == 3
Copy link
Member

Choose a reason for hiding this comment

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

Simplify is failing here

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