dekart-xyz / dekart

Create GPU-powered Kepler.gl maps from SQL queries and share them instantly and securely with live updates and multi-user editing.
https://dekart.xyz
MIT License
175 stars 27 forks source link

[Feature] Provide Support for Uploading Json files #191

Open truly-indian opened 1 week ago

truly-indian commented 1 week ago

Currently, there is no support for uploading json files. We should add one.

truly-indian commented 1 week ago

@Tsovak can you plz let me know why this support does not exist at dekart. Also, if you guys are okay I am ready to work on providing this feature.

delfrrr commented 1 week ago

Hey, @truly-indian, there one problem with JSON. Data for Kepler.gl must be in tabular format:

data.datasets.data Object *required The data object, in a tabular format with 2 properties

https://docs.kepler.gl/docs/api-reference/actions/actions#adddatatomap

I don't how to convert arbitrary user jsons into the tabular; these are the processors https://docs.kepler.gl/docs/api-reference/processors/processors

However Kepler itself supports export to JSON which then can be imported: https://docs.kepler.gl/docs/api-reference/processors/processors#processkeplergljson

If you create PR with support of this kind of JSON uploader, it would be much appreciated! I was planning to work on this myself in 4-5 weeks from now.

delfrrr commented 1 week ago

@truly-indian do you use Dekart self-hosted to SaaS?