-
Notifications
You must be signed in to change notification settings - Fork 0
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
GeoJSON, allow uploading and convert JSON<->GeoJson and vice versa #5
Comments
The UI is ready for testing, tho the GeoJson->Json conversion still needs work - this is being worked on elsewhere: ttps://github.com/Open-Telecoms-Data/ofdskit/issues/1 |
I get a Server Error (500) when I submit the following files:
Regarding the UI, can we use a tabbed interface with a tab for each upload format and with collapsible boxes for each upload method (like in the OCDS Data Review Tool)? That way, it's easier for users to switch between the different formats and upload methods. I sketched an example of what I'm thinking: |
Thought: A tabbed interface doesn't leave any room to describe what JSON/ GeoJSON/ etc is, and it would be easy for the user to miss the tabs, jump straight to the forms then fill out the form for the wrong format. Having buttons on home page where you have to select the format first solves both those. But happy to do whatever, I'll try to talk to someone to pick a solution. |
Can you explain what you think needs to be described? We can add an introductory paragraph before the tabbed interface. |
Less technical people won't be clear on what the different formats mean. Things like "files ending .csv" may help. Especially as there will be a 4th tab - CSV's. (Difference between CSV's and spreadsheets that has to be dealt with somewhere - CSV's is many files and spreadsheets is only one) And many people don't read introductory paragraphs. |
If people have managed to generate an OFDS file in one of the supported publication formats, they should be able to select that publication format in an interface. Spreadsheets are not a supported publication format so we can omit those for now.
I don't know what this is based on. The paragraph can simply be:
|
Ah - it was only allowing files with ".json" endings which is what I was testing with. Files with ".geojson" endings now allowed, and fixed it so the user sees a proper error message to. |
I've done some testing with the
|
The priority outstanding action for this issue is:
|
This may have just been testing on an old branch (but I'm not sure how that happened). EDIT: this is now on live Look in https://github.com/Open-Telecoms-Data/lib-cove-ofds/tree/main/tests/fixtures/geojson_to_json - the "phases_1*" and the "organisations_1_*" files, are the "expected" files what you want to see? |
Ah, maybe that was it. However, testing on live, I noticed that
In In |
Spun 2 conversion issues to issues in libcoveofds, where they will need to be fixed. Is there are more on the UI to do here? |
Thanks! Just one issue to fix in the UI, which I only noticed today: we should allow users to upload either only or nodes file or only a spans file, currently the UI requires them to upload both. |
Now on live, to test |
This is working well. One optional thing we may want to consider: when we have a bunch of node info in |
By node info, do you mean features in which If it's the former, I don't think we want to support that as it doesn't conform to the GeoJSON publication format. However, we should probably implement a warning to the user. If it's the latter, then that sounds good to me. @odscjames have we implemented a warning if a user submits nodes and spans files with inconsistent nodes data? Side note: I'm wondering whether revisiting the design choice to have separate files for spans and nodes might reduce the complexity of the conversion tooling. |
The latter. @odscjames and I discussed and agreed to move this to a separate issue so we can prioritise accordingly. Closing this issue as completed. |
Logged in Open-Telecoms-Data/lib-cove-ofds#52
We should have a chat around this. Also noting Open-Telecoms-Data/lib-cove-ofds#21 - discussion of this and the other suggestions in this ticket between @lgs85 and me got into many topics in this area. |
Depends on Open-Telecoms-Data/lib-cove-ofds#25
The text was updated successfully, but these errors were encountered: