-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
wxGUI location wizard: EPSG page #670
Conversation
|
I'm not sure to remove completely the capability to use local epsg file. There could be specific coordinate system in local epsg file that are not in epsg.io I suggest to change "Link to epsg.io:" in "Source:" with default value "epsg.io" with a button "Local epsg file" (or "Browse") to select the epsg file and change the source. What do you think? |
The idea here is not to remove the use of the local epsg file. It is still used. The idea is that in 95% of cases users do not have to change this and that in the 5% of cases where it has to be changed, users know what they are doing and can simply set the relevant environment variable. |
What do you mean by "responds to the selection of EPSG code" ? Is the idea that if the user wants to search for all projection systems relevant for Ghana that she has to go to epsg.io, search there and then copy over the epsg code ? I think we should avoid dependency on an internet connection, and so I would like to keep the possibility to search with keywords and not only epsg codes. I thought the idea was to just combine everything into one 'search' field where the user could enter either epsg codes or keywords ? |
|
I reviewed the page layout and suggest the following changes (diff against the last state): Mostly the problem is with the flags, some of the combinations are throwing errors with latest wxPython. My suggestion for future is to not use wx.ALIGN_... and add them only when you see the need, rather then to put them everywhere 'just in case'. Also typically we don't specify fixed sizes of widgets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small improvements to the layout:
@@ -1568,21 +1568,21 @@ class EPSGPage(TitledPage):
flag=wx.ALIGN_CENTER_VERTICAL |
wx.ALL, border=5)
searchBoxSizer.Add(self.searchb, proportion=1,
- flag=wx.ALL, border=5)
+ flag=wx.ALL | wx.EXPAND, border=5)
epsglistBoxSizer.Add(self.epsglist, proportion=1,
flag=wx.EXPAND |
wx.ALL, border=5)
informationBoxSizer.AddStretchSpacer(1)
informationBoxSizer.Add(self.llink, proportion=0,
flag=wx.ALIGN_CENTER_VERTICAL |
- wx.ALL, border=5)
- informationBoxSizer.Add(self.tlink, proportion=1,
- flag=wx.ALIGN_CENTER_VERTICAL |
- wx.ALL, border=5)
+ wx.RIGHT, border=5)
+ informationBoxSizer.Add(self.tlink, proportion=0,
+ flag=wx.ALIGN_CENTER_VERTICAL)
self.sizer.Add(searchBoxSizer, proportion=0, flag=wx.EXPAND)
self.sizer.Add(epsglistBoxSizer, proportion=1, flag=wx.EXPAND)
- self.sizer.Add(informationBoxSizer, proportion=0, flag=wx.EXPAND)
+ self.sizer.Add(informationBoxSizer, proportion=0,
+ flag=wx.EXPAND | wx.TOP, border=5)
More importantly, the selection of the item in list needs to be fixed. We talked about automatic selection of the item after users starts to search (first in the list for simplicity, but we may want to do something more complex regarding preferring direct epsg match). The search box should not be updated upon selection in the list.
…puts were merged into one search input. Link to epsg.io was added. This link responds to the selection of EPSG code.
…vents have not been addressed yet.
4c37358
to
a473825
Compare
Path to usr/share/proj/epsg was removed. Search and EPSG code text inputs were merged into one search input. Link to epsg.io was added. The layout was adapted using several box sizers instead of grid sizer.
Before:

Version 1:

The motion of events is following (unincorporated yet in Version 1):
Version 2:

Already incorporated:
I have a problem that when selecting epsg code from a table, it sometimes happens that neither the query string nor the final epsg code mentioned in the summary page changes. Also I am not sure how to incorporate choosing the automatically the first row in the list.
Version 3 (Layout enhancement):
