wxGUI.PsMap.html 7.7 KB

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