Skip to content

Commit

Permalink
Update GRASS setup training lesson
Browse files Browse the repository at this point in the history
Fixes #9092
  • Loading branch information
DelazJ committed May 24, 2024
1 parent 858ead3 commit 77287c7
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 17 deletions.
29 changes: 14 additions & 15 deletions docs/training_manual/grass/grass_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,18 @@ To launch GRASS from within QGIS, you need to activate it as with any other
plugin:

#. First, open a new QGIS project.
#. In the :guilabel:`Plugin Manager`, enable :guilabel:`GRASS` in the list:
#. In the :guilabel:`Plugin Manager`, enable |grassTools| :guilabel:`GRASS 8` in the list:

.. figure:: img/enable_grass.png
:align: center


The GRASS toolbar and the GRASS panel will appear:

.. figure:: img/grass_toolbar.png
:align: center

GRASS toolbar

.. figure:: img/grass_panel.png
:align: center

GRASS Panel
GRASS Toolbar and Panel

The GRASS panel is not active because, before you can use GRASS, you need to
create a ``Mapset``. GRASS always works in a database environment, which means
Expand Down Expand Up @@ -157,8 +152,8 @@ Go to the Browser, and simply drag the :file:`roads` layer from the
.. figure:: img/grass_browser_import.png
:align: center

That's it! If you expand the Mapset you will see the imported :file:`roads`
layer. You can now load in QGIS the imported layer like all the other layers.
That's it! If you expand the Mapset you will see the imported :file:`roads` layer.
You can now load in QGIS the imported layer like all the other layers.

.. tip:: You can also load layers from the Layer Legend Panel to Mapset in the
Browser Panel. This will speed up incredibly your workflow!
Expand All @@ -173,7 +168,9 @@ same Mapset.
#. Load data into QGIS as usual. Use the :file:`rivers.shp` dataset (found in the
:file:`exercise_data/shapefile/` folder)
#. As soon as it is loaded, click on the :guilabel:`Filter` box of the ``GRASS Panel``
and find the vector import tool by entering the term ``v.in.ogr.qgis``:
and find the vector import tool by entering the term ``v.in.ogr.qgis``
(available under :menuselection:`File management --> Import into GRASS -->
Import vector into GRASS`):

.. warning:: There are 2 similar tools: ``v.in.ogr.qgis`` and
``v.in.ogr.qgis.loc``. We are looking for the **first** one.
Expand Down Expand Up @@ -222,9 +219,10 @@ We are going to import in the GRASS Mapset the layer |srtmFileName|.

#. Load the |srtmFileName| layer in QGIS
#. Open the :guilabel:`GRASS Tools` dialog again.
#. Click on the :guilabel:`Modules List` tab.
#. Search for ``r.in.gdal.qgis`` and double click the tool to open the tool's
dialog.
#. Click on the :guilabel:`Modules` tab.
#. Search for ``r.in.gdal.qgis`` (available under :menuselection:`File management -->
Import into GRASS --> Import raster into GRASS --> Import raster into GRASS from QGIS view`)
and double click the tool to open the tool's dialog.
#. Set it up so that the input layer is |srtmFileName| and the output is :file:`g_dem`.

.. figure:: img/g_dem_settings.png
Expand Down Expand Up @@ -269,8 +267,7 @@ Let's close the Mapset by clicking on the :guilabel:`Close Mapset` button of the
:abbr:`★☆☆ (Basic level)` Follow Along: Using the GRASS plugin
...............................................................................

#. Click on the :guilabel:`Plugins --> GRASS --> Open Mapset` menu next to the
:guilabel:`Plugins --> GRASS --> New Mapset` menu that we saw in the previous section.
#. Click on the :menuselection:`Plugins --> GRASS --> Open Mapset` menu.

#. Browse to the GRASS database folder: be careful! You must choose the parent folder,
not the GRASS Mapset one. Indeed GRASS will read all the ``Locations`` of the
Expand Down Expand Up @@ -331,6 +328,8 @@ operations that GRASS offers.
:width: 1.5em
.. |grassMapsetOpen| image:: /static/common/grass_mapset_open.png
:width: 1.5em
.. |grassTools| image:: /static/common/grass_tools.png
:width: 1.5em
.. |srtmFileName| replace:: :file:`srtm_41_19_4326.tif`
.. |win| image:: /static/common/win.png
:width: 1em
Binary file modified docs/training_manual/grass/img/enable_grass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/g_dem_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_final.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_mapset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_open_mapset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_panel_import.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/grass_tool_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/training_manual/grass/img/grass_toolbar.png
Binary file not shown.
Binary file modified docs/training_manual/grass/img/new_location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/set_south_africa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/training_manual/grass/img/wgs_84_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/user_manual/working_with_gps/live_GPS_tracking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ or without it, by connecting the QGIS live tracking tool directly to the device
.. |addTrackPoint| image:: /static/common/mActionAddTrackPoint.png
:width: 1.5em
.. |capturePoint| image:: /static/common/mActionCapturePoint.png
:width: 1.5em
.. |captureLine| image:: /static/common/mActionCaptureLine.png
:width: 1.5em
.. |capturePoint| image:: /static/common/mActionCapturePoint.png
:width: 1.5em
.. |capturePolygon| image:: /static/common/mActionCapturePolygon.png
:width: 1.5em
.. |gpsConnect| image:: /static/common/mIconGpsConnect.png
Expand Down

0 comments on commit 77287c7

Please sign in to comment.