Skip to content

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

@chris-revell

Description

@chris-revell

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions