Live data from Hacker News

Introducing Kepler.gl, an Open-Source Geospatial Toolbox

ubere.ng

21–24 of 24 posts

Re: Introducing Kepler.gl, an Open-Source Geospatial Toolbox

#21

Earlier quoted context omitted.

That would make it me, I’m surprised people already start noticing the reducer logic in there. Better get the docs out soon :)

Reducers are almost always the first thing I dig into whenever I open up a Redux project. Tells you what the state structure is, how it's being updated, what sorts of actions are being used, etc. Only looked through the code for a few minutes, but a couple things I noticed: - You've got an interesting wrapper around `connect()`, which includes something called `withLocalSelector()`. Can you clarify what that does, an…

- withLocalSelector() allows us to mount multiple kepler.gl component instance in the reducer and select which one to dispatch and read from. We wrap around connect(), so the user doesn't have to worry about it. They can mount as many kepler.gl instances as they want and it should just work.

- I know nested state has performance drawbacks, that's why we try to flatten certain properties with large arrays, such as datasets, layers, and layer data. But for other properties that are simple strings, floats or boolean, I think it's fine to have them nested. Because we have this reducer plugin feature, where developers can add custom reducer handlers, I try to keep the number of reducer small, so it's easier to explain what they each do. Besides that, I came across couple of cases where 1 action updates multiple reducers sequentially, I don't want to add thunk, so we then had to add this composer function which is kinda complex.

There are lots of questions, don't have time to answer them all, but I would love to keep this conversation going. :)

Re: Introducing Kepler.gl, an Open-Source Geospatial Toolbox

#22

Earlier quoted context omitted.

That would make it me, I’m surprised people already start noticing the reducer logic in there. Better get the docs out soon :)

Don't know if anyone else has tried this, but I can't seem to get it to load a file. It spins even on the smallest csv I can try, but in the background I can see that it has the file name on the GUI. something I'm doing wrong?

Possibility because your csv format is different. Does it have a header? etc. If you file an issue on github and link to your dataset https://github.com/uber/kepler.gl/issues. I will take a look. Thanks for trying kepler.gl!

Re: Introducing Kepler.gl, an Open-Source Geospatial Toolbox

#23

Earlier quoted context omitted.

Don't know if anyone else has tried this, but I can't seem to get it to load a file. It spins even on the smallest csv I can try, but in the background I can see that it has the file name on the GUI. something I'm doing wrong?

Possibility because your csv format is different. Does it have a header? etc. If you file an issue on github and link to your dataset https://github.com/uber/kepler.gl/issues . I will take a look. Thanks for trying kepler.gl!

I think it had something to do with starting the server in an SSH session. I restarted it through an X session, and forwarded the port remotely and it seems to work. Thanks!

Re: Introducing Kepler.gl, an Open-Source Geospatial Toolbox

#24
post #16
post #5

This is pretty great. After banging my head over the weird state of python + GIS for the past month and a half, this feels very welcome. Also, is it down for anyone else? As soon as I tried uploading a file, it became unresponsive..

I do a lot of python + GIS, any particular problem you're having?

I'm not the original asker, but I've got a graph dataset generated/manipulated with python with about 1 million points and lines, and I just can't find a good interactive web visualization for it. D3, Leaflet, about 15 other things I looked at - the data set is just too big. Maybe kepler.gl works, but if you know off the top of you head a better way to viz this, please let me know!
Post reply on HN