wxGUI.html 18 KB

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