wxGUI.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <h2>DESCRIPTION</h2>
  2. <b>wxGUI</b> is a new generation of the GUI for GRASS GIS. It's a successor
  3. of the <em><a href="gis.m.html">Tcl/Tk GUI</a></em>.
  4. <p>
  5. To start the wxGUI automatically for each session run GRASS with
  6. <tt>wxpython</tt> switch
  7. <div class="code"><pre>
  8. grass -wxpython
  9. </pre></div>
  10. or define in your <tt>.grassrc7</tt> file 'GRASS_GUI' variable
  11. <div class="code"><pre>
  12. GRASS_GUI: wxpython
  13. </pre></div>
  14. The GUI can be quit by selecting the 'File->Exit' menu item. The GUI
  15. can be restarted from the GRASS command line prompt by
  16. typing
  17. <div class="code"><pre>
  18. g.gui wxpython
  19. </pre></div>
  20. or
  21. <div class="code"><pre>
  22. g.gui wxpython workspace=file.gxw
  23. </pre></div>
  24. to launch wxGUI and load workspace file on start-up.
  25. <p>
  26. The GUI is composed by <em>two</em> main components:
  27. <ul>
  28. <li><b>Layer Manager</b> which allows users to run different GRASS
  29. modules from menu, includes map layer management, integrated
  30. command-line prompt, and command output window tab.</li>
  31. <li><b>Map Display Window</b> which integrates basic tools for
  32. zooming, panning, data querying, decorations (north arrows,
  33. barscale, etc.). The user is allowed to start various map display
  34. instances during one session. The Layer Manager registers Map
  35. Display Windows using different tabs.</li>
  36. </ul>
  37. <h3>Layer Manager</h3>
  38. The <em>Layer Manager</em> provides an interactive graphical interface to GRASS
  39. commands. It includes a set of pull-down menus for all GRASS GIS
  40. functions (analysis, file I/O, GIS configuration and management), the
  41. toolbar to manage display map layers, a layer tree frame in which map layers
  42. to display are organized, command output window tab, and interactive
  43. command line prompt.
  44. <center>
  45. <br><img src="wxGUI_layer_manager.jpg" border="1"><br><br>
  46. </center>
  47. The top left button of the toolbar opens a new <em>Map Display
  48. Window</em>. Each map display has a unique set of layers to display
  49. and region settings. Other toolbar buttons add layers of different
  50. types for display in the selected map display window. There are
  51. additional buttons for saving or opening workspace file, and others.
  52. <p>
  53. Map layers are listed in the window frame below the toolbar. Layers can
  54. include raster and vector maps, text, map decorations (scale and
  55. north arrow, and grids), and commands (where any GRASS command can be
  56. written). Layers are displayed in as arranged in the layer tree: the
  57. bottom layer is displayed first and the top is displayed last, as if
  58. layers are a series of stacked overlays.
  59. <p>
  60. The check box to the left of each layer makes it active or inactive
  61. for display. Only active layers are displayed/redisplayed when the
  62. display button is pressed. Layers can be organized into groups; entire
  63. groups can be activated or deactivated for display. Layer tree
  64. composition can be saved to a workspace file and opened in subsequent
  65. sessions, restoring all layers and their display options.
  66. <h4>Layer Manager Toolbar</h4>
  67. <dl>
  68. <dt><img src="icons/silk/application_add.png">&nbsp;
  69. <img src="icons/grass/gui-startmon.gif"> Open new Map Display Window</dt>
  70. <dd>Opens a new map display and creates empty layer tree tab in Layer Manager.</dd>
  71. <dt><img src="icons/silk/page_white.png">&nbsp;
  72. <img src="icons/grass/file-new.gif">Creates new workspace file</dt>
  73. <dd>Removes all layers in the layer tree and creates a new, empty tree
  74. where new layers can be added.</dd>
  75. <dt><img src="icons/silk/page_white_get.png">&nbsp;
  76. <img src="icons/grass/file-new.gif">Load map layers (raster, vector) into workspace</dt>
  77. <dd>Loads selected raster or vector maps into current layer tree.</dd>
  78. <dt><img src="icons/silk/folder.png">&nbsp;
  79. <img src="icons/grass/file-open.gif">Open an existing workspace file</dt>
  80. <dd>Opens an previously saved workspace file, containing a set of display
  81. layers and their option settings.</dd>
  82. <dt><img src="icons/silk/page_save.png">&nbsp;
  83. <img src="icons/grass/file-save.gif"> Save layers composition to workspace
  84. file</dt>
  85. <dd>Saves current set of layers and their options to a workspace
  86. file.</dd>
  87. <dt><img src="icons/silk/image_add.png">&nbsp;
  88. <img src="icons/grass/element-cell.gif"> Add raster-based map layer</dt>
  89. <dd>Adds raster map to layer tree, see <em><a href="d.rast.html">d.rast</a></em>. Includes also shaded relief map, RGB or HIS map or raster flow arrows map.</dd>
  90. <dt><img src="icons/silk/picture_empty.png">&nbsp;
  91. <img src="icons/grass/module-d.shadedmap.gif"> Add shaded relief map layer</dt>
  92. <dd>Adds shaded relief raster map layer,
  93. see <em><a href="d.shadedmap.html">d.shadedmap</a></em>.</dd>
  94. <dt><img src="icons/silk/rgb.png">&nbsp;
  95. <img src="icons/grass/channel-rgb.gif"> Add RGB raster layer</dt>
  96. <dd>Combines and displays three raster maps defined as red, green, and blue
  97. channels, see <em><a href="d.rgb.html">d.rgb</a></em>.</dd>
  98. <dt><img src="icons/silk/his.png">&nbsp;
  99. <img src="icons/grass/channel-his.gif"> Add HIS raster layer</dt>
  100. <dd>Combines and displays two or three raster maps defined as hue,
  101. intensity, and (optionally) saturation channels,
  102. see <em><a href="d.his.html">d.his</a></em>.</dd>
  103. <dt><img src="icons/silk/arrow_out.png">&nbsp;
  104. <img src="icons/grass/module-d.rast.arrow.gif"> Add raster arrows layer</dt>
  105. <dd>Adds map of raster cells with directional arrows drawn. Arrow
  106. direction and length are determined by separate aspect/directional map
  107. and (optional) slope/intensity map,
  108. see <em><a href="d.rast.arrow.html">d.rast.arrow</a></em>.</dd>
  109. <dt><img src="icons/silk/map_add.png">&nbsp;
  110. <img src="icons/grass/element-vector.gif"> Add vector-based map layer</dt>
  111. <dd>Adds a vector map layer, see <em><a href="d.vect.html">d.vect</a></em>. Includes also thematic vector map or thematic charts layer.</dd>
  112. <dt><img src="icons/silk/thematic.png">&nbsp;
  113. <img src="icons/grass/module-d.vect.thematic.gif"> Add thematic map layer
  114. (for all vector types)</dt>
  115. <dd>Adds layer for thematic display values from a numeric attribute
  116. column associated with a vector map. Options include: thematic display
  117. type (graduated colors or point sizes), methods for creating display
  118. intervals, SQL query of attribute column to limit vector objects to
  119. display, control of point icon types and sizes, control of thematic
  120. color schemes, creation of legend for thematic map, and saving the
  121. results of thematic mapping to a ps.map instructions file for later
  122. printing,
  123. see <em><a href="d.vect.thematic.html">d.vect.thematic</a></em>.</dd>
  124. <dt><img src="icons/silk/chart_bar.png">&nbsp;
  125. <img src="icons/grass/module-d.vect.chart.gif"> Add thematic charts layer
  126. (for vector points)</dt>
  127. <dd>Adds layer in which pie or bar charts can be automatically created
  128. at vector point locations. Charts display values from selected columns
  129. in the associated attribute table. Options include: chart type, layer
  130. and attributes to chart, chart colors, and chart size (fixed or based
  131. on attribute column),
  132. see <em><a href="d.vect.chart.html">d.vect.chart</a></em>.</dd>
  133. <dt><img src="icons/silk/cog_add.png">&nbsp;
  134. <img src="icons/grass/gui-cmd.gif"> Add command layer</dt>
  135. <dd>Adds a layer in which a GRASS GIS command or command list can be entered.
  136. For a command list use the pipe symbol as ";" as separator.
  137. For example:
  138. <div class="code"><pre>
  139. d.rast soils;d.rast -o roads;d.vect streams col=blue
  140. </pre></div>
  141. Note that when an option of the command contains spaces, you need to
  142. escape them with the backslash ('\') character, for example:
  143. <div class="code"><pre>
  144. d.text text=Population\ density
  145. </pre></div>
  146. </dd>
  147. <dt><img src="icons/silk/folder_add.png">&nbsp;
  148. <img src="icons/grass/gui-group.gif"> Add layer group</dt>
  149. <dd>Adds an empty layer group. Layers can then be added to the group.</dd>
  150. <dt><img src="icons/silk/images.png">&nbsp;
  151. <img src="icons/grass/module-d.grid.gif"> Add overlay grids and lines</dt>
  152. <dd>Adds layer to display regular grid (for all locations), or geodesic and
  153. rhumblines (for latitude/longitude locations only), see <em><a href="d.grid.html">d.grid</a>, <a href="d.geodesic.html">d.geodesic</a>, <a href="d.rhumbline.html">d.rhumbline</a></em>.</dd>
  154. <dt><img src="icons/silk/tag_blue_add.png">&nbsp;
  155. <img src="icons/grass/module-d.labels.gif"> Add labels layer for vector
  156. objects (from existing labels file)</dt>
  157. <dd>Add raster text layer from a labels file for vector objects
  158. created with the <em><a href="v.label.html">v.label</a></em> module
  159. (accessed from button in options panel). A labels file can also be
  160. created with a text editor,
  161. see <em><a href="d.labels.html">d.labels</a></em>.</dd>
  162. <dt><img src="icons/silk/bin_closed.png">&nbsp;
  163. <img src="icons/grass/edit-cut.gif"> Remove layer for layer tree</dt>
  164. <dd>Removes selected layer or layer group from layer tree.</dd>
  165. <dt><img src="icons/silk/application_view_columns.png">&nbsp;
  166. <img src="icons/grass/db-values.gif"> Open <a href="wxGUI.Attribute_Table_Manager.html">Attribute Table Manager</a> for selected vector map</dt>
  167. <dd>Displays attribute data of selected vector map.</dd>
  168. </dl>
  169. <h3>Map Display Window</h3>
  170. This component includes toolbar area (set of toolbars), map canvas
  171. where a map composition is displayed, and the statusbar.
  172. <center>
  173. <br><img src="wxGUI_map_display.jpg" alt="Map Display Window"><br><br>
  174. </center>
  175. Each Map Display Window has a unique layer tree and region
  176. setting. The window contains a toolbar with buttons to manage the map
  177. in the display (zoom and pan), providing tools for query and distance
  178. measurement, and exporting or printing the display.
  179. <p>
  180. In the statusbar can be displayed the geographic coordinates under the
  181. cursor, current geographical region extent, computational region
  182. (including graphical visualization in map display), map display
  183. geometry (number of rows, columns, resolution) and map scale.
  184. <p>
  185. It is important to note that zooming in any display will
  186. have <em>no</em> effect on the 'computational region' setting (set
  187. with <em><a href="g.region.html">g.region</a></em>). Only by selecting
  188. the 'Set current region to match display' item in the zoom menu (in
  189. the map display toolbar) will the current display extents be copied to
  190. the computational region extents.
  191. <h4>Map Display Toolbar</h4>
  192. <dl>
  193. <dt><img src="icons/silk/map_go.png">&nbsp;
  194. <img src="icons/grass/gui-display.gif"> Display active layers (current region)</dt>
  195. <dd>Displays all active layers from layer tree at current resolution
  196. and region extents for that map display window.</dd>
  197. <dt><img src="icons/silk/arrow_refresh.png">&nbsp;
  198. <img src="icons/grass/gui-redraw.gif"> Re-render and display all active
  199. layers and zoom to current region</dt>
  200. <dd>Resets the region to the display resolution and extents and forces
  201. re-display and re-rendering all active layers.</dd>
  202. <dt><img src="icons/silk/cross.png">&nbsp;
  203. <img src="icons/grass/gui-erase.gif"> Erase display content</dt>
  204. <dd>Erases the currently selected map display to a white background;
  205. also removes all frames,
  206. see <em><a href="d.erase.html">d.erase</a>, <a href="d.frame.html">d.frame
  207. -e</a></em>.</dd>
  208. <dt><img src="icons/silk/cursor.png">&nbsp;
  209. <img src="icons/grass/gui-pointer.gif"> Arrow cursor</dt>
  210. <dd>Select arrow cursor for map display.</dd>
  211. <dt><img src="icons/silk/information.png">&nbsp;
  212. <img src="icons/grass/gui-query.gif"> Query tool (select a map first)</dt>
  213. <dd>Query selected raster, RGB raster (all three map channels will be
  214. queried), or vector map(s) using the mouse. Map(s) must be selected
  215. before query. Vector charts and thematic vector maps cannot be
  216. queried. The results of the query will be displayed in the console
  217. window,
  218. see <em><a href="r.what.html">r.what</a>, <a href="v.what.html">v.what</a></em>.</dd>
  219. <dt><img src="icons/silk/arrow_out.png">&nbsp;
  220. <img src="icons/grass/gui-pan.gif"> Pan</dt>
  221. <dd>Interactive selection of a new center of view in the active
  222. display monitor. Drag the pan cursor while pressing the left mouse
  223. button to pan. Panning changes the location of the region displayed
  224. but not the size of the area displayed or the resolution. Panning
  225. does <em>not</em> affect the computational region for other GIS
  226. processes, see <em><a href="g.region.html">g.region</a></em>.</dd>
  227. <dt><img src="icons/silk/zoom_in.png">&nbsp;
  228. <img src="icons/grass/gui-zoom_in.gif"> Zoom in</dt>
  229. <dd>Interactive zooming with the mouse in the active display monitor.
  230. Drawing a box or just click with the mouse (left button) and zoom-in
  231. cursor causes the display to zoom in so that the area defined by the
  232. box fills the display. The map resolution is not changed. Clicking
  233. with the zoom-in cursor causes the display to zoom in by 30%, centered
  234. on the point where the mouse is clicked. Zooming resets the display
  235. region extents (both size and location of area displayed). It
  236. does <em>not</em> affect the computational region for other GIS
  237. processes, see <em><a href="g.region.html">g.region</a></em>.</dd>
  238. <dt><img src="icons/silk/zoom_out.png">&nbsp;
  239. <img src="icons/grass/gui-zoom_out.gif"> Zoom out</dt>
  240. <dd>Interactive zooming with the mouse in the active display monitor.
  241. Drawing a box or just click with the mouse (left button) and zoom-out
  242. cursor causes the display to zoom in so that the area displayed
  243. shrinks to fill the area defined by the box. The map resolution is not
  244. changed. Clicking with the zoom-out cursor causes the display to zoom
  245. out by 30%, centered on the point where the mouse is clicked. Zooming
  246. resets the display region extents (both size and location of area
  247. displayed). It does <em>not</em> affect the computational region for
  248. other GIS processes,
  249. see <em><a href="g.region.html">g.region</a></em>.</dd>
  250. <dt><img src="icons/silk/zoom_back.png">&nbsp;
  251. <img src="icons/grass/gui-zoom_back.gif"> Revert zoom</dt>
  252. <dd>Returns to the previous zoom. Up to 10 levels of zoom back are
  253. maintained, see <em><a href="g.region.html">g.region</a></em>.</dd>
  254. <dt><img src="icons/silk/zoom.png">&nbsp;
  255. <img src="icons/grass/gui-mapzoom.gif"> Zoom menu</dt>
  256. <dd>Automatic zoom settings menu. Zoom to match the extents of a selected
  257. map, zoom to match the computational region (set with
  258. <em>g.region</em>), zoom to match the extents of a saved region or
  259. save the current extents to a named region file, or to set
  260. computational region (the mapset's <tt>WIND</tt> file) to match the
  261. current display extents (does not change the resolution).
  262. See <em><a href="g.region.html">g.region</a></em>.</dd>
  263. <dt><img src="icons/silk/application_lightning.png">&nbsp;
  264. <img src="icons/grass/gui-rastanalyze.gif"> Analyze menu</dt>
  265. <dd>Contains functions for distance measurement, creating histogram or
  266. profile tool.</dd>
  267. <dt><img src="icons/silk/sum.png">&nbsp;
  268. <img src="icons/grass/gui-measure.gif"> Distance measurement tool</dt>
  269. <dd>Interactive measurement of lengths defined with the mouse. The
  270. length of each segment and the cumulative length of all segments
  271. measuered is displayed in the command output window frame. Lengths are
  272. measured in the current measurement unit,
  273. see <em><a href="d.measure.html">d.measure</a></em>.</dd>
  274. <dt><img src="icons/silk/wand.png">&nbsp;
  275. <img src="icons/grass/gui-profile.gif"> Profile tool</dt>
  276. <dd>Interactively create profile of a raster map. Profile transect is
  277. drawn with the mouse in map display. The profile may be of the
  278. displayed map or a different map,
  279. see <em><a href="gm_profile.html">Profile Tool help
  280. page</a></em>.</dd>
  281. <dt><img src="icons/silk/chart_bar.png">&nbsp;
  282. <img src="icons/grass/module-d.histogram.gif"> Display histogram of selected raster map</dt>
  283. <dd>Displays histogram of selected raster map or image in new window,
  284. see <em><a href="d.histogram.html">d.histogram</a></em>.</dd>
  285. <dt><img src="icons/silk/overlays.png">&nbsp;
  286. <img src="icons/grass/gui-rastanalyze.gif"> Add overlay</dt>
  287. <dd>Adds overlay to map display like barscale, north arrow, text.</dd>
  288. <dt><img src="icons/silk/page_white_picture.png">&nbsp;
  289. <img src="icons/grass/module-d.barscale.gif"> Add scalebar and north arrow</dt>
  290. <dd>Adds layer to display a combined scalebar and north arrow. Options
  291. include scalebar placement (using screen coordinates or a mouse),
  292. scalebar format, and scalebar colors,
  293. see <em><a href="d.barscale.html">d.barscale</a></em>.</dd>
  294. <dt><img src="icons/silk/page_green.png">&nbsp;
  295. <img src="icons/grass/module-d.legend.gif"> Add legend of raster map</dt>
  296. <dd>Adds layer to display with legend of selected raster map,
  297. see <em><a href="d.legend.html">d.legend</a></em>.</dd>
  298. <dt><img src="icons/silk/textfield_add.png">&nbsp;
  299. <img src="icons/grass/module-d.text.gif"> Add text layer</dt>
  300. <dd>Adds layer to display a line of text using default GRASS font
  301. (selected with <em><a href="d.font.html">d.font</a></em>). Options
  302. include: text placement (screen coordinates); and text size, bolding,
  303. and color, see <em><a href="d.text.html">d.text</a></em>.</dd>
  304. <dt><img src="icons/silk/picture_save.png">&nbsp;
  305. <img src="icons/grass/file-save.gif"> Export map display</dt>
  306. <dd>Exports visible map display to different raster graphic formats.</dd>
  307. <dt><img src="icons/silk/printer.png">&nbsp;
  308. <img src="icons/grass/file-print.gif"> Print map</dt>
  309. <dd>Prints map on the UNIX <i>lpr</i> printer or PostScript device;
  310. saves visible map display (including PostScript text and labels) to PDF
  311. or EPS file. Requires <tt>ghostscript</tt> for all output except EPS.</dd>
  312. </dl>
  313. <h2>CONFIGURATION</h2>
  314. User preferences dialog ('Config->Preferences') enables configuration
  315. of various options.
  316. <h3>Icon Theme</h3>
  317. Currently are supported two icon theme sets:
  318. <ul>
  319. <li>original <em>GRASS theme</em></li>
  320. <li><em>Silk theme</em> based
  321. on <a href="http://www.famfamfam.com/lab/icons/silk/">Silk icon
  322. set</a>, v1.3</li>
  323. </ul>
  324. <h2>SEE ALSO</h2>
  325. <em>
  326. <a href="wxGUI.Vector_Digitizing_Tool.html">Vector digitizing tool</a>,
  327. <a href="wxGUI.Attribute_Table_Manager.html">Attribute Table Manager</a>,
  328. <a href="wxGUI.Nviz.html">Nviz extension</a>
  329. </em>
  330. <p>
  331. See also <a href="http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS">Wiki</a> page.
  332. <p>
  333. <em>
  334. <a href="gis.m.html">TCL/TK-based GIS Manager</a>,
  335. <a href="d.m.html">TCL/TK-based Display Manager</a>
  336. </em>
  337. <h2>AUTHORS</h2>
  338. (Alphabetically ordered)<br><br>
  339. Michael Barton,<br>
  340. Daniel Calvelo Aros,<br>
  341. Jachym Cepicky,<br>
  342. Martin Landa, FBK-irst, Trento, Italy
  343. <p>
  344. <i>$Date$</i>