Meeting minutes on interfacing GRASS from QGIS #3047
Replies: 3 comments
-
Regarding 'GRASS Tools in Processing', IIRC some discussion also took place about the current " |
Beta Was this translation helpful? Give feedback.
-
Adding an update about:
=> I saw that @nyalldawson has implemented an integration of these txt files (which remain in place) into 1 JSON file (not in the repo), which is read instead to speed up QGIS loading. See qgis/QGIS#55513. |
Beta Was this translation helpful? Give feedback.
-
In relation to above comment: starting with the upcoming QGIS release (3.36) the GRASS GIS algorithms will be referred to as |
Beta Was this translation helpful? Give feedback.
-
Meeting minutes on interfacing GRASS from QGIS
2023-06-05 10:00 CEST
Conversation as part of the GRASS Community Meeting in Prague 2023
Participated: Nyall Dawson (online), Markus Neteler, Vaclav Petras, Anna Petrasova, Micha Silver, Loïc Bartoletti (online), Floris Vanderhaeghe
Overview
Nyall presented an overview of GRASS-QGIS integration components and their strengths and weaknesses. (Nyall Dawson has emailed us his slides.)
To reduce maintenance burden and make it less confusing for users, the C++ plugin needs to be removed.
Removing GRASS C++ plugin
The goal is to remove GRASS C++ plugin. To do that, some functionality should be moved to Processing or QGIS Settings. Mapset handling unclear where to put it.
Nyall's goals
Short-term goals
Long-term goals
GDAL-GRASS driver
Markus points out the existence of GDAL-GRASS driver, which is maintained, used by GeoServer GRASS raster datastore and planned to use in rgrass (again). Packaging could be done, but perhaps it is not worth adding another dependency when QGIS GRASS provider works fine. Moreover, the latter operates directly, doesn't depend on GDAL, which Nyall regards as an advantage.
GRASS Tools in Processing
GRASS C++ plugin often split the GRASS tools into multiple (e.g., r.slope), which in the past caused issues. That is not the case with GRASS tools available from the Processing plugin.
Micha sees many users complaining, when the tool fails, but the error message is confusing for both users and GRASS developers.
In general, the interface is being kept up-to-date, unlike e.g. SAGA, which had to become a 3rd party provider.
GRASS GIS Addons
GRASS GIS Addons are often requested, but are not available in Processing, see recent related QGIS issues/PRs:
There needs to be more discussion how to support addons, some ideas/questions/concerns:
g.extension
can be used to install addons.Algorithm definition and description files
This applies to all GRASS algorithms (as for other providers). Each GRASS tool in the Processing plugin has a .txt file for converting options to whatever QGIS needs. Significant number of tools have also an associated Python file for some special cases. This complicates updating tools when they change in GRASS GIS and adding Addons.
Some ideas/questions/concerns:
Threading
Currently, GRASS calls block the QGIS GUI since
grass --exec g.something
always locks the mapset. There is no reason for that, since Processing calls GRASS withgrass --tmp-location
. GRASS command can be safely run in separate mapsets. Calling in the same mapsets is routinely done in GRASS, but users need to know what they are doing. Issues would arise with different computational regions, or when writing to the same raster layer or to the same sqlite database (different vector layers share same sqlite db). This could be solved, if needed. Nyall will remove the restriction so that GRASS tools can be called in the background.Closing notes
Nyall is eager to continue supporting GRASS natively in QGIS.
A follow-up would be nice in e.g. 2 months. Nyall, please share your slides.
Other developers to contact: Alexander Bruy (alexbruy), Jürgen Fischer (jef-n), Loïc Bartoletti (lbartoletti)
Beta Was this translation helpful? Give feedback.
All reactions