Skip to content

Commit

Permalink
Bypassses jwass#40
Browse files Browse the repository at this point in the history
I don't know what the other letters are for. But it resolves the error.

Might want to add a test.
  • Loading branch information
disarticulate authored Mar 17, 2018
1 parent 6f09451 commit 33ba428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mplleaflet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def iter_rings(data, pathcodes):
if len(ring):
yield ring
ring = [point]
elif code == 'L':
elif code == 'L' or code == 'Z' or code == 'S':
ring.append(point)
else:
raise ValueError('Unrecognized code: {}'.format(code))
Expand Down

0 comments on commit 33ba428

Please sign in to comment.