Skip to content

Commit

Permalink
test(gridintersect): clarify intersection of line with grid (#2216)
Browse files Browse the repository at this point in the history
This PR addresses the following issue: #2214
  • Loading branch information
martclanor authored Jun 8, 2024
1 parent 0d9947e commit 1b430bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autotest/test_gridintersect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,10 +1214,10 @@ def test_point_offset_rot_structured_grid():
@requires_pkg("shapely")
def test_linestring_offset_rot_structured_grid():
sgr = get_rect_grid(angrot=45.0, xyoffset=10.0)
ls = LineString([(5, 10.0 + np.sqrt(200.0)), (15, 10.0 + np.sqrt(200.0))])
ls = LineString([(5, 25), (15, 25)])
ix = GridIntersect(sgr, method="structured")
result = ix.intersect(ls)
assert len(result) == 2
assert len(result) == 3
# check empty result when using local model coords
ix = GridIntersect(sgr, method="structured", local=True)
result = ix.intersect(ls)
Expand Down

0 comments on commit 1b430bb

Please sign in to comment.