Add support for crs on holoviews datashader operations
See original GitHub issueDatashader is very useful when working with geospatial data and holoviews now offers datashader operations. One major issue is that these operations do not currently handle a crs
, which makes it difficult to work with them. The main obstacle here is that a) there is no geoviews RGB
type, which could be used to hold the output of datashade
and b) that projecting on every datashader plot update is very inefficient. I’d therefore suggest a temporary approach to make this work is to offer an operation that projects any Element type to a new crs
and secondly to add a crs-aware RGB type to geoviews.
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (14 by maintainers)
Top Results From Across the Web
Add support for crs on holoviews datashader operations #45
One major issue is that these operations do not currently handle a crs , which makes it difficult to work with them. The...
Read more >How to set crs of datashader image - HoloViz Discourse
When I use holoviews.streams.Buffer and hv.DynamicMap(gv.Points, streams=[dfstream]) to stream point geometries onto a geoviews.tile_source ...
Read more >Working with large data using datashader — HoloViews v1.15.3
If you have Datashader installed, you can instead use Datashader operations like rasterize() to create a dynamic Datashader-based Bokeh plot.
Read more >pyviz/pyviz - Gitter
This chat is for informal discussions and debugging sessions with developers of the HoloViz.org tools (HoloViews, Datashader, Panel, hvPlot, GeoViews, Param, ...
Read more >Polygons — Datashader v0.14.3
Spatialpandas provides two Pandas ExtensionArrays that support polygons: ... import holoviews as hv from holoviews.operation.datashader import rasterize ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot for the above information, it’s really helpful.
When I use
regrid
with the matplotlib backend the above code works as I’d expect. But with the bokeh backend I getDataError: None of the available storage backends were able to support the supplied data format.
i.e. given the setup:
These will plot:
But this throws the exception:
My understanding is that I can only add
gf.coastline
when usinggv.Image
, so this means that when using datashader I need to choose between an interactive bokeh plot and one with coastlines.Does this seem correct? If there’s anything I can do to help that’d be great, I’d love to have interactive + geospatially aware datashader plots.
This has now been implemented, datashader operations will now respect the coordinate reference system of the inputs. Should make things a lot more intuitive, we should however add a guide on working with Datashader and GeoViews.