New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tabular data view added, see https://github.com/tyrasd/overpass-ide/issues/8 #18
Conversation
Not very nice yet and with lot's of options to expand, but possible. As a side node I changed the view buttons (Map, Data) functionality to easily support more than two buttons (I added a third one for the table)
Thanks for the work! But I see two major drawbacks:
So, maybe it would be better to do the data-to-table conversion based on the already produced GeoJSON (see Also, for better usability I think it would be better to use some third-party "sortable js table". Maybe jQuery(UI) has something to offer. |
Tabular data would be a nice addition! (as a note, I searched to answer a person who asked for this kind of feature :-) ). For the third party plugin, I'd suggest http://datatables.net/ which loads either from html or from json. |
Unfortunately datatables as well as all other jquery table plugins that read json/javascript objects require these Objects to be array as a direct mapping.
Generating this requires assembling another javascript object. What the overpass-ide currently maintains as far as I saw is a more sparse json-object, like (to stay at the example above):
I did not yet find a jquery plugin that would be able to define the table by attributes of such objects or that could read this object. |
Here's a dump for a simple point
A way returns an array of node ids inside the object, and for each node an object like this one provided.. What about https://github.com/mapbox/geojson.io ? |
worked on my patch today, but it's not finished yet.
Todo before I want to offer the patch again:
additional ideas IMHO to be in some later patch/extension:
|
Hey guys! This is awesome.
|
- showing all attributes, ordered by number of objects carrying the tag - avoid conflict between id and the tag id as well as between type and the tag type and geometry and the tag geometry - show tooltips on the cells. TODO: only show them were content is hidden due to the overflow property
worked on the first todo, but not finished yet, so please ignore the lots of debug stuff in the console (which is a lot, I know) |
…lake Nasser funktioniert, dauert aber ewig)
…n content is not displayed completely
…ional parameters in the constructor enable specifying visibility of these columns now
Hi, what's the current state of this idea? |
Hi saerdner, The current state is that there is a data table showing all entries of the last download. I think filtering in tables does not yet work, sorting is slightly too simple (not good at dealing with empty values, not dealing well with numeric values like housenumbers). I think it's in a state where it might be included in the application as an experimental feature, but it's not finished and could be improved further before. |
Ah, I totally missed the "demo" at https://jongleur1983.github.io/overpass-ide/ I had to use Firefox, as Chrome didn't allow me to ignore all the "unsave" scripts referenced via http instead of https. But https://tyrasd.github.io/overpass-ide/ has the same problems. Regarding joining the work: I have the same "problem": My master thesis waits to be done. But maybe it might be nice relief... ;-) |
Demo only works with http at this time: http://jongleur1983.github.io/overpass-ide/ |
This is great - thanks. It would be amazing is if there were links added, e.g. as three small icons at the start of each row, to: This would allow editing the data as needed. Similar to the normal map output that has link to osm, and also similar to what osmose does. |
It seems the 'table' view does not show relations - would be great if it did! |
Some more thoughts: I'd say it was important to:
Nice to have:
Overall, this looks really great though! Thanks for working on this! |
@bjohas : before getting too excited over the demo, please keep in mind that this pull request is almost 3 years old. I guess those involved might have other priorities right now (maybe I'm wrong here). There's some great opportunity to get this prototype ready for inclusion. If you're interested, you should probably sync up with @tyrasd. |
Hi. So if anybody else want's to help, feel free to start. |
Thanks for the feedback! Do you think it may be worth sending a message to the dev list, seeing whether anybody else is interested? |
no idea, not sure. I didn't even know there's a dev list for overpass turbo, I prefer following github issues directly usually, but why not? |
I've forked @jongleur1983 's version, and merged it with upstream, see https://github.com/bjohas/overpass-ide/commits/gh-pages. I need to do a fair bit more testing, but it seems to work so far. |
cool, thanks. |
Based on what I seen in
|
The data tab might also show OSM JSON, depending on the query. |
Hmm... what happened to this one? Stale, obsolete? |
I'm still very interested in this. Happy to help out in some way. |
I think that the best read-only option is to export to csv Then we would have many solutions e.g.: http://nicolas.kruchten.com/pivottable/examples/index.html |
A webservice would still be good, to allow linking directly from overpass-turbo. It could be built outside of overpass-turbo, as an independent service (though it would require a separate API query). However, for fast inspection, something sits within overpass-turbo (and allows queries to made, adjusted etc) could be helpful. |
Yeah. Since we already have a dedicated feature-request ticket for this, I think it makes sense continue discussions there: #8 |
Not beautiful yet - detailed css is missing, and with lot's of ideas to extend further, but working, and basically solving the issue #8.
As a side node I changed the view buttons (Map, Data) functionality to easily support more than two tabs
(I added a third one for the table), and slightly generalized the css code.