lonboard icon indicating copy to clipboard operation
lonboard copied to clipboard

Feature request: linking to interactive WASM duckdb database to filter a lonboard view?

Open jaanli opened this issue 1 year ago • 4 comments

It would be amazing to unlock interactive filtering of lonboard maps based on visualizations such as histograms of certain columns in a geoparquet dataframe.

Would this be possible??

Might be able to help implement.

https://uwdata.github.io/mosaic/ uses WASM duckdb and could be interesting to try to link to a geoparquet file, to update the lonboard view upon a SQL query returning a new result after a user selecting something on a dashboard.

jaanli avatar Feb 09 '24 13:02 jaanli

The upcoming release has a DataFilterExtension, which performs filtering on the GPU. I briefly looked into mosaic but it seemed that the returned filters were only in SQL text, which would be awful to parse.

If you do some exploration feel free to come back and update with your results

kylebarron avatar Feb 09 '24 16:02 kylebarron

That sounds awesome - excited to try the filtering extension and will keep you posted as I try Mosaic + Protomaps for deploying exploratory data analyses done in lonboard 🙏

jaanli avatar Feb 09 '24 22:02 jaanli

@kylebarron the DataFilterExtension looks cool! Running into an issue though, will open up a separate issue.

But this is exactly the type of functionality I hope to support by linking lonboard to https://uwdata.github.io/mosaic/ (or Protomaps for hosting these dashboards on the web..).

jaanli avatar Feb 14 '24 00:02 jaanli

This is prototyped in https://github.com/developmentseed/lonboard/pull/610 though it doesn't work reliably yet

kylebarron avatar Sep 24 '24 19:09 kylebarron