Given a Pandas DataFrame with millions of location records (lat and lon column) for multiple moving objects, is there an elegant way to plot only segments (connecting consecutive location records of the same moving object) that exceed a certain minimum length?
I don’t know of any solution in HoloViz tools for filtering by segment length, so I’d use GeoPandas. If that’s too slow, an optimized routine could be added to SpatialPandas, which shouldn’t be too hard. In any case, yes, styling will be lost when you datashade or rasterize, because datashade transforms the HoloViews Element it is given (e.g. hv.Paths) into hv.RGB, and rasterize transforms it into hv.Image. So you’ll need to supply options suitable for hv.Image, not hv.Paths. We’re hoping that we’ll eventually figure out ways to map such options automatically, but don’t have such a solution yet.