Skip to content

ERROR: MethodError: no method matching iterate(::LineString{2, Float64}) #255

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

Open
chris-revell opened this issue Apr 3, 2025 · 0 comments

Comments

@chris-revell
Copy link

chris-revell commented Apr 3, 2025

The following is a minimal version of some code I wrote using v0.4

using GeometryBasics
points = Point{2,Float64}.([rand(2) for i=1:10])
linestring = LineString(points)
intersectingLine = Line(Point{2,Float64}(0,0),Point{2,Float64}(1,1))
intersections = [intersects(line, intersectingLine) for line in linestring]

Unfortunately if I now update GeometryBasics to v0.5.7 I get the following error for the same code:
ERROR: MethodError: no method matching iterate(::LineString{2, Float64})

Is there an alternative method to achieve a similar effect in the updated version?

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

No branches or pull requests

1 participant