WxPython-based GUI for GRASS: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
m (fix URLs)
 
(102 intermediate revisions by 9 users not shown)
Line 3: Line 3:
See also [[GRASS GUI]], and [[GRASS and Python]].
See also [[GRASS GUI]], and [[GRASS and Python]].


For developer-related issues see [http://trac.osgeo.org/grass/wiki/wxGUIDevelopment Trac wxGUI page].
For developer-related issues see [http://trac.osgeo.org/grass/wiki/wxGUIDevelopment Trac wxGUI page] and [ GitHub GUI issues].
 
[[Image:GRASS_GIS_70_startup.png|center|400px]]


__TOC__
__TOC__
Line 9: Line 11:
== Overview ==
== Overview ==


* [http://grass.osgeo.org/grass64/manuals/html64_user/wxGUI.html Manual page]
* '''{{cmd|wxGUI}} Manual page]'''
 
Historical development documents:
* A nice summary of the progress to date, written by Jachym Cepicky:
* A nice summary of the progress to date, written by Jachym Cepicky:
** [http://www.les-ejk.cz/english/wxgrass-new-grass-gui-1 Part 1]
** [http://www.les-ejk.cz/english/wxgrass-new-grass-gui-1 Part 1]
Line 16: Line 20:
* [[User:Landa|Martin Landa]], Cristina Moretto, Michele Zanolli, Luca Manganelli and Markus Neteler: [http://gama.fsv.cvut.cz/~landa/publications/2008/gfoss-it-08/paper/grass-gfoss-tn.pdf wxPython-based GUI for GRASS GIS] ([http://gama.fsv.cvut.cz/~landa/publications/2008/gfoss-it-08/prezentazione/perugia-grass-gui-wxpython.pdf presentation]) ([http://www.grassmeeting2008.unipg.it IX Meeting degli Utenti Italiani di GRASS - GFOSS], February 20-22, Perugia, Italy)
* [[User:Landa|Martin Landa]], Cristina Moretto, Michele Zanolli, Luca Manganelli and Markus Neteler: [http://gama.fsv.cvut.cz/~landa/publications/2008/gfoss-it-08/paper/grass-gfoss-tn.pdf wxPython-based GUI for GRASS GIS] ([http://gama.fsv.cvut.cz/~landa/publications/2008/gfoss-it-08/prezentazione/perugia-grass-gui-wxpython.pdf presentation]) ([http://www.grassmeeting2008.unipg.it IX Meeting degli Utenti Italiani di GRASS - GFOSS], February 20-22, Perugia, Italy)


=== Requirements ===
Contributing:
* https://github.com/OSGeo/grass/blob/master/CONTRIBUTING.md
* [http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README README]


=== Development ===
=== Development ===
Line 28: Line 31:
* GRASS user (or better developer) experience  
* GRASS user (or better developer) experience  


How to get [http://trac.osgeo.org/grass/wiki/HowToContribute write access] to the GRASS SVN repository.
How to get [http://trac.osgeo.org/grass/wiki/HowToContribute write access] to the GRASS GIS code repository.
 
See example of wxGUI module in core: {{src|doc/gui/wxpython/example/}}


== Screenshots ==
== Screenshots ==


* See [[WxGUI Screenshots|Screenshots]] page
* [[:Category:WxGUI|Screenshots from GRASSWiki]]
* [[:Category:WxGUI|Screenshots from GRASSWiki]]
* [http://svn.osgeo.org/grass/grass-addons/screenshots/wxpython SVN]
* [https://svn.osgeo.org/grass/grass-addons/screenshots/wxpython SVN]
* [http://grass.osgeo.org/screenshots/gui.php Website screenshot page]
* [https://grass.osgeo.org/screenshots/user-interface Website screenshot page]
* Various screenshots from [[:Category:WxGUI|GRASS-Wiki]]
* Various screenshots from [[:Category:WxGUI|GRASS-Wiki]]
=== GNU/Linux ===
<center>
{|
|
[[Image:Wxgui-startup-gnulinux.png|300px|thumb|Start-up screen]]
||
[[Image:Wxgui-vdigit1-gnulinux.png|300px|thumb|Vector digitizer]]
|-
|
[[Image:Wxgui-atm0-gnulinux.png|300px|thumb|Attribute Table Manager]]
||
[[Image:Wxgui-vector-querying-gnulinux.png|300px|thumb|Querying vector map layers (attribute data)]]
|-
|
[[Image:Wxnviz-volumes.png|300px|thumb|center|wxGUI: Displaying raster (surface), 2D vector and 3D raster (volume) in the 3D space]]
||
[[Image:wxgui-spatial-query.png|300px|thumb|center|wxGUI: Spatial query]]
|}
</center>
=== Mac OS ===
=== MS Windows ===
<center>
{|
|
[[Image:Wxgui-startup-windows1.png|300px|thumb|Start-up screen]]
||
[[Image:Wxgui-d-vect-windows.png|300px|thumb|GUI dialog d.vect]]
|-
|
[[Image:Wxgui-atm-windows.png|300px|thumb|Attribute Table Manager]]
||
[[Image:Wxgui-r-buffer-windows.png|300px|thumb|Running command (r.buffer)]]
|-
|
[[Image:Wxgui-vector-querying-windows.png|300px|thumb|Querying vector map layer (editable mode)]]
||
&nbsp;
|}
</center>


== Video tutorials ==
== Video tutorials ==


=== Import vector data ===
* See [[wxGUI/Video tutorials|Video tutorials]] page
 
* [[Import DXF]]
{{YouTube|eD2B1i9YxxQ|desc=Importing single shapefile}}
{{YouTube|ohbV_MR530Q|desc=Importing multiple shapefiles}}
{{YouTube|lJVBw78zYY0|desc=Importing SpatiaLite layers}}
{{YouTube|JoqIkL2VRVc|desc=Importing PostGIS layers into GRASS}}
 
=== Import raster data ===
 
Importing multiple GeoTIFF files:
 
<center>
{|
|
[[Image:WxGUI bulk raster import1.png|300px|thumb|Bulk import of GeoTIFF via menu]]
||
[[Image:WxGUI bulk raster import2.png|320px|thumb|Bulk import of GeoTIFF via menu (files are auto-selected)]]
|
|}
</center>
 
=== Link vector data (GRASS 7) ===
 
{{YouTube|eB3_SmE3E9Q|desc=Link PostGIS layers as GRASS vector maps}}
 
=== Map display ===
 
{{YouTube|PY8aytvfQqA|desc=Define legend and export to image}}
 
=== Georectifier ===
 
* Manual page of {{cmd|wxGUI.GCP_Manager|desc=GCP Manager}}
 
=== Graphical modeler ===
 
''Note:'' GRASS 6.4.2+ required.
 
See wxGUI [[WxGUI Modeler#Video Tutorials|Modeler]] page.
 
=== Layer Manager: Searching GRASS module ===
 
{{YouTube|Z9STgChNWcM|desc=Search for GRASS module (GRASS 6.4.2 required)}}
 
=== Map Calculator ===
 
{{YouTube|yMpVVRaVYeA|desc=Calculating NDVI}}
 
=== wxGUI 3D view mode (wxNviz) ===
 
See [[WxNviz#Video tutorials|wxNviz]] page.


== Components ==
== Components ==
Line 154: Line 66:
</gallery>
</gallery>
</center>
</center>
==== Import tool ====
The GUI offers a convenient tool for single map and bulk import:
* see [[Importing data]]


==== Map display window ====
==== Map display window ====
'''Status:''' prototype implemented.


Each '''Map display window''' has a unique set of layers to display and region setting (zoom). The map display window includes main toolbar with basic tools including zooming, panning, data querying, simple analyse functions (measure, profile, histogram, etc.), overlay management, etc. From main toolbar are accessible additional toolbars, currently only Digitization tool is available. Under development is Georectification tool.
Each '''Map display window''' has a unique set of layers to display and region setting (zoom). The map display window includes main toolbar with basic tools including zooming, panning, data querying, simple analyse functions (measure, profile, histogram, etc.), overlay management, etc. From main toolbar are accessible additional toolbars, currently only Digitization tool is available. Under development is Georectification tool.
Line 167: Line 83:
</gallery>
</gallery>
</center>
</center>
==== Map query tool ====
Raster and vector maps can be queried at cursor position:
[[Image:Wxgui map query tool.png|center|thumb|500px|Raster and vector map query (select map to query in layer manager)]]
==== Map measure tool ====
Raster and vector maps can be measured with a digitizer (line or self-closing area).
Note for LatLong locations: The lengths/areas are returned also in metric units.
[[Image:Wxgui map measure tool.png|center|thumb|500px|Measurements of line length and area size (latitude-longitude location example with SRTM]]


==== GUI dialogs ====
==== GUI dialogs ====
Line 265: Line 195:
==== Startup GUI (welcome screen) ====
==== Startup GUI (welcome screen) ====


'''Status:''' prototype implemented.
<!-- historical
'''Status:''' implemented.


Start new GRASS session with
Start new GRASS session with


  grass -wxpython
  grass64 -gui


[[Image:Wxgrass-startup.png|center|400px]]
[[Image:Wxgrass-startup.png|center|400px]]
-->
grass78 -gui
[[Image:GRASS_GIS_70_startup.png|center|400px]]


==== Location wizard ====
==== Location wizard ====
Line 295: Line 232:
'''Status:''' prototype implemented.
'''Status:''' prototype implemented.


Manual page - {{cmd|wxGUI.Vector_Digitizer}}
See also {{cmd|wxGUI.Vector_Digitizer|desc=manual page}}


See also [[GRASS Digitizing tool]] and [[wxGUI Vector Digitizer]].
See also [[GRASS Digitizing tool]] and [[wxGUI Vector Digitizer]].
Line 316: Line 253:
==== Raster digitizer ====
==== Raster digitizer ====


'''Status:''' development not started yet.
'''Status:''' development started in GRASS 7 (2014) --> implemented in 2020
 
* {{cmd|r.digit}} (merge with {{cmd|v.digit}}?)
: Probably write a front end for {{cmd|r.in.poly}}, that's all the old {{cmd|r.digit}} is.
* {{cmd|d.rast.edit}}
: Idea: get cell center coords and new values from GUI interaction, then pass those through {{cmd|r.in.xyz}}, and {{cmd|r.patch}} the new values over the top of the old map.
: Current status:


* r.digit (merge with v.digit?)
[[Image:D_rast_edit_grass7.png|center|thumb|500px|Raster map editor in GRASS 7]]
: Probably write a front end for [http://grass.osgeo.org/grass63/manuals/html63_user/r.in.poly.html r.in.poly], that's all the old r.digit is.
* d.rast.edit
: Idea: get cell center coords and new values from GUI interaction, then pass those through r.in.xyz, and r.patch the new values over the top of the old map.


* merge with Georectifier? (i.points, i.vpoints)
* merge with Georectifier? (i.points, i.vpoints)
Line 327: Line 267:
===== Category Labels =====
===== Category Labels =====


* Write with new r.category import tool
* Write with new {{cmd|r.category}} import tool
** ''Back-end component complete: r.category module is now updated to handle a rules= file and other goodies like dynamic labels''
** ''Back-end component complete: {{cmd|r.category}} module is now updated to handle a rules= file and other goodies like dynamic labels''


* Read with one of r.category, r.describe, r.report, r.stats, ???
* Read with one of {{cmd|r.category}}, {{cmd|r.describe}}, {{cmd|r.report}}, {{cmd|r.stats}}, ???
** probably need to add a new flag to one of those to print flat <tt>"%d %s", cat, label</tt>
** probably need to add a new flag to one of those to print flat <tt>"%d %s", cat, label</tt>
: or read the cats/ file directly, it's already flat ascii.
: or read the cats/ file directly, it's already flat ascii.
   
   
* how to deal with FP maps & cats?
* how to deal with FP maps & cats?
=== Command line ===
In order to provide a command line in all operating systems, there is a tab "Command console" available (with auto-completion support). It communicates directly with the Map Display window:
[[Image:Wxgui command line.png|350px|center|Command line]]


=== Cartography tools ===
=== Cartography tools ===


==== GUI for ps.map ====
==== GUI for {{Cmd|ps.map}} ====


'''Status:''' under development (Anna Kratochvilova).
'''Status:''' under development (Anna Kratochvilova).


More into at '''[[WxGUI Cartographic Composer]]'''.
Note: More info at '''[[WxGUI Cartographic Composer]]'''
 
<center>
{|
|-
| [[Image:CartographicComposer.png|350px|thumb|Cartographic Composer: draft mode]]
| [[Image:CCPreview.png|350px|thumb|Cartographic Composer: preview]]
|-
|}
</center>


==== Direct printing ====
==== Direct printing ====
Line 372: Line 327:
{|
{|
|-
|-
| [[Image:Wxgui-georectify-0.png|thumb|350px|center]] ||
| [[Image:Wxgui-georectify-0.png|thumb|350px|center|Georectifier (old interface)]] ||
[[Image:Wxgui-georectify-1.png|thumb|350px|center]]
[[Image:Wxgui-georectify-1.png|thumb|350px|center|Georectifier (old interface)]]
|-
|-
|}
|}
</center>
</center>


See also [[Georeferencing]].
[[Image:Georectifier berlin.png|thumb|Georectification of historical maps using a simplified OpenStreetmap reference (example Berlin) - new interface|450px|center]]


; Tutorials


* [http://gama.fsv.cvut.cz/~landa/grass/swf/georect.html Georectifing raster data]
See also [[Georeferencing]].


=== Profile Analysis Tool ===
=== Profile Analysis Tool ===
Line 399: Line 353:
=== Attribute table manager ===
=== Attribute table manager ===


;'''Status:''' prototype implemented.
'''Status:''' prototype implemented.


[http://grass.osgeo.org/grass64/manuals/html64_user/wxGUI.Attribute_Table_Manager.html Manual page].
See [[wxGUI Attribute Table Manager]] page and also {{cmd|wxGUI.Attribute_Table_Manager|desc=manual page}}.


[[Image:Grass-atm-example.png|center|thumb|640px|Attributes queries in wxGUI]]
[[Image:Grass-atm-example.png|center|thumb|640px|Attribute queries in wxGUI]]
[[Image:Wxgui-attribute-table-manager.png|center|thumb|350px|Attribute Table Manager]]
 
;Allows:
 
* To browse attribute data, perform SQL select statements
* Modify attribute data, insert new records to attribute table, delete existing records
* Highlight selected items in Map Display Window
* Extract selected items into new vector map layer
* Modify attribute table - add, drop, rename columns
* Modify vector map layer DB connestion settings - add, remove or modify layers


=== 3D view mode ===
=== 3D view mode ===


'''Status:''' under development (Google Summer of Code 2008/2010).
'''Status:''' prototype implemented (Google Summer of Code 2008/2010/2011).


See detailed information at [[wxNVIZ]] page and original TCL/TK {{cmd|version=64|nviz}} manual page.
See detailed information at [[wxNVIZ]] page and classic Tcl/Tk [[NVIZ]] pages.


[[Image:Wxnviz-volumes.png|640px|thumb|center|Displaying raster (surface), 2D vector and 3D raster (volume) in the 3D space.]]
[[Image:Wxnviz-volumes.png|640px|thumb|center|Displaying raster (surface), 2D vector and 3D raster (volume) in the 3D space.]]
Line 430: Line 374:
==== Ortho photos ====
==== Ortho photos ====


'''Status:''' development not started yet.
'''Status:''' GUI development not started yet, initial start of module updates like {{cmd|i.ortho.rectify|version=70}}


* To replace {{cmd|i.ortho.photo}} and friends
* To replace {{cmd|i.ortho.photo}} and friends
Line 436: Line 380:
==== wx.iclass ====
==== wx.iclass ====


'''Status:''' Under development.
'''Status:''' prototype implemented.
 
<!--
===== First prototype (AddOns) =====
===== First prototype (AddOns) =====


Line 463: Line 407:
* Needs a code cleanup
* Needs a code cleanup


===== Second prototype =====
===== Second prototype (trunk) =====
-->


* http://trac.osgeo.org/grass/wiki/wxGUIDevelopment/wxIClass
* See [[wxIClass]] page


=== Graphical Modeller ===
=== Graphical Modeller ===


'''Status:''' under development.
'''Status:''' prototype implemented.
 
[[File:WxGUI-modeler-if-else-0.png|500px|center]]


See [[wxGUI Modeler]] page for more information.
See [[wxGUI Graphical Modeler]] page for more information.


=== Extension Manager ===
=== Extension Manager ===


'''Status:''' under development
'''Status:''' prototype implemented


* [http://gama.fsv.cvut.cz/~landa/grass/swf/install-addons.html wxGUI Extension Manager]
Settings | Addons extensions | Install extension from addons
 
{{YouTube|buxsHVHLDBI|desc=wxGUI Extension Manager}}


[[Image:wxgui-em.png|center|thumb|500px|wxGUI Extension Manager]]
[[Image:wxgui-em.png|center|thumb|500px|wxGUI Extension Manager]]


=== Map Calculator ===
=== Raster Calculator ===


'''Status:''' prototype implemented
'''Status:''' prototype implemented. This is a frontend to {{cmd|r.mapcalc|version=70}}


[[Image:wxgui-mapcalc.png|center|thumb|500px|wxGUI Map Calculator]]
[[Image:wxgui-mapcalc.png|center|thumb|500px|wxGUI Map Calculator]]


=== Data Catalog ===
See also [[wxGUI/Video tutorials#Raster calculator|video tutorials]].


;'''Status:''' Under development.
=== GRASS Catalog ===


* [http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog Data Catalog]
'''Status:''' under development (in AddOns)
 
* [http://lsi.iiit.ac.in/grass_addons/ GRASS Catalog files]


<center>
<center>
{|
{|
|-
|-
| [[Image:Catalog.png|350px|thumb|center|Data Catalog ]]
| [[Image:GRASS Catalog1.png|350px|thumb|center|GRASS Catalog ]]
| [[Image:Aspect.png|350px|thumb|center|Data Catalog]]
| [[Image:GRASS Catalog2.png|350px|thumb|center|GRASS Catalog]]
|-
|-
|}
|}
Line 522: Line 473:


=== r.li.setup GUI ===
=== r.li.setup GUI ===
;'''Status:''' Under development.
'''Status:''' available as {{cmd|g.gui.rlisetup|version=70}} (former {{cmd|r.li.setup}})
 
Porting of {{cmd|r.li.setup}} in wxPython.
Some screenshots of developing version


<center>
<center>
<gallery perrow=2 widths=300 heights=200>
<gallery perrow=2 widths=300 heights=200>
Image:Rlisetup_first_frame.png | The first windows where you can select existing configuration file or create new one
Image:Rlisetup_first_frame.png | First frame of wizard for selecting existing configuration files or creating a new one
Image:Rlisetup wizard first page.png | First window of wizard
Image:Rlisetup wizard first page.png | Frame for selecting maps
Image:Rlisetup wizard keybord sampling frame.png | Choose the sampling frame
Image:G_gui_rlisetup_3.png | Frame for inserting sampling areas
Image:Rlisetup_wizard_sampling_areas.png | Choose the type of sampling area
Image:G_gui_rlisetup_4.png | Frame for defining rectangular moving window
Image:G_gui_rlisetup_5.png | Frame for defining circular moving window
Image:Rlisetup wizard keybord sampling frame.png | Frame for choosing the sampling frame with keyboard
Image:G gui rlisetup 7.png | Frame for drawing the sampling frame
Image:G gui rlisetup 8.png | Summary frame
</gallery>
</gallery>
<!-- equal to Image:Rlisetup_first_frame.png?
Image:Rlisetup_wizard_sampling_areas.png ‎| Choose the type of sampling area
-->
</center>
</center>


Line 542: Line 498:
For browsing manual pages is currently used web browser, the goal is to design integrated help system.
For browsing manual pages is currently used web browser, the goal is to design integrated help system.
: HB: ''We used to have one of these for viewing the help pages of Tcl/Tk NVIZ. We dropped it because it was a pain to maintain and generally outside our core mission so a distraction.''
: HB: ''We used to have one of these for viewing the help pages of Tcl/Tk NVIZ. We dropped it because it was a pain to maintain and generally outside our core mission so a distraction.''
=== Map Swipe ===
'''Status:''' prototype implemented.
This tool enables you to compare two raster maps covering the same area (e.g. compare maps from different year).
;Current features:
* orientation of swipe line can be horizontal or vertical
* zooming works in the same way as in [[#Map_display_window | Map Display]]
See more '''examples''' and videos at [[WxGUI Map Swipe]] page.
[[Image:Tsunami japan2011 sendai.jpg|center|thumb|500px|wxGUI Map Swipe for disaster management: Tsunami Japan 2011]]
=== Animation Tool ===
'''Status:''' prototype implemented in GRASS 7 (Anna Kratochvilova).
Animation tool is a replacement for {{cmd|xganim}}. It allows to animate a series of GRASS raster maps or a space time raster dataset ([http://trac.osgeo.org/grass/wiki/Grass7/TemporalExtension see GRASS GIS temporal extension]).
[[Image:WxGUI animation tool.jpg|center|500px|wxGUI animation tool]]
<center>More info at '''[[WxGUI Animation Tool]]'''.</center>
=== Vector Network Analysis Tool ===
'''Status:''' prototype implemented.
See more examples and video at [[WxGUI Vector Network Analysis Tool]] page.
== WMS support ==
{{YouTube|vfNw4SAP2Uc}}


== Known issues ==
== Known issues ==
Line 615: Line 605:
| ?
| ?
| ?
| ?
|-
| 64bit MS Windows 7
| win32
| nt
| Windows_NT
| Windows
|-
|}
|}


Line 657: Line 654:
* Idrisi: similar to SAGA and Ossim (http://www.clarklabs.org/products/idrisi-taiga.cfm)
* Idrisi: similar to SAGA and Ossim (http://www.clarklabs.org/products/idrisi-taiga.cfm)
* MapInfo (Pitney Bowes): Seems to be like Saga (http://www.pbinsight.com/support/training/video-tutorials/)
* MapInfo (Pitney Bowes): Seems to be like Saga (http://www.pbinsight.com/support/training/video-tutorials/)
* Whitebox Geospatial Analysis Tools: http://www.uoguelph.ca/~hydrogeo/Whitebox/screenshots.html


'''''See also'''''
'''''See also'''''
Line 666: Line 664:
== Useful links ==
== Useful links ==


* [http://www.poromenos.org/tutorials/python 10 minutes Python tutorial] for programmers of other languages
* [http://www.poromenos.org/tutorials/python 10 minute Python tutorial] for programmers of other languages


== References ==
== References ==
Line 674: Line 672:


{{wxGUI}}
{{wxGUI}}
[[Category: Documentation]]

Latest revision as of 19:03, 14 April 2021

Browse also wxGUI related articles or screenshots.

See also GRASS GUI, and GRASS and Python.

For developer-related issues see Trac wxGUI page and [ GitHub GUI issues].

Overview

Historical development documents:

Contributing:

Development

Do you want to help with the development?

  • basic Python programming ability required
  • GUI programming experience welcomed (especially wxPython)
  • GRASS user (or better developer) experience

How to get write access to the GRASS GIS code repository.

See example of wxGUI module in core: doc/gui/wxpython/example/

Screenshots

Video tutorials

Components

Core components

Layer Manager

Status: prototype implemented.

The GRASS GIS Layer Manager provides an interactive graphical interface to GRASS commands. The Layer Manager includes a set of pull-down menus for all GRASS GIS functions (analysis, file I/O, GIS configuration and management), toolbar that manage display map layers in map display windows, layer tree in which map layers to display are organized, command output window and integrated command line prompt.

Import tool

The GUI offers a convenient tool for single map and bulk import:

Map display window

Each Map display window has a unique set of layers to display and region setting (zoom). The map display window includes main toolbar with basic tools including zooming, panning, data querying, simple analyse functions (measure, profile, histogram, etc.), overlay management, etc. From main toolbar are accessible additional toolbars, currently only Digitization tool is available. Under development is Georectification tool.

Map query tool

Raster and vector maps can be queried at cursor position:

Raster and vector map query (select map to query in layer manager)

Map measure tool

Raster and vector maps can be measured with a digitizer (line or self-closing area).

Note for LatLong locations: The lengths/areas are returned also in metric units.

Measurements of line length and area size (latitude-longitude location example with SRTM

GUI dialogs

Status: prototype implemented.

Generated from XML using --interface-description.

E.g. d.rgb --help

Description:
 Displays three user-specified raster map layers as red, green, and blue overlays in the active graphics frame.

Keywords:
 display

Usage:
 d.rgb [-ox] red=name green=name blue=name [--verbose] [--quiet]

Flags:
  -o   Overlay (non-null values only)
  -x   Don't add to list of commands in monitor
 --v   Verbose module output
 --q   Quiet module output

Parameters:
    red   Name of raster map to be used for <red>
  green   Name of raster map to be used for <green>
   blue   Name of raster map to be used for <blue>

becomes with d.rgb --interface-description

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE task SYSTEM "[http://trac.osgeo.org/grass/browser/grass/trunk/gui/xml/grass-interface.dtd grass-interface.dtd]">
  <task name="d.rgb">
        <description>
                Displays three user-specified raster map layers as red, green, and blue overlays in the active graphics frame.
        </description>
        <keywords>
                display
        </keywords>
        <parameter name="red" type="string" required="yes" multiple="no">
                <description>
                        Name of raster map to be used for &lt;red&gt;
                </description>
                <keydesc>
                        <item order="1">name</item>
                </keydesc>
                <gisprompt age="old" element="cell" prompt="raster" />
        </parameter>
        <parameter name="green" type="string" required="yes" multiple="no">
                <description>
                        Name of raster map to be used for &lt;green&gt;
                </description>
                <keydesc>
                        <item order="1">name</item>
                </keydesc>
                <gisprompt age="old" element="cell" prompt="raster" />
        </parameter>
        <parameter name="blue" type="string" required="yes" multiple="no">
                <description>
                        Name of raster map to be used for &lt;blue&gt;
                </description>
                <keydesc>
                        <item order="1">name</item>
                </keydesc>
                <gisprompt age="old" element="cell" prompt="raster" />
        </parameter>
        <flag name="o">
                <description>
                        Overlay (non-null values only)
                </description>
        </flag>
        <flag name="x">
                <description>
                        Don't add to list of commands in monitor
                </description>
        </flag>
        <flag name="verbose">
                <description>
                        Verbose module output
                </description>
        </flag>
        <flag name="quiet">
                <description>
                        Quiet module output
                </description>
        </flag>
  </task>

which is then used to generate:

Startup GUI (welcome screen)

grass78 -gui

Location wizard

Status: prototype implemented.

Wizard for creating new GRASS project location based on:

  • Coordinate system
  • EPSG code
  • Georeferenced file
  • PROJ.4 string
  • XY

See also GRASS Location Wizard.

Location wizard

Digitizer

Vector digitizer

Status: prototype implemented.

See also manual page

See also GRASS Digitizing tool and wxGUI Vector Digitizer.

Replacement of v.digit module integrated into Map display window (Screenshots).

Raster digitizer

Status: development started in GRASS 7 (2014) --> implemented in 2020

Probably write a front end for r.in.poly, that's all the old r.digit is.
Idea: get cell center coords and new values from GUI interaction, then pass those through r.in.xyz, and r.patch the new values over the top of the old map.
Current status:
Raster map editor in GRASS 7
  • merge with Georectifier? (i.points, i.vpoints)
Category Labels
  • Write with new r.category import tool
    • Back-end component complete: r.category module is now updated to handle a rules= file and other goodies like dynamic labels
or read the cats/ file directly, it's already flat ascii.
  • how to deal with FP maps & cats?

Command line

In order to provide a command line in all operating systems, there is a tab "Command console" available (with auto-completion support). It communicates directly with the Map Display window:

Command line
Command line

Cartography tools

GUI for ps.map

Status: under development (Anna Kratochvilova).

Note: More info at WxGUI Cartographic Composer

Cartographic Composer: draft mode
Cartographic Composer: preview

Direct printing

Status: development not started yet.

Implement direct printing of map canvas content using GRASS PS driver or Cairo driver.

Georectifier

Status: prototype implemented.

Georectifier (old interface)
Georectifier (old interface)
Georectification of historical maps using a simplified OpenStreetmap reference (example Berlin) - new interface


See also Georeferencing.

Profile Analysis Tool

Status: prototype implemented.

Attribute table manager

Status: prototype implemented.

See wxGUI Attribute Table Manager page and also manual page.

Attribute queries in wxGUI

3D view mode

Status: prototype implemented (Google Summer of Code 2008/2010/2011).

See detailed information at wxNVIZ page and classic Tcl/Tk NVIZ pages.

Displaying raster (surface), 2D vector and 3D raster (volume) in the 3D space.

Imagery tools

Status: (re)development not started in earnest yet. Some behind-the-scenes code has been prepared, but not much.

Volunteers welcome!

Ortho photos

Status: GUI development not started yet, initial start of module updates like i.ortho.rectify

wx.iclass

Status: prototype implemented.

Graphical Modeller

Status: prototype implemented.

See wxGUI Graphical Modeler page for more information.

Extension Manager

Status: prototype implemented

Settings | Addons extensions | Install extension from addons


wxGUI Extension Manager
wxGUI Extension Manager

Raster Calculator

Status: prototype implemented. This is a frontend to r.mapcalc

wxGUI Map Calculator

See also video tutorials.

GRASS Catalog

Status: under development (in AddOns)

GRASS Catalog
GRASS Catalog
Current Features
  • copy, delete, rename map layers (raster & vector) in current mapset.
  • view raster & vector map layers from any location and any mapset.
  • Provides a GUI wrapper for r.info & v.info grass commands while viewing map layers in mapwindow.
  • Can connect with OssimPlanet using PlanetSasha
  • Add and Remove maps from GRASS GIS to OssimPlanet(Send to OssimPlanet/Remove from OssimPlanet)
To be implemented
  • copy, move map layers in different mapsets.
  • View DBF files as tables.
  • Copy, delete, rename DBF files.
  • Modify attribute tables.
  • Create a properties window to display Coordinate system & projection for each map
  • ...

Alternative: http://code.google.com/p/wxgis/

r.li.setup GUI

Status: available as g.gui.rlisetup (former r.li.setup)

Help browser

Status: development not started yet.

For browsing manual pages is currently used web browser, the goal is to design integrated help system.

HB: We used to have one of these for viewing the help pages of Tcl/Tk NVIZ. We dropped it because it was a pain to maintain and generally outside our core mission so a distraction.

Map Swipe

Status: prototype implemented.

This tool enables you to compare two raster maps covering the same area (e.g. compare maps from different year).

Current features
  • orientation of swipe line can be horizontal or vertical
  • zooming works in the same way as in Map Display

See more examples and videos at WxGUI Map Swipe page.

wxGUI Map Swipe for disaster management: Tsunami Japan 2011

Animation Tool

Status: prototype implemented in GRASS 7 (Anna Kratochvilova).

Animation tool is a replacement for xganim. It allows to animate a series of GRASS raster maps or a space time raster dataset (see GRASS GIS temporal extension).

wxGUI animation tool
wxGUI animation tool
More info at WxGUI Animation Tool.

Vector Network Analysis Tool

Status: prototype implemented.

See more examples and video at WxGUI Vector Network Analysis Tool page.

WMS support

Known issues

Platform specific

For the GUI to know what platform it's on, and therefore apply platform specific commands (e.g. append '.exe' to programs) it has to test what platform it is running on. Here we take the experimental approach to learning what's best to use. Please add or generalize this list as you can.

Platform information - start Python from the command line then issue

 import sys
 sys.platform
 
 import os
 os.name
 os.environ['OS']
 
 import platform
 platform.system()
  • Results:
Platform sys.platform os.name os.environ['OS'] platform.system()
32bit GNU/Linux linux2 posix n/a Linux
64bit GNU/Linux linux2 posix n/a Linux
32bit Mac OSX (PowerPC G4) darwin posix n/a Darwin
64bit Mac OSX (Intel) [1] see note ? ? ?
32bit MS Windows XP win32 nt Windows_NT Windows
64bit MS Windows Vista win32 nt Windows_NT Windows
32bit MS Windows XP (Cygwin) win32 ? ? ?
64bit MS Windows 7 win32 nt Windows_NT Windows

[1] On Fri, May 29, 2009 at 10:49 PM, William Kyngesburye wrote:

Right now the GUI only runs 32bit, even if the rest of GRASS is 64bit, because it's not yet possible for wxPython to be 64bit. It comes out the same as PPC 32bit - no distinction between ppc/intel or 32/64 bit, it's all darwin. (yes, I checked, and I have a custom 64bit python executable to verify)

General GUI Design

Layout

For some users, the current approach of separate windows (SDI) leads to a windows flooding. Especially on large monitors or dual screen systems catching the wxGUI windows can be tedious when they appear on separate monitors (depends on windows manager, the much used KDE scatters typically the wxGUI windows all over the screen real estate). Almost each task generates a new wxGUI window which is freely floating around on the screen: example 1 and example 2. On a dual-screen this may sum up to 50cm of distance!

Proposed solutions:

  • implement optional layout similar to QGIS (with a legend attached to each display) or GSDView etc) (see figure below)
  • implement optional magnetic docking of the layer manager and display windows to keep the windows closer
  • do not allow module windows to stay open. That is, get rid of the apply button and force each window to close when OK is pressed (QGIS/ArcGIS approach). This leaves only the display(s) and single legend/layer manager on desktop.
  • If you otherwise wish to continue using your current WM, file a bug report with them asking for better multi-head support and get the problem fixed at the source. (there probably already is a bug filed with tips in it)
Current wxGUI layout with detached window components
Proposal for wxGUI layout modification (Recomposition of existing toolbars, mapview and menus)

New solution: see WxGUI#Data_Catalog above.


What others do

SDI: (each document opened in application occupies a window on the desktop)

  • GRASS: display window for each document (i.e., set of maps displayed) opened on desktop; one legend/layer manager window for all display windows; ; each module/function opens a separate window on the desktop
  • QGIS: display window for each document (i.e., set of maps displayed) opened on the desktop; legend/layer manager window attached to each display window; each module/function opens a separate window on the desktop (e.g. http://grass.osgeo.org/grass61/screenshots/images/qgis08_grass6_toolbox.png)
  • ArcGIS: similar to QGIS with combined legend/display for each document (set of maps displayed); each module/function opens a separate window on the desktop (e.g. http://upload.wikimedia.org/wikipedia/en/9/92/ArcMap.jpg)
  • MapInfo (pre Pitney Bowes): each document opens a map display window on the desktop; single legend/toolbox opened on the desktop controls all visible documents (i.e., map displays); each module/function opens a separate window on the desktop (similar to current GRASS layout)

MDI: (a single frame is opened for the application on the desktop; all documents opened inside the application frame)

See also

Useful links

References