JuliaGeometry / JuliaGeometry/GeometryBasics.jl

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

Open
#255 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
215
Forks
64
Avg merge
3d 18h
Merged PRs (30d)
2

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal Julia reproduction in the issue and inspect the GeometryBasics LineString and intersects APIs between v0.4 and v0.5.7. Determine how the updated LineString is intended to expose its constituent lines, then verify that an equivalent intersection query works without the iterate error.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.