Skip to content

Commit

Permalink
Minor fix to path geom conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 25, 2018
1 parent ffe50b7 commit 0f87755
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geoviews/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,11 @@ def path_to_geom_dicts(path, skip_invalid=True):
if len(arr) == 1:
if skip_invalid:
continue
poly = Point(arr[0])
g = Point(arr[0])
invalid = True
else:
subpaths.append(LineString(arr))
g = LineString(arr)
subpaths.append(g)

if invalid:
geoms += [dict(path, geometry=sp) for sp in subpaths]
Expand Down

0 comments on commit 0f87755

Please sign in to comment.