GRASS 6 Tutorial/Displaying spatial data
Displaying spatial data with GRASS
This section of the tutorial explains how to display raster and vector data using GRASS GIS. We focus on two approaches: one approach uses the CLI and the
d.mon display monitors, while the other shows you how to use the GRASS wxGUI. This reader is redirected to the Quick wxGUI tutorial for more information on this topic.
Displaying raster data from the CLI
In some situations, you might find the CLI a quick alternative to display your vector data. You need to start a display monitor as follows:
Depending on your region settings, you may want to set the region to the full extent of your raster map:
Then you simply launch the
d.rast command to display the map.
To have more control over the display settings for the raster, check the additional options by
d.rast --help. You can navigate within the display monitor using a combination of
d.zoom in conjunction with the mouse buttons.
If you want to retrieve the pixel values at a certain x,y location, you should use the
d.what.rast command, which will change the pointer in the display window to a cross-hair. With the mouse, you click on the location(s) of interest and the raster values are printed in the terminal window.
Plotting an elevation profile
Plotting an elevation profile between two points is done by running