Version 23 (modified by 4 years ago) ( diff ) | ,
---|
GSoC 2020: GRASS GIS startup mechanism
Title: | Creation of a new GRASS GIS startup mechanism |
Student Name: | Linda Kladivova |
Organization: | OSGeo - Open Source Geospatial Foundation |
Mentor Name: | Anna Petrasova, Martin Landa, Vaclav Petras, Moritz Lennert |
GSoC proposal: | View proposal |
GitHub Repository: | view repository |
Abstract
This project will focus on the creation of a more user-friendly GRASS GIS startup. The general idea is to make the initial user’s contact easier and with a less steep learning curve. While programming new GRASS startup GUI several tasks will be solved – changes in Location wizard structure, Data Catalog as well as general GUI.
Goal
GRASS GIS comes with the concept of Location and Mapset which is not going to be replaced because of its advantages such as organized structure. The goal of this project is to make this concept more user-friendly (especially in terms of the welcome screen). The motion is that the Data Catalog will be expanded so that in addition to raster and vector data, it can manage even Locations and Mapsets. Then this widget could be used in the welcome screen. The work schedule below has been compiled on the basis of the Roadmap available here: https://trac.osgeo.org/grass/wiki/wxGUIDevelopment/New_Startup#PragueRoadmap.
To sum up the schedule: From June 1st to June 28th (4 weeks), I plan to work on the Location wizard (the topic for the first evaluation), from June 29th to July 19th (3 weeks) I plan to program the new form of the Data Catalog (the topic for the second evaluation). From July 20th to August 23rd I will work on creating the new welcome page itself by integrating the improved components.
Timeline
Time Period | Milestones | |
---|---|---|
Tasks | Status | |
May 4 - June 1 |
|
Ok |
June 1 - June 7 | Location wizard - first page
|
|
June 8 - June 14 | Location wizard - EPSG page - (see https://github.com/OSGeo/grass/pull/670):
|
|
June 15 - June 21 | Location wizard
|
Ok
|
June 22 - June 28 | Finishing the implementation of Location wizard
|
|
June 29 - July 5 | Data catalog:
| First evaluation
TBD |
July 6 - July 12 | Data catalog: | TBD |
July 13 - July 19 | Finishing the implementation of Data catalog
| TBD |
July 20 - July 26 | General GUI:
| TBD |
July 27 - August 2 | General GUI:
| TBD |
August 3 - August 9 | General GUI:
| TBD |
August 10 - August 16 | Integrating the components into the new welcome page (continued) | TBD |
August 17 - August 23 | Finishing up, testing, documentation | TBD |
August 24 - August 31 | Finalizing the existing work Submitting the final work | TBD |
Bonding period report
Introduce myself in dev list, get in contact with my mentors and discuss the design of functions
After being accepted as a student for GSoC 2020, I introduced myself to grass dev lists on May 13. Also, I got in contact with my mentors - Martin Landa, Anna Petrasova, Vaclav Petras and Moritz Lennert. On May 14 we set up the video call where we discussed how to set up my GRASS dev environment and how to proceed with future work.
Prepare the wiki page about the project
I created my project wiki page (2) and added the link to the GSoC 2018 Accepted proposals page (3). The wiki page includes - General information about the project (title, mentors, links to the proposal and GitHub repository, etc.), a brief description of the project, goal, and timeline of tasks and deliverables.
I will keep my wiki page up to date and will add weekly reports following the instructions in the GSoC Recommendations for Student page (4).
Set up the GitHub repository of the project
I have chosen GitHub (5) as a public repository for the development of this project. I added the link to the GSoC 2020 Accepted proposals page (3), to my wiki page (2) and I shared it with my mentors. My repository is licensed under the GNU General Public License v3.0, according to the license of GRASS GIS.
Set up a developer environment
I checked and updated my developer environment so as to be ready to start coding after the bonding period.
Four PR already created
I created two PR related to the First Page of Location Wizard: https://github.com/OSGeo/grass/pull/493 and https://github.com/OSGeo/grass/pull/646. Both of them are already closed. In those PR the layout of this page was changed quite significantly. The database directory was mentioned as the last attribute and can be changed. The Location Name was marked as required. Location Title was renamed as Description and marked as optional (also in the Summary Page this was renamed). Both checkboxes "Set default region and resolution" and "Create user mapset" were removed.
I also created a single PR related to removing the picture of the world: https://github.com/OSGeo/grass/pull/657 which is still open and made one improvement related to automatic detection of case-independent cases of grassdata directory that is not literally mentioned in the roadmap: https://github.com/OSGeo/grass/pull/664 (issue: https://github.com/OSGeo/grass/issues/644.)
(1) https://lists.osgeo.org/pipermail/grass-dev/2018-April/088262.html
(2) https://trac.osgeo.org/grass/wiki/GSoC/2020/StartupWindow
(3) https://wiki.osgeo.org/wiki/Google_Summer_of_Code_2020_Accepted
(4) https://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students
(5) https://github.com/lindakladivova/grass
Weekly reports
Week 1
1) What did I complete this week?
I created a single PR related to the bigger topic related to changes in EPSG page (see https://github.com/OSGeo/grass/pull/670). I made a change in layout definition. Now it is defined by boxSizer instead of gridBagSizer. Also, path to usr/share/proj/epsg was removed. Search and EPSG code text inputs were merged into one search input. An informative link to epsg.io was added.
Removing the picture of the world: https://github.com/OSGeo/grass/pull/657 was already merged into master. Similarly, I am already done with the automatic detection of case-independent cases of grassdata directory: https://github.com/OSGeo/grass/pull/664 (issue: https://github.com/OSGeo/grass/issues/644.)
2) What am I going to achieve for next week?
Next week I am going to continue on PR regarding the EPSG page (see https://github.com/OSGeo/grass/pull/670). The layout is done, now I am gonna focus on events. There are several requirements:
- searching in a list on the fly
- choose automatically the first row and permit "next" button
- if epsg code is empty, nothing is selected and "next" button is not active
- change informative URL according to a query string
Furthermore, I am gonna work on improvement when GRASS should create a grassdata directory in the default path for its platform automatically (see https://github.com/OSGeo/grass/issues/682).
3) Is there any blocking issue?
No, it isn't.
Week 2
1) What did I complete this week?
I focused mainly on completing the PR (see https://github.com/OSGeo/grass/pull/670) regarding the EPSG page. New things that are already incorporated:
- remove path to "/usr/share/proj/epsg"
- merge search and EPSG code text inputs
- searching in a list on the fly
- if epsg code is empty, nothing is selected and "next" button is not active
- change informative URL according to a query string (link to epsg.io)
Other two PRs were established:
- Startup GUI automatic detection of grassdata: make case independent (see https://github.com/OSGeo/grass/pull/664, see https://github.com/OSGeo/grass/issues/644). Detects a grassdata directory if present, but it does not detect GRASSDATA, Grassdata, or any other possible combinations of cases. It should be independent to allow for different cultures of case usage in file and directory naming.
- Create grassdata automatically on the first GUI startup (see https://github.com/OSGeo/grass/pull/705, see https://github.com/OSGeo/grass/issues/682)
After starting GRASS GIS with GUI, the GUI now searches for existing grassdata. If nothing is found, GRASS GIS (GUI) should automatically create directory named grassdata as a subdirectory of a platfrom-dependent directory. This platfrom-dependent directory would be:
- $HOME (os.path.expanduser('~')) on Linux and the like,
- User's Documents on Windows (see dac6d4a for code trying to identify that dir),
- One of the above on macOS - macOS users, please share your ideas.
- If that fails, it should use a temporary directory (/tmp/... etc.) as a fallback.
Those PRs are still in progress.
2) What am I going to achieve for next week?
I would definitely work on finishing PRs see https://github.com/OSGeo/grass/pull/664 and https://github.com/OSGeo/grass/pull/705. Then I will continue in work on Location Wizard particularly Projection page and Final Page. The labels in some pages will be also probably somehow changed, so far it was not addressed.
3) Is there any blocking issue?
No, it isn't.
Week 3
1) What did I complete this week?
I have worked and completed two PRs related to Startup page:
- Startup GUI automatic detection of grassdata: make case independent (see https://github.com/OSGeo/grass/pull/664, see https://github.com/OSGeo/grass/issues/644). Detects a grassdata directory if present, but it does not detect GRASSDATA, Grassdata, or any other possible combinations of cases. It should be independent to allow for different cultures of case usage in file and directory naming.
- Create grassdata automatically on the first GUI startup (see https://github.com/OSGeo/grass/pull/705, see https://github.com/OSGeo/grass/issues/682)
I have also set up and work on the new PR related to CRS selection page (see https://github.com/OSGeo/grass/pull/721, see https://github.com/OSGeo/grass/issues/706). I am almost done with this PR.
2) What am I going to achieve for next week?
I would end up the last PR related to Location Wizard (see https://github.com/OSGeo/grass/pull/721) and also start to work on other issues related mainly to the Data Catalog:
- Correct "list index out of range" error in the Console tab in GUI after right-click on the database directory ("grassdata") node (root) in the Data tab (see https://github.com/OSGeo/grass/issues/709)
- Add, rename and delete of Location and Mapset in Data catalog (see https://github.com/OSGeo/grass/issues/710)
- Distinguish mapsets by ownership and lock (see https://github.com/OSGeo/grass/issues/714)
- Add New Mapset action to the Data catalog (see https://github.com/OSGeo/grass/issues/717)
3) Is there any blocking issue?
I am sorry for not doing much work earlier this week, I was away one week from home till this Wednesday. Now, for the last three days, I have been trying to catch it up and next week I will work harder. :)
I do not have any blocking issues.
Week 4
1) What did I complete this week?
I finalized my work regarding the Location Wizard:
- Editing of CRS selection page where WKT is using pasted text instead of search mechanism (see https://github.com/OSGeo/grass/pull/721, see https://github.com/OSGeo/grass/issues/706)
- Correction of errors according to flake 8 and addition of some description (see https://github.com/OSGeo/grass/pull/728)
I have also started to work on other issues related mainly to the Data Catalog:
- Correction of "list index out of range" error appears in the Console tab in GUI after right click on the database directory ("grassdata") node (root) in the Data tab (see https://github.com/OSGeo/grass/pull/736, see https://github.com/OSGeo/grass/issues/709, already done)
- Add new mapset action to data catalog (see https://github.com/OSGeo/grass/pull/731, see https://github.com/OSGeo/grass/issues/717)
- created GenericMultiValidator in gui_core/widgets, which will work as GenericValidator, but can pass tuple of conditions and callbacks,
- defined callbacks (_nameValidaionFailed, the ogr check and also test whether the mapset already exists) inside the NewMapsetDialog class,
- created simple function in guiutils to check if mapset exists.
2) What am I going to achieve for next week?
I would finalize on the PR Add new mapset action to data catalog (see https://github.com/OSGeo/grass/pull/731, see https://github.com/OSGeo/grass/issues/717)
- adjusting the code in gis_set.py to accommodate the new changes,
- creation of new function in datacatalog/tree called insertMapset for inserting a mapset into a virtual tree,
- adjusting the code in gis_set.py and tree.py to accommodate the new changes.
I would also start to work on other issues related mainly to the Data Catalog:
- Add, rename and delete of Location and Mapset in Data catalog (see https://github.com/OSGeo/grass/issues/710)
- Distinguish mapsets by ownership and lock (see https://github.com/OSGeo/grass/issues/714)
3) Is there any blocking issue?
I do not have any blocking issues.