wxGUI(1)
๐ NAME ๐
wxGUI โ the native Graphical User Interface for GRASS GIS, straight out of the GRASS GIS User's Manual, bestie ๐
โจ DESCRIPTION โจ
okay so wxGUI is a native Graphical User Interface (GUI) for GRASS GIS. like, it's the vibe. its main character features are:
- displaying geographical data in 2D and 3D ๐
- calling GRASS GIS modules ๐ ๏ธ
- interacting with data ๐ซถ
๐ฆ Overview ๐ฆ
bestie, the GUI is composed of three main components and they're all iconic:
- The Layer Manager โ includes map layer management, an integrated command-line prompt, and a command output window tab. ๐
- The Map Display Window โ integrates basic tools for zooming, panning, data querying, and map elements (north arrows, barscale, etc.). Each display window is associated with its own set of map layers in the layer manager. The user may start multiple map displays during a session. The map layers for each display are grouped under different tabs in the Layer Manager. ๐บ๏ธ
- Module dialogs โ enable running GRASS modules that can be searched and launched via the Tools tab. ๐
๐ Layer Manager ๐
The Layer Manager provides an interactive graphical interface for creating and managing GRASS displays. Inside it you get:
- a toolbar to manage displayed map layers ๐งฐ
- a layer tree frame in which map layers for display are organized ๐ณ
- a command output window tab ๐
- an interactive command line prompt โจ๏ธ
On Linux and Windows platforms, the layer manager also has a menu bar with a set of pull-down menus for all GRASS GIS functions (analysis, file I/O, GIS configuration and management); on a Mac, the GRASS functions menu is at the top of the screen. no cap, that's just where it lives. ๐
Figure: Layer Manager screenshot on Ubuntu ๐ธ
The top left button of the toolbar opens a new Map Display Window. Each map display has a unique set of layers to display and region settings. Other toolbar buttons add layers of different types for display in the selected map display window. There are additional buttons for saving or opening workspace file, and others. slay. โจ
Map layers are listed in the window frame below the toolbar. Layers can include raster and vector maps, vector labels, and commands (where any GRASS command can be written). Layers are displayed as arranged in the layer tree: the bottom layer is displayed first and the top layer is displayed last, as if the layers were a series of stacked overlays. it's giving layered cake ๐
The check box to the left of each layer makes it active or inactive for display. Only active layers are displayed/redisplayed when the display button is pressed. Layers can be organized into groups; entire groups can be activated or deactivated for display. Layer tree composition can be saved to a workspace file and opened in subsequent sessions, restoring all layers and their display options. periodt. ๐พ
A right mouse click on a layer or left clicking the button to the right of the layer opens a dropdown menu with options to:
- remove or rename the layer (not the actual map) ๐
- change its display properties (
d.rastandd.vectoptions such as color, symbol, etc.) ๐จ - show its metadata (
r.info,v.info) or attributes, if applicable ๐
A left mouse double click on a layer opens GUI for its display options. These options are those for the d.* command for each layer type (d.rast, d.vect, or d.grid, for example). ๐ฅ
๐ Layer Manager Toolbar ๐
- Start new map display โ Opens a new map display and creates empty layer tree tab in Layer Manager. ๐ช
- Create new workspace โ Removes all layers from the layer tree and creates a new, empty tree where new layers can be added. ๐
- Open existing workspace file โ Opens an previously saved workspace file, containing a set of display layers and their option settings. ๐
- Save current workspace to file โ Saves current set of layers and their options to a workspace file. ๐พ
- Load map layers into workspace โ Loads selected raster or vector maps into current layer tree. ๐ฅ
- Add raster map layer โ Adds raster map to layer tree, see
d.rast. ๐พ - Add various raster map layers (RGB, HIS, shaded relief...) โ Opens a dropdown menu that allows user to select to:
- Add 3D raster map layer โ Adds 3D raster map to layer tree. ๐ง
- Add RGB raster layer โ Combines and displays three raster maps defined as red, green, and blue channels to create an RGB color map, see
d.rgb. ๐ด๐ข๐ต - Add HIS raster layer โ Combines and displays two or three raster maps defined as hue, intensity, and (optionally) saturation channels to create a color map, see
d.his. ๐ - Add shaded relief raster map layer โ Adds shaded relief raster map layer, see
r.reliefandd.shade. โฐ๏ธ - Add raster arrows layer โ Adds map of raster cells with directional arrows drawn. Arrow direction and length are determined by separate aspect/directional map and (optional) slope/intensity map, see
d.rast.arrow. โก๏ธ - Add raster numbers layer โ Adds map of raster cells with numbers representing the cell values, see
d.rast.num. ๐ข
- Add vector map layer โ Adds a vector map layer, see
d.vect. ๐บ๏ธ - Add various vector map layers (thematic, chart...) โ Opens a dropdown menu that allows user to select to:
- Add thematic area (choropleth) map layer (for all vector types) โ Adds layer for thematic display values from a numeric attribute column associated with a vector map. Options include: thematic display type (graduated colors or point sizes), methods for creating display intervals, SQL query of attribute column to limit vector objects to display, control of point icon types and sizes, control of thematic color schemes, creation of legend for thematic map, and saving the results of thematic mapping to a
ps.mapinstructions file for later printing, seed.vect.thematic. ๐ - Add thematic chart layer (for vector points) โ Adds layer in which pie or bar charts can be automatically created at vector point locations. Charts display values from selected columns in the associated attribute table. Options include: chart type, layer and attributes to chart, chart colors, and chart size (fixed or based on attribute column), see
d.vect.chart. ๐ฅง - Add group โ Adds an empty group. Layers can then be added to the group. ๐ฏ
- Add thematic area (choropleth) map layer (for all vector types) โ Adds layer for thematic display values from a numeric attribute column associated with a vector map. Options include: thematic display type (graduated colors or point sizes), methods for creating display intervals, SQL query of attribute column to limit vector objects to display, control of point icon types and sizes, control of thematic color schemes, creation of legend for thematic map, and saving the results of thematic mapping to a
- Add grid or vector labels overlay โ Opens a dropdown menu that allows user to select to:
- Add overlay grids and lines โ Adds layer to display regular grid see
d.grid. ๐ธ๏ธ - Add labels layer for vector objects (from existing labels file) โ Add a layer of text from a labels file for vector objects created with the
v.labelmodule. A labels file can also be created with a text editor, seed.labels. ๐ท๏ธ - Add geodesic line layer โ Add layer to display geodesic line for latitude/longitude projects only, see
d.geodesic. ๐ - Add rhumbline layer โ Add layer to display rhumblines (for latitude/longitude projects only), see
d.rhumbline. ๐งญ - Add command layer โ Adds a layer in which a GRASS GIS command or command list can be entered. For a command list use the semi-colon (
";") symbol as a separator. For example:
- Add overlay grids and lines โ Adds layer to display regular grid see
d.rast soils;d.rast -o roads;d.vect streams col=blue
Note that when an option of the command contains spaces, you need to "escape" them with the backslash ('\') character, for example:
d.text text=Population\ density
- Delete selected layer โ Removes selected map layer or map layer group from layer tree. ๐๏ธ
- Edit vector maps โ Opens vector digitizer to allow editing selected vector map. โ๏ธ
- Show attribute table โ Opens attribute table manager for selected vector map. ๐
- Import raster or vector data
- Import raster data โ Import selected raster data into GRASS using
r.in.gdaland load them into current layer tree. ๐ฅ - Link external raster data โ Link selected external raster data as GRASS raster maps (using
r.external) and load them into current layer tree. ๐ - Set raster output format โ Define external format for newly created raster maps (see
r.external.outfor details). ๐๏ธ - Import vector data โ Import selected vector data into GRASS using
v.in.ogrand load them into current layer tree. ๐ฅ - Link external vector data โ Link selected external vector data as GRASS vector maps (using
v.external) and load them into current layer tree. ๐ - Set vector output format โ Define external format for newly created vector maps (see
v.external.outfor details). ๐๏ธ
- Import raster data โ Import selected raster data into GRASS using
- Raster Map Calculator โ Launches Raster Calculator GUI front-end for
r.mapcalc. ๐งฎ - Graphical Modeler โ Launches graphical modeler to create models and run them. ๐งฉ
- Georectifier Tool โ Launches GCP Manager to create, edit, and manage Ground Control Points. ๐
- Cartographic Composer โ Launches Cartographic Composer to create interactively hardcopy map outputs. ๐จ๏ธ
- Show GUI settings โ Opens dialog to change GUI settings. โ๏ธ
- Show help โ Opens GRASS manual. โ
๐ธ Map Display Window ๐ธ
The map display window includes:
- a toolbar that can be docked and undocked from the window ๐งฒ
- a map canvas where a map composition of one or more layers is displayed ๐ผ๏ธ
- a statusbar with information about the geographic region of the maps displayed ๐
Figure: Map Display screenshot on Ubuntu ๐ธ
Each Map Display Window has a unique layer tree (in the layer manager) and geographic region setting. At the top of the window is a toolbar with buttons to:
- manage the map in the display (render, erase, zoom and pan) ๐
- query and analysis (distance measurement, profile, and histogram creation) ๐
- overlay map elements onto the display (scale, north arrow, legend, and custom text) ๐งญ
- export or print the display ๐จ๏ธ
In the statusbar, the user can choose to display:
- the geographic coordinates under the cursor ๐
- current geographical region extent ๐บ๏ธ
- computational region (including graphical visualization in map display) ๐ฏ
- map display geometry (number of rows, columns, resolution) ๐
- map scale โ๏ธ
Checking the render button in the statusbar will cause the map display to update automatically any time a map is added to, removed from, or changed in its layer tree. lowkey magic โจ
โ ๏ธ It is important to note that zooming in any display will have no effect on the 'computational region' setting (set with g.region). Only by selecting the 'Set current region to match display' item in the zoom menu (in the map display toolbar) will the current display extents be copied to the computational region extents. bestie, don't get caught out by this one ๐ญ
๐ฅ Map Display Toolbar ๐ฅ
- Re-render display โ Re-renders all active map layers regardless of whether they have changed or not, see
d.redraw. ๐ - Erase display โ wipes the currently selected map display clean to a white background ๐งผโจ see
d.erase. - Pointer โ swaps the cursor back to a plain arrow for the map display ๐ฑ๏ธ.
- Select features from vector map โ interactively pick features out of a given vector map. You can stash the selection into a brand new vector map, see
v.whatandv.extract๐ฏ. - Query raster/vector maps โ query selected raster, RGB raster (all three map channels get queried, all of them, no skipping ๐
), or vector map(s) with the mouse. Map(s) must be selected before you query, ok? Vector charts and thematic vector maps cannot be queried, periodt. The query results pop up in a dialog. See
r.what,v.what. - Pan โ interactively pick a new center of view in the active display monitor. Drag the pan cursor while holding the left mouse button and the display just slides. Panning changes where the displayed region sits but NOT how big it is and NOT the resolution. And it does not touch the computational region for other GIS processes, see
g.region. - Zoom in โ interactive mouse zooming in the active display monitor. Draw a box, or just click with the mouse (left button) using the zoom-in cursor, and the display zooms in so the boxed area fills the display ๐. The map resolution is not changed. A plain click with the zoom-in cursor zooms in by 30%, centered on wherever you clicked. Zooming resets the display region extents (both size and location of the displayed area). It does not affect the computational region for other GIS processes, see
g.region. - Zoom out โ interactive mouse zooming in the active display monitor. Draw a box, or just click with the mouse (left button) using the zoom-out cursor, and the display zooms out so the displayed area shrinks to fill the boxed area. The map resolution is not changed. A plain click with the zoom-out cursor zooms out by 30%, centered on wherever you clicked. Zooming resets the display region extents (both size and location of the displayed area). It does not affect the computational region for other GIS processes, see
g.region. - Zoom to selected map(s) โ sets the zoom extent based on your selected raster or vector maps. Zooming resets the display region extents (both size and location of the displayed area). It does not affect the computational region for other GIS processes, see
g.region. - Zoom to computational region extent โ sets the zoom extent based on the current computational region extent, see
g.region. - Return to previous zoom โ takes you back to the previous zoom extent โช. Up to 10 levels of zoom back are kept around, see
g.region. - Various zoom options โ opens a dropdown menu that lets the user:
- Zoom to default region
- Zoom to saved region. Zooms to a previously saved named region.
- Set computational region extent from display. The computational region (the mapset's
WINDfile) is set to match the current display extent (does not change the resolution), seeg.region. - Set computational region extent interactively. The computational region is set simply by drawing a box with the left mouse button on Map Display.
- Set computational region from named region. This option doesn't affect display zoom.
- Save display geometry to named region
- Save computational region to named region
- Analyze menu โ opens a dropdown menu with:
- Measure distance โ interactive measurement of lengths you define with the mouse. The length of each segment and the cumulative length of all segments measured shows up in the command output window frame. Lengths are measured in the current measurement unit. Double-click to switch off measuring ๐.
- Measure area โ interactive measurement of an area you define with the mouse. Area is measured in the current measurement unit. Double-click to switch off measuring.
- Profile surface map โ interactively create a profile of a raster map. The profile transect is drawn with the mouse in the map display. The profile may be of the displayed map or a different map. Up to three maps can be profiled simultaneously ๐๐.
- Create bivariate scatterplot of raster maps โ interactively create a bivariate scatterplot of raster maps.
- Create histogram of raster map โ displays a histogram of the selected raster map or image in a new window.
- Create histogram with
d.histogramโ displays a histogram of the selected raster map or image in a new window, seed.histogram. - Vector network analysis tool โ see the tool's manual page.
- Add overlay โ opens a dropdown menu that lets the user:
- Add raster map legend โ adds a layer to the display with the legend of the selected raster map, see
d.legend. - Add scalebar โ adds a layer to display a scalebar. Options include scalebar placement (using screen coordinates or a mouse), scalebar format, and scalebar colors, see
d.barscale. - Add north arrow โ adds a layer to display a north arrow. Options include north arrow placement (using screen coordinates or a mouse), north arrow style and color, see
d.northarrow. - Add text layer โ adds a layer to display a line of text using the default GRASS font (selected with
d.font). Options include: text placement (screen coordinates); and text size, bolding, and color, seed.text.
- Add raster map legend โ adds a layer to the display with the legend of the selected raster map, see
- Save display to graphic file โ saves the visible image in the map display to different raster graphic formats ๐พ.
- Print map โ prints the map on the system native printer or a PostScript device; saves the visible map display (including PostScript text and labels) to a PDF or EPS file.
๐ Map display mode ๐
Opens a dropdown menu for selecting a different display mode ๐
2D view
The normal GIS display. All active layers are composited and displayed in 2D mode.
3D view
An experimental replacement for NVIZ. Displays all active layers in 3D perspective using OpenGL. A new control panel opens to manage the 3D view. 3D view can be zoomed, panned, rotated, and tilted. The vertical exaggeration of rasters and 3D vectors can be set. Various color and lighten settings are possible. Not yet functional for Windows platforms ๐ช๐ญ
Vector digitizer
Puts the display into vector digitizing mode and opens a new digitizing toolbar. The user can digitize a new vector map or edit an existing map.
Raster digitizer
Puts the display into raster digitizing mode and opens a new digitizing toolbar. The user can digitize a new raster map or edit an existing map.
โจ๏ธ Keyboard short-cuts โจ๏ธ
Layer Manager
Ctrl+Tabโ Switch 'Layers' and 'Console' tabCtrl+Qโ QuitCtrl+Rโ Render map in all map displays
Workspace
Ctrl+Nโ Create new workspaceCtrl+Oโ Load workspace from fileCtrl+Sโ Close workspace
Layers
Ctrl+Shift+Lโ Add multiple raster or vector map layers to current map displayCtrl+Shift+Rโ Add raster map layer to current map displayCtrl+Shift+Vโ Add vector map layer to current map displayCtrl+Wโ Close current map display
Console
Tabโ Show command tooltipsEscโ Hide command tooltipsCtrl+Spaceโ Show auto-complete suggestionsUp/Downโ List command historyEnterโ Run commandCtrl++โ Increase font size (numerical keyboard plus key)Ctrl+-โ Decrease font size (numerical keyboard minus key)Ctrl+mouse wheelโ Increase or decrease font size
Map Display
F11โ Fullscreen mode (toggle on/off)Ctrl+Wโ Close map displayCtrl+Rโ Render map (re-renders map)F5โ Render map (re-renders map)
๐ Starting the GUI from command line ๐
By default, the GUI is always started, but if only the command line (shell) is running, the GUI can also be started manually using:
g.gui
If the wxGUI is not the default user interface, it can be defined as default by typing at the GRASS GIS command line:
g.gui -d wxpython
Alternatively, it may be defined in the main configuration file ($HOME/.grass8/rc on GNU/Linux and macOS, %APPDATA%\Roaming\GRASS8\rc on MS Windows) using the GUI variable set to wxpython (GUI: wxpython) or by the environmental variable GRASS_GUI. To start with a previously saved workspace file:
g.gui workspace=file.gxw
The user can also start GRASS from the shell command line with the wxGUI specifying the --gui switch:
grass --gui
The GUI can be quit by selecting the 'File > Quit GRASS GIS' menu item, which gives options to close only the GUI or to quit GRASS GIS entirely if GRASS GIS is running with a command line (a shell in a terminal application). Exiting the shell (typically by the exit command) ends the GRASS session including any running GUIs ๐ซถ.
๐ง Background information ๐ง
wxGUI is a native Graphical User Interface (GUI) for GRASS GIS written in Python using the wxPython library. That's the whole vibe, no cap.
๐ SEE ALSO ๐
wxGUI components, wxGUI module dialogs, wxGUI toolboxes (menu customization)
See also the wxGUI wiki page (especially various video tutorials), and Quick wxGUI Tutorial.
๐ AUTHORS ๐
- Martin Landa, FBK-irst (2007-2008), Trento, Italy, and Czech Technical University in Prague, Czech Republic
- Michael Barton, Arizona State University, USA
- Daniel Calvelo Aros
- Jachym Cepicky
- Markus Metz, Germany
- Anna Kratochvilova, OSGeoREL, Czech Technical University in Prague, Czech Republic
- Vaclav Petras, OSGeoREL, Czech Technical University in Prague, Czech Republic
- Stepan Turek, OSGeoREL, Czech Technical University in Prague, Czech Republic
- Tereza Fiedlerova, OSGeoREL, Czech Technical University in Prague, Czech Republic
- Matej Krejci, OSGeoREL, Czech Technical University in Prague, Czech Republic
Icons created by Robert Szczepanek, Poland (Git repository)
๐พ SOURCE CODE ๐พ
Available at: wxGUI source code (history)
Accessed: Friday Nov 21 14:02:57 2025
Main index | Topics index | Keywords index | Graphical index | Full index
okay that's the whole page bestie, you made it ๐ shoutout to the GRASS Development Team โ ยฉ 2003-2025, from the GRASS GIS 8.4.2 Reference Manual โ and this lil' section got accessed Friday Nov 21 14:02:57 2025. The manual itself is stamped GRASS 8.4.2 and wxGUI(1) ๐โจ go touch some grass (gis) fr fr ๐ธ๐ฆ
๐ฆ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms