You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of expected behavior and the observed behavior
Zoom breaks visualization when vector data (geometries) have been rasterized. This shows up while using the holoviews.operations.datashade.datashader as well as when using the hvplot extension with rasterize=True. The plot is made and rendered in a panel, but then when you zoom in a map you get this error.
Complete, minimal, self-contained example code that reproduces the issue
linestrings= [
"LINESTRING (-121.97625624848078 36.96474939629007, -121.96688469179223 36.948366095134865)",
"LINESTRING (-121.97664230038448 36.96460468814935, -121.96855460367323 36.94778657367965)",
"LINESTRING (-121.97645658443105 36.9646156205337, -121.97084873679243 36.94715929907674)",
"LINESTRING (-122.03956614150331 36.96045115224142, -122.036952745531 36.94254620927747)",
]
gdf=gpd.GeoSeries.from_wkt(linestrings, crs=4326).to_frame("geometry")
# works as expectedpn.Column(gdf.hvplot(geo=True)).show()
# doesn't work. It renders, but then when you zoom things are broken.pn.Column(gdf.hvplot(geo=True, rasterize=True)).show()
Although I'm not sure if its related, on a bigger plot example (not super big, like 20k building footprints that usually works fine) I got this traceback. I checked the geometries and they are all valid without any nulls etc.
ALL software version info
holoviews : 1.20.0
bokeh : 3.5.2
colorcet : 3.1.0
cudf : -
cupy : -
dask : 2024.11.2
dask-expr : 1.1.19
datashader : 0.16.3
geoviews : 1.13.0
hvplot : 0.11.1
ibis-framework : -
IPython : 8.17.2
ipywidgets-bokeh : -
jupyter-bokeh : 4.0.5
jupyterlab : 4.3.0
matplotlib : 3.9.2
networkx : 3.4.2
notebook : 6.5.4
numba : 0.60.0
numpy : 2.0.2
pandas : 2.2.3
panel : 1.5.4
param : 2.1.1
pillow : 11.0.0
plotly : -
pyarrow : 17.0.0
pyviz-comms : 3.0.3
scikit-image : 0.24.0
scipy : 1.14.1
spatialpandas : 0.4.10
streamz : -
tsdownsample : -
xarray : 2024.10.0
Description of expected behavior and the observed behavior
Zoom breaks visualization when vector data (geometries) have been rasterized. This shows up while using the holoviews.operations.datashade.datashader as well as when using the hvplot extension with rasterize=True. The plot is made and rendered in a panel, but then when you zoom in a map you get this error.
Complete, minimal, self-contained example code that reproduces the issue
Working version
With this version it is working as expected:
Stack traceback and/or browser JavaScript console output
Although I'm not sure if its related, on a bigger plot example (not super big, like 20k building footprints that usually works fine) I got this traceback. I checked the geometries and they are all valid without any nulls etc.
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: