Exercise

Exercise#

Here are some exercises to get started working with GRASS GIS. Provide the command-line command for each one. Refer to the GRASS GIS documentation.

Some of the commands you will also need for the third assignment. Therefore, you can download the GRASS GIS cheat sheet and fill in the respective commands for later reference.

Tip

You may use the GUI to find right command and parameters if you like. The respective command is then given at the bottom of each tool window (see How to use Grass GIS). Copy and paste it into your script.

  1. Open GRASS GIS and create a new location called “Slovenia”

  2. Import the GADM data from assignment 2.

  3. Set the region of the location to cover Slovenia.

  4. List all mapsets.

  5. Print the current mapset.

  6. Within the new location, create a new mapset called “flood_analysis”.

  7. Again list all mapsets and print the current mapset.

  8. Switch to the “PERMANENT” mapset.

  9. Print the current mapset.

  10. List all vector and raster layers in the current mapset.

  11. Print the region of the mapset. What is a “region” in GRASS GIS?

  12. Import the DEM from assignment 2 into the “PERMANENT” mapset.

  13. List all datasets in a project.

  14. Visualize the districts and dem in the map window.