g.gui.psmap.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <!-- meta page description: wxGUI Cartographic Composer -->
  2. <!-- meta page index: topic_gui|GUI -->
  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.
  30. Loading instruction files created by Cartographic Composer is more robust,
  31. as opposed to loading files created manually.
  32. <p>
  33. Currently supported <em><a href="ps.map.html">ps.map</a></em> instructions:
  34. <ul>
  35. <li> paper
  36. <li> maploc
  37. <li> scale
  38. <li> border
  39. <li> raster
  40. <li> colortable
  41. <li> vpoints
  42. <li> vlines
  43. <li> vareas
  44. <li> vlegend
  45. <li> text
  46. <li> scalebar
  47. <li> mapinfo
  48. <li> point
  49. <li> line
  50. <li> rectangle
  51. <li> labels
  52. </ul>
  53. <h3>CARTOGRAPHIC COMPOSER TOOLBAR</h3>
  54. <dl>
  55. <dt><img src="icons/script-save.png" alt="icon">&nbsp;
  56. <em>Generate instructions file</em></dt>
  57. <dd>Generates and saves text file with mapping instructions.</dd>
  58. <dt><img src="icons/script-load.png" alt="icon">&nbsp;
  59. <em>Load instructions file</em></dt>
  60. <dd>Load text file with mapping instructions.</dd>
  61. <dt><img src="icons/page-settings.png" alt="icon">&nbsp;
  62. <em>Page setup</em></dt>
  63. <dd>Specify paper size, margins and orientation.</dd>
  64. <dt><img src="icons/pointer.png" alt="icon">&nbsp;
  65. <em>Pointer</em></dt>
  66. <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>
  67. <dt><img src="icons/pan.png" alt="icon">&nbsp;
  68. <em>Pan</em></dt>
  69. <dd>Drag the pan cursor while pressing the left mouse button to move your view. </dd>
  70. <dt><img src="icons/zoom-in.png" alt="icon">&nbsp;
  71. <em>Zoom in</em></dt>
  72. <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>
  73. <dt><img src="icons/zoom-out.png" alt="icon">&nbsp;
  74. <em>Zoom out</em></dt>
  75. <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>
  76. <dt><img src="icons/zoom-extent.png" alt="icon">&nbsp;
  77. <em>Zoom to page</em></dt>
  78. <dd>Zoom to display the entire page </dd>
  79. <dt><img src="icons/layer-add.png" alt="icon">&nbsp;
  80. <em>Map frame</em></dt>
  81. <dd>Click and drag to place map frame. If map frame is already drawn, open a dialog to set its properties. </dd>
  82. <dt><img src="icons/layer-raster-add.png" alt="icon">&nbsp;
  83. <em>Raster map</em></dt>
  84. <dd>Shows a dialog to add or change the raster map.</dd>
  85. <dt><img src="icons/layer-vector-add.png" alt="icon">&nbsp;
  86. <em>Vector map</em></dt>
  87. <dd>Shows a dialog to add or change current vector maps and their properties:
  88. <dl>
  89. <dt><em>Data selection</em></dt>
  90. <dd>Select data to draw:
  91. <dl>
  92. <dt><em>Feature type</em></dt>
  93. <dd> Select which data type to draw. In case of point data, points or centroids
  94. can be drawn, in case of line data, lines or boundaries. </dd>
  95. <dt><em>Layer selection</em></dt>
  96. <dd>Select layer and limit data by a SQL query or chose only certain categories.</dd>
  97. <dt><em>Mask</em></dt>
  98. <dd>Whether to use mask or not.</dd>
  99. </dl>
  100. </dd>
  101. <dt><em>Colors</em></dt>
  102. <dd>Color settings:
  103. <dl>
  104. <dt><em>Outline</em></dt>
  105. <dd> Select outline color and width in points. In case of lines, outline means highlighting.</dd>
  106. <dt><em>Fill</em></dt>
  107. <dd>Select fill color, one color for all vector elements or color from rgb column.</dd>
  108. </dl>
  109. </dd>
  110. <dt><em>Size and style</em></dt>
  111. <dd>
  112. Sets size, style, symbols, pattern; depends on data type:
  113. <dl>
  114. <dt><em>Symbology</em></dt>
  115. <dd> Available for point data. Choose symbol or EPS file to draw points with.</dd>
  116. <dt><em>Line style</em></dt>
  117. <dd>Available for line data. Select line style (solid, dashed, ...) and the look of the ends of the line (butt, round, ...)</dd>
  118. <dt><em>Pattern</em></dt>
  119. <dd> Available for areas. Choose pattern file and set the width of the pattern.</dd>
  120. <dt><em>Size</em></dt>
  121. <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>
  122. <dt><em>Rotation</em></dt>
  123. <dd> Available for point data. Rotate symbols counterclockwise with the given value or with the value from a map table column</dd>
  124. <dt><em>Width</em></dt>
  125. <dd> Available for line data. Set line width in points or take the value from a map table column.</dd>
  126. </dl>
  127. </dd>
  128. </dl>
  129. </dd>
  130. <dt><img src="icons/layer-more.png" alt="icon">&nbsp;
  131. <em>Add overlays</em></dt>
  132. <dd>Add overlays: vector labels, grid (not yet implemented)
  133. <dl>
  134. <dt><img src="icons/layer-label-add.png" alt="icon">&nbsp;
  135. <em>Add labels</em></dt>
  136. <dd>Add vector labels created beforehand by v.label module.</dd>
  137. </dl>
  138. </dd>
  139. <dt><img src="icons/overlay-add.png" alt="icon">&nbsp;
  140. <em>Add map elements</em></dt>
  141. <dd>Add map elements: legend, scalebar, map info, text
  142. <dl>
  143. <dt><img src="icons/legend-add.png" alt="icon">&nbsp;
  144. <em>Add legend</em></dt>
  145. <dd>Add raster or vector legend or edit their properties.</dd>
  146. <dt><img src="icons/map-info.png" alt="icon">&nbsp;
  147. <em>Add map info</em></dt>
  148. <dd>Add information about region, grid and scale or edit map info properties.</dd>
  149. <dt><img src="icons/scalebar-add.png" alt="icon">&nbsp;
  150. <em>Add scalebar</em></dt>
  151. <dd>Add scalebar or edit its properties.</dd>
  152. <dt><img src="icons/text-add.png" alt="icon">&nbsp;
  153. <em>Add text</em></dt>
  154. <dd>Add text label.</dd>
  155. </dl>
  156. </dd>
  157. <dt><img src="icons/layer-remove.png" alt="icon">&nbsp;
  158. <em>Remove selected element</em></dt>
  159. <dd>Select an object and remove it. Pressing Delete key does the same. </dd>
  160. <dt><img src="icons/execute.png" alt="icon">&nbsp;
  161. <em>Show preview</em></dt>
  162. <dd> Generates output and switches to Preview mode to see the result. Be patient, it can take a while.</dd>
  163. <dt><img src="icons/ps-export.png" alt="icon">&nbsp;
  164. <em>Generate hardcopy map output in PS</em></dt>
  165. <dd> Generates hardcopy map output in PostScript/EPS file.</dd>
  166. <dt><img src="icons/pdf-export.png" alt="icon">&nbsp;
  167. <em>Generate hardcopy map output in PDF</em></dt>
  168. <dd> Generates hardcopy map output in PDF using ps2pdf.</dd>
  169. </dl>
  170. <h2>SEE ALSO</h2>
  171. <em>
  172. <a href="wxGUI.html">wxGUI</a><br>
  173. <a href="wxGUI.components.html">wxGUI components</a>
  174. </em>
  175. <p>
  176. See also <a href="https://grasswiki.osgeo.org/wiki/WxGUI_Cartographic_Composer">wiki</a> page.
  177. <h2>AUTHOR</h2>
  178. Anna Kratochvilova, Czech Technical University in Prague, Czech
  179. Republic (bachelor's final project 2011, mentor: Martin Landa)