Skip to content

Commit

Permalink
Fixed bug in GeopandasInterface.split
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 23, 2018
1 parent 8688838 commit 648d5be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoviews/data/geopandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def values(cls, dataset, dimension, expanded, flat):
def split(cls, dataset, start, end, datatype, **kwargs):
objs = []
xdim, ydim = dataset.kdims[:2]
if not len(dataset.data):
return []
row = dataset.data.iloc[0]
arr = geom_to_array(row['geometry'])
d = {(xdim.name, ydim.name): arr}
Expand Down

0 comments on commit 648d5be

Please sign in to comment.