g.gui.psmap.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!-- meta page description: wxGUI Cartographic Composer -->
  2. <!-- meta page index: wxGUI -->
  3. <h2>DESCRIPTION</h2>
  4. <p>
  5. <b>wxGUI Cartographic Composer</b> also called <em>wx.psmap</em> is
  6. a <em><a href="wxGUI.html">wxGUI</a></em> extension which allows the
  7. user to create interactively hardcopy map outputs. This tool
  8. generates <em><a href="ps.map.html">ps.map</a></em> configuration file
  9. and then runs <em><a href="ps.map.html">ps.map</a></em> to create
  10. PostScript output. There are two modes - <em>Draft mode</em> for map
  11. composing and <em>Preview mode</em>
  12. (requires <a href="http://www.pythonware.com/products/pil/">Python
  13. Imaging Library</a>) to see how the result will look like. In draft
  14. mode map features (like legend or scalebar) are represented by a
  15. colored rectangle with a label.
  16. <p>
  17. Possible output files:
  18. <ul>
  19. <li> <em><a href="ps.map.html">ps.map</a></em> instructions file
  20. <li> PostScript/EPS file
  21. <li> PDF (using ps2pdf)
  22. </ul>
  23. <center>
  24. <br>
  25. <img src="psmap_frame.jpg" border="1" alt="wxGUI Cartographic Composer">
  26. <br><br>
  27. </center>
  28. <p>
  29. Cartographic Composer enables to load in saved instructions file. It
  30. works better with files created by wx.psmap (more tested).
  31. <p>
  32. Currently supported <em><a href="ps.map.html">ps.map</a></em> instructions:
  33. <ul>
  34. <li> paper
  35. <li> maploc
  36. <li> scale
  37. <li> border
  38. <li> raster
  39. <li> colortable
  40. <li> vpoints
  41. <li> vlines
  42. <li> vareas
  43. <li> vlegend
  44. <li> text
  45. <li> scalebar
  46. <li> mapinfo
  47. <li> point
  48. <li> line
  49. <li> rectangle
  50. </ul>
  51. <h3>CARTOGRAPHIC COMPOSER TOOLBAR</h3>
  52. <dl>
  53. <dt><img src="icons/script-save.png" alt="icon">&nbsp;
  54. <em>Generate instructions file</em></dt>
  55. <dd>Generates and saves text file with mapping instructions.</dd>
  56. <dt><img src="icons/script-load.png" alt="icon">&nbsp;
  57. <em>Load instructions file</em></dt>
  58. <dd>Load text file with mapping instructions.</dd>
  59. <dt><img src="icons/page-settings.png" alt="icon">&nbsp;
  60. <em>Page setup</em></dt>
  61. <dd>Specify paper size, margins and orientation.</dd>
  62. <dt><img src="icons/pointer.png" alt="icon">&nbsp;
  63. <em>Pointer</em></dt>
  64. <dd>Select object on the paper by clicking, drag the cursor while pressing the left mouse button to move it or resize object (currently only map frame) by clicking on a small black box in its bottom right corner. Double click to show object properties dialog</dd>
  65. <dt><img src="icons/pan.png" alt="icon">&nbsp;
  66. <em>Pan</em></dt>
  67. <dd>Drag the pan cursor while pressing the left mouse button to move your view. </dd>
  68. <dt><img src="icons/zoom-in.png" alt="icon">&nbsp;
  69. <em>Zoom in</em></dt>
  70. <dd>Interactive zooming with the mouse in both draft and preview mode. Drawing a box or just a left click with the mouse and zoom-in cursor causes the display to zoom in so that the area defined by the box fills the display.</dd>
  71. <dt><img src="icons/zoom-out.png" alt="icon">&nbsp;
  72. <em>Zoom out</em></dt>
  73. <dd>Interactive zooming with the mouse in both draft and preview mode. Drawing a box or just a left click with the mouse and zoom-out cursor causes the display to zoom out so that the area displayed shrinks to fill the area defined by the box.</dd>
  74. <dt><img src="icons/zoom-extent.png" alt="icon">&nbsp;
  75. <em>Zoom to page</em></dt>
  76. <dd>Zoom to display the entire page </dd>
  77. <dt><img src="icons/layer-add.png" alt="icon">&nbsp;
  78. <em>Map frame</em></dt>
  79. <dd>Click and drag to place map frame. If map frame is already drawn, open a dialog to set its properties. </dd>
  80. <dt><img src="icons/layer-raster-add.png" alt="icon">&nbsp;
  81. <em>Raster map</em></dt>
  82. <dd>Shows a dialog to add or change the raster map.</dd>
  83. <dt><img src="icons/layer-vector-add.png" alt="icon">&nbsp;
  84. <em>Vector map</em></dt>
  85. <dd>Shows a dialog to add or change current vector maps and their properties:
  86. <dl>
  87. <dt><em>Data selection</em></dt>
  88. <dd>Select data to draw:
  89. <dl>
  90. <dt><em>Feature type</em></dt>
  91. <dd> Select which data type to draw. In case of point data, points or centroids
  92. can be drawn, in case of line data, lines or boundaries. </dd>
  93. <dt><em>Layer selection</em></dt>
  94. <dd>Select layer and limit data by a SQL query or chose only certain categories.</dd>
  95. <dt><em>Mask</em></dt>
  96. <dd>Whether to use mask or not.</dd>
  97. </dl>
  98. </dd>
  99. <dt><em>Colors</em></dt>
  100. <dd>Color settings:
  101. <dl>
  102. <dt><em>Outline</em></dt>
  103. <dd> Select outline color and width in points. In case of lines, outline means highlighting.</dd>
  104. <dt><em>Fill</em></dt>
  105. <dd>Select fill color, one color for all vector elements or color from rgb column.</dd>
  106. </dl>
  107. </dd>
  108. <dt><em>Size and style</em></dt>
  109. <dd>
  110. Sets size, style, symbols, pattern; depends on data type:
  111. <dl>
  112. <dt><em>Symbology</em></dt>
  113. <dd> Available for point data. Choose symbol or EPS file to draw points with.</dd>
  114. <dt><em>Line style</em></dt>
  115. <dd>Available for line data. Select line style (solid, dashed, ...) and the look of the ends of the line (butt, round, ...)</dd>
  116. <dt><em>Pattern</em></dt>
  117. <dd> Available for areas. Choose pattern file and set the width of the pattern.</dd>
  118. <dt><em>Size</em></dt>
  119. <dd> Available for point data. Choose size (number of times larger than the size in the icon file) as a single value or take the size from a map table column.</dd>
  120. <dt><em>Rotation</em></dt>
  121. <dd> Available for point data. Rotate symbols counterclockwise with the given value or with the value from a map table column</dd>
  122. <dt><em>Width</em></dt>
  123. <dd> Available for line data. Set line width in points or take the value from a map table column.</dd>
  124. </dl>
  125. </dd>
  126. </dl>
  127. </dd>
  128. <dt><img src="icons/overlay-add.png" alt="icon">&nbsp;
  129. <em>Add map elements</em></dt>
  130. <dd>Add map elements: legend, scalebar, map info, text
  131. <dl>
  132. <dt><img src="icons/legend-add.png" alt="icon">&nbsp;
  133. <em>Add legend</em></dt>
  134. <dd>Add raster or vector legend or edit their properties.</dd>
  135. <dt><img src="icons/map-info.png" alt="icon">&nbsp;
  136. <em>Add map info</em></dt>
  137. <dd>Add information about region, grid and scale or edit map info properties.</dd>
  138. <dt><img src="icons/scalebar-add.png" alt="icon">&nbsp;
  139. <em>Add scalebar</em></dt>
  140. <dd>Add scalebar or edit its properties.</dd>
  141. <dt><img src="icons/text-add.png" alt="icon">&nbsp;
  142. <em>Add text</em></dt>
  143. <dd>Add text label.</dd>
  144. </dl>
  145. </dd>
  146. <dt><img src="icons/layer-remove.png" alt="icon">&nbsp;
  147. <em>Remove selected element</em></dt>
  148. <dd>Select an object and remove it. Pressing Delete key does the same. </dd>
  149. <dt><img src="icons/execute.png" alt="icon">&nbsp;
  150. <em>Show preview</em></dt>
  151. <dd> Generates output and switches to Preview mode to see the result. Be patient, it can take a while.</dd>
  152. <dt><img src="icons/ps-export.png" alt="icon">&nbsp;
  153. <em>Generate hardcopy map output in PS</em></dt>
  154. <dd> Generates hardcopy map output in PostScript/EPS file.</dd>
  155. <dt><img src="icons/pdf-export.png" alt="icon">&nbsp;
  156. <em>Generate hardcopy map output in PDF</em></dt>
  157. <dd> Generates hardcopy map output in PDF using ps2pdf.</dd>
  158. </dl>
  159. <h2>SEE ALSO</h2>
  160. <em>
  161. <a href="wxGUI.html">wxGUI</a><br>
  162. <a href="wxGUI.Components.html">wxGUI components</a>
  163. </em>
  164. <p>
  165. See also <a href="http://grasswiki.osgeo.org/wiki/WxGUI_Cartographic_Composer">wiki</a> page.
  166. <p>
  167. <em>
  168. <a href="g.gui.html">g.gui</a>,
  169. <a href="g.gui.animation.html">g.gui.animation</a>,
  170. <a href="g.gui.dbmgr.html">g.gui.dbmgr</a>,
  171. <a href="g.gui.gmodeler.html">g.gui.gmodeler</a>,
  172. <a href="g.gui.iclass.html">g.gui.iclass</a>,
  173. <a href="g.gui.mapswipe.html">g.gui.mapswipe</a>,
  174. <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>,
  175. <a href="g.gui.vdigit.html">g.gui.vdigit</a>
  176. </em>
  177. <h2>AUTHOR</h2>
  178. Anna Kratochvilova, Czech Technical Univesity in Prague, Czech
  179. Republic (bachelor's final project 2011, mentor: Martin Landa)
  180. <p>
  181. <i>$Date$</i>