wxGUI: Add the ProjPicker page to the Location Wizard#1770
wxGUI: Add the ProjPicker page to the Location Wizard#1770HuidaeCho wants to merge 29 commits intoOSGeo:mainfrom
Conversation
|
Addresses #1253. |
|
Awesome, thank you! I have yet to actually test it but my initial thoughts are to split the code into gui and python library, so you would have also python/grass/projpicker/ where you would have the code unrelated to gui. If I understood the code correctly, this PR also includes a standalone version, in that case it should be named g.gui.projpicker to be consistent with other standalone gui parts. Also, we don't need the tk code here. |
Split in 37a1c6f.
That standalone version just happens to be part of
Removed in 37a1c6f. |
|
Very nice! Just wondering if users understand that they can identify suitable CRS from a map when they read |
Like this! Thanks for the suggestion. |
wenzeslaus
left a comment
There was a problem hiding this comment.
This is great. Thanks. Is this meant for 8.0 or 8.2?
It is a lot of code, so it would be good if it is in best condition possible. Did you try Pylint or similar tools to critique the code?
grass.projpicker subpackage is a good idea. The getosm piece also seems like library material. Basically anything which is not using wxPython is a good candidate. More reusable code in python/grass, great. Less code in GUI, even better.
I just left some mostly minor comments as I was trying to familiarize myself with the code, but the database is something I would like to know more about.
|
Seems to work well! When I first opened the wizard it took quite a bit of time, I assume because downloading OSM. Would it be possible to download only when you actually select this option? Or better, do it in separate thread. The help is little overwhelming with a lot of options. Perhaps we could have a toolbar above the map, similarly to r.li.setup wizard. In any case, I think drawing bbox should be default, not polygon. The search shouldn't be case sensitive. Overall I feel this should be eventually merged with the second option (Search by EPSG), because there is already an overlap in terms of the functionality and it would make sense from user point of view. That's for a different PR though. |
I think this is because of
I think we just need bbox, no point, no polygon at all. Or maybe keep bbox and point only?
Search is already case insensitive.
I agreed. |
…suming that none of projpicker modules will be imported from their installation directory
I guess. I was trying to look what is causing that but I got quickly confused from all the code. There is a lot of gui code, the help text is repeated there 3 times, is that all used at all? The file names could be more helpful (projpicker_gui/gui.py, gui_common.py, wxwidgets.py? ).
I agree simplicity may be best, bbox could be enough. I am still thinking about the toolbar like in r.li.setup wizard plus adding a tool to clear polygons: |
I think it is the grass/gui/wxpython/location_wizard/wizard.py Line 119 in 647a5e6 I'm not sure if that's a good idea or necessary to call
Only one copy of the help message is used. We only use the "map_left" layout and these files are still mostly straight copy-paste from the original project. Needs more work. I think I need to turn this PR to a draft to make that clear.
Agreed on bbox only. About the toolbar idea... I need an artist ;-). Right now
So.. icons, we would need
And remove the Help tab. |
|
TODO
|
Why do you think so? It should be. |
You're right! It was my code in |
I think any builtin errors are defined specifically for Python internally? For example, |
|
Current shortcuts No more polygons and points. |
|
@wenzeslaus, @petrasovaa - I have spoken with @HuidaeCho about plans to take over this PR. I am unable to commit directly to the PR at the moment (tried standard git workflow of adding his remote branch, making local branch and then committing to remote branch head), and wanted to inquire what the best approach to start working directly off the PR would be. |
|
@ocsmit I don't think there is a easy way of getting access to someones branch except 1) getting access to their repo and 2) when you are a maintainer of the project the PR was submitted to. Conclusion: To overtake the work on this, you need to get this branch locally, push it to your fork and open a new PR. I would say, no harm done here opening a new PR. There is plenty of comments here, but they seem to be mostly resolved (please check), so opening a new PR will clear the old stuff. Restating and updating the goals and methods in the PR description might be helpful too. |

This PR adds spatial querying of CRSs to the Location Wizard using the ProjPicker.