Skip to content

Commit

Permalink
v.transects: fix parsing vector ASCII file for features with multiple…
Browse files Browse the repository at this point in the history
… categories (#1042)
  • Loading branch information
petrasovaa authored Mar 14, 2024
1 parent f618b3c commit 0cc1c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vector/v.transects/v.transects.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def loadVector(vector):
while l < len(vectorAscii):
line = vectorAscii[l].split()
if line[0] in ["L", "B", "A"]:
skip = len(line) - 2
skip = int(line[2])
vertices = int(line[1])
l += 1
v.append([])
Expand All @@ -132,7 +132,7 @@ def loadVector(vector):
l += 1
l += skip
elif line[0] in ["P", "C", "F", "K"]:
skip = len(line) - 2
skip = int(line[2])
vertices = int(line[1])
l += 1
for i in range(vertices):
Expand Down

0 comments on commit 0cc1c17

Please sign in to comment.