Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/transformations/simplify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ end
@test all(GI.coordinates(GO.simplify($linestring; tol = 100.0)) .== lg_vals)
end
end

@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?

@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

end
Loading