# %%
import geopandas as gpd
import geoviews as gv
gv.extension("bokeh")
import cartopy.crs as ccrs
# %%
gdf = gpd.read_file("some_channels.geojson")
# %%
gv.Path(gdf).opts(width=400, height=500)
I am gettin this error.
geoviews\data\geopandas.py:517, in GeoPandasInterface.split(cls, dataset, start, end, datatype, **kwargs)
514 gt = geom_type or get_geom_type(geom)
516 arr = geom_to_array(geom)
--> 517 d = {xdim.name: arr[:, 0], ydim.name: arr[:, 1]}
518 d.update({vd.name: row[vd.name] for vd in dataset.vdims})
519 ds.data = [d]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
I have tried various things but there doesn’t seem to be an easy way to display the geoviews path elements