wxGUI.Vector_Digitizing_Tool.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <h2>DESCRIPTION</h2>
  2. <b>Vector digitizing tool</b> is
  3. a <em><a href="wxGUI.html">wxGUI</a></em> component intended for
  4. interactive editing vector maps
  5. (see <em><a href="v.edit.html">v.edit</a></em> for non-interactive
  6. vector editing GRASS capabilities).
  7. <p>
  8. Currently, only 2D vector features (points, lines, centroids and
  9. boundaries) can be edited.
  10. Vector features can be selected using mouse or by query (e.g. minimal
  11. vector line length). Vector features can be selected by bounding box
  12. or simply by mouse click (based on 'Settings-&gt;General-&gt;Select
  13. threshold' value).
  14. <p>
  15. Vector digitizer can be activated from Main toolbar in Map Display by
  16. selecting "Digitize" from "Tools" combobox. Vector map to be edited
  17. can be afterwards selected from digitizer toolbar ("Select vector map"
  18. combobox, note that only vector maps from the current layer tree in Layer
  19. Manager are available).
  20. Vector digitizer can be alternatively also activated from contextual
  21. menu in Layer Manager by selecting "Start editing" on selected vector
  22. map in the layer tree.
  23. <p>
  24. New vector map can be easily created from digitizer toolbar by
  25. selecting "New vector map" in "Select vector map" combobox. A new
  26. vector map is created, added to the current layer tree in Layer
  27. Manager and opened for editing. "Select vector map" combobox in
  28. digitizer toolbar also allows switching easily between vector maps to be
  29. edited.
  30. <p>
  31. The wxGUI vector digitizer draws all maps in the Layer Manager in the Map
  32. Display window; in addition, the digitizer also recognizes a special
  33. "background" vector map. This map is selected from the Layer Manager by
  34. right-clicking on the map and selecting "Use as Background Map" from the
  35. contextual menu. The features of the background map may then be copied into
  36. the currently edited vector map using the "Copy features from (background)
  37. vector map" button in the "Additional Tools" menu on the Digitzer Toolbar.
  38. <h3>DIGITIZER TOOLBAR</h3>
  39. <center>
  40. <br><img src="wxGUI_vector_digitizer_toolbar.jpg" border="1"><br><br>
  41. </center>
  42. <dl>
  43. <dt><img src="icons/grass2/point-create.png">&nbsp;
  44. <img src="icons/grass/vdigit/new.point.gif">&nbsp;
  45. <img src="icons/silk/bullet_add.png"> <em>Digitize new point</em></dt>
  46. <dd>Add new point to vector map and optionally define its
  47. attributes.</dd>
  48. <dt><img src="icons/grass2/line-create.png">&nbsp;
  49. <img src="icons/grass/vdigit/new.line.gif">&nbsp;
  50. <img src="icons/silk/vector_add.png"> <em>Digitize new line</em></dt>
  51. <dd>Add new line to vector map and optionally define its
  52. attributes.</dd>
  53. <dt><img src="icons/grass2/polygon-create.png">&nbsp;
  54. <img src="icons/grass/vdigit/new.boundary.gif">&nbsp;
  55. <img src="icons/silk/shape_handles.png"> <em>Digitize new boundary</em></dt>
  56. <dd>Add new boundary to vector map and optionally define its
  57. attributes.</dd>
  58. <dt><img src="icons/grass2/centroid-create.png">&nbsp;
  59. <img src="icons/grass/vdigit/new.centroid.gif">&nbsp;
  60. <img src="icons/silk/shape_square_add.png"> <em>Digitize new centroid</em></dt>
  61. <dd>Add new centroid to vector map and optionally define its
  62. attributes.</dd>
  63. <dt><img src="icons/grass2/vertex-move.png">&nbsp;
  64. <img src="icons/grass/vdigit/move.vertex.gif">&nbsp;
  65. <img src="icons/silk/chart_line.png"> <em>Move vertex</em></dt>
  66. <dd>Move selected vertex of linear feature. Thus shape of linear
  67. feature is changed.</dd>
  68. <dt><img src="icons/grass2/vertex-create.png">&nbsp;
  69. <img src="icons/grass/vdigit/add.vertex.gif">&nbsp;
  70. <img src="icons/silk/chart_line_add.png"> <em>Add vertex</em></dt>
  71. <dd>Add new vertex to selected linear feature (shape not
  72. changed).</dd>
  73. <dt><img src="icons/grass2/vertex-delete.png">&nbsp;
  74. <img src="icons/grass/vdigit/rm.vertex.gif">&nbsp;
  75. <img src="icons/silk/chart_line_delete.png"> <em>Remove vertex</em></dt>
  76. <dd>Remove selected vertex from linear feature. Thus shape of selected
  77. feature can be changed.</dd>
  78. <dt><img src="icons/grass2/line-split.png">&nbsp;
  79. <img src="icons/grass/vdigit/split.line.gif">&nbsp;
  80. <img src="icons/silk/chart_line_link.png"> <em>Split line/boundary</em></dt>
  81. <dd>Split selected linear feature on given position to separate
  82. vector features.</dd>
  83. <dt><img src="icons/grass2/line-edit.png">&nbsp;
  84. <img src="icons/grass/vdigit/edit.line.gif">&nbsp;
  85. <img src="icons/silk/chart_line_edit.png"> <em>Edit line/boundary</em></dt>
  86. <dd>Edit selected linear feature, add new segments or remove
  87. existing segments of linear feature.</dd>
  88. <dt><img src="icons/grass2/line-move.png">&nbsp;
  89. <img src="icons/grass/vdigit/move.line.gif">&nbsp;
  90. <img src="icons/silk/bullet_go.png"> <em>Move feature(s)</em></dt>
  91. <dd>Move selected vector features. Selection can be done by mouse or
  92. by query.</dd>
  93. <dt><img src="icons/grass2/line-delete.png">&nbsp;
  94. <img src="icons/grass/vdigit/delete.line.gif">&nbsp;
  95. <img src="icons/silk/vector_delete.png"> <em>Delete feature(s)</em></dt>
  96. <dd>Delete selected vector features. Selection can be done by mouse
  97. or by query.</dd>
  98. <dt><img src="icons/grass2/cats-display.png">&nbsp;
  99. <img src="icons/grass/vdigit/display.cats.gif">&nbsp;
  100. <img src="icons/silk/chart_organisation.png"> <em>Display/update categories</em></dt>
  101. <dd>Display categories of selected vector feature. Category settings
  102. can be modified, new layer/category pairs added or already defined pairs
  103. removed.</dd>
  104. <dt><img src="icons/grass2/cats-copy.png">&nbsp;
  105. <img src="icons/grass/vdigit/copy.cats.gif">&nbsp;
  106. <img src="icons/silk/chart_organisation_add.png"> <em>Copy categories / Duplicate attributes</em></dt>
  107. <dd><ul>
  108. <li>Copy category settings of selected vector feature to other
  109. vector features. Layer/category pairs of source vector features are
  110. appended to the target feature category settings. Existing
  111. layer/category pairs are not removed from category settings of the
  112. target features.</li>
  113. <li>Duplicate attributes settings of selected vector feature to
  114. other vector features. New category(ies) is appended to the
  115. target feature category settings and attributes duplicated
  116. based on category settings of source vector features. Existing
  117. layer/category pairs are not removed from category settings of
  118. the target features.</li>
  119. </ul>
  120. </dd>
  121. <dt><img src="icons/grass2/attributes-display.png">&nbsp;
  122. <img src="icons/grass/vdigit/display.attributes.gif">&nbsp;
  123. <img src="icons/silk/table.png"> <em>Display/update attributes</em></dt>
  124. <dd>Display attributes of selected vector feature (based on its
  125. category settings). Attributes can be also modified. Same
  126. functionality is accessible from Main toolbar "Query vector map
  127. (editable mode)".</dd>
  128. <dt><img src="icons/grass2/tools.png">&nbsp;
  129. &nbsp;&nbsp;&nbsp;
  130. <img src="icons/silk/plugin.png"> <em>Additional tools</em></dt>
  131. <dd>
  132. <ul>
  133. <li>Copy features from (background) map<br> Make identical copy of
  134. selected vector features. If a background vector map has been
  135. selected from the Layer Manager, copy features from background
  136. vector map, not from the currently modified vector map.</li>
  137. <li>Flip selected lines/boundaries<br> Flip direction of
  138. selected linear features (lines or boundaries).</li>
  139. <li>Merge selected lines/boundaries<br> Merge (at least two)
  140. selected vector lines or boundaries. The geometry of the
  141. merged vector lines can be changed. If the second line from
  142. two selected lines is in opposite direction to the first, it
  143. will be flipped. See also
  144. module <em><a href="v.build.polylines.html">v.build.polylines</a></em>.</li>
  145. <li>Break selected lines/boundaries at intersection<br> Split
  146. given vector line or boundary into two lines on given position
  147. (based on <em><a href="v.clean.html">v.clean</a></em>,
  148. tool=break).</li>
  149. <li>Snap selected lines/boundaries (only to nodes)<br> Snap
  150. vector features in given threshold. See also
  151. module <em><a href="v.clean.html">v.clean</a></em>. Note that
  152. this tool supports only snapping to nodes. Snapping to vector
  153. features from background vector map is not currently
  154. supported.</li>
  155. <li>Connect two selected lines/boundaries<br> Connect selected
  156. lines or boundaries, the first given line is connected to the
  157. second one. The second line is broken if necessary. The lines
  158. are connected only if distance between them is not greater
  159. than snapping threshold value.</li>
  160. <li>Query tool<br>Select vector features by min/max length value
  161. (linear features or dangles).</li>
  162. <li>Z-bulk labeling of 3D lines<br> Assign z coordinate to 3D
  163. vector lines in bounding box.</li>
  164. <li>Feature type conversion<br> Change feature type of selected
  165. geometry features. Points are converted to centroids,
  166. centroids to points, lines to boundaries and boundaries to
  167. lines.</li>
  168. </ul>
  169. </dd>
  170. <dt><img src="icons/grass2/undo.png">&nbsp;
  171. &nbsp;&nbsp;&nbsp;
  172. <img src="icons/silk/arrow_undo.png"> <em>Undo</em></dt>
  173. <dd>Undo previous operations.</dd>
  174. <dt><img src="icons/grass2/settings.png">&nbsp;
  175. <img src="icons/grass/vdigit/settings.gif">&nbsp;
  176. <img src="icons/silk/color_swatch.png"> <em>Settings</em></dt>
  177. <dd>Dialog for vector digitizer settings.</dd>
  178. <dt><img src="icons/grass2/quit.png">&nbsp;
  179. <img src="icons/grass/gui-exit.gif">&nbsp;
  180. <img src="icons/silk/door_in.png"> <em>Quit digitizing tool</em></dt>
  181. <dd>Changes in vector map can be optionally discarded when
  182. digitizing session is quited.</dd>
  183. </dl>
  184. <h2>NOTES</h2>
  185. <dl><dt><b>Mouse button Functions:</b><dd>
  186. <dt><i>Left</i> - select/deselect features</dt>
  187. <dt><i>Middle</i> - cancel action</dt>
  188. <dt><i>Right</i> - confirm action</dt>
  189. </dl>
  190. <p>
  191. <i>Dead (deleted)</i> are internally only marked in the geometry file
  192. as 'dead' but it remains there and occupies space. Any vector module
  193. used afterwards on this vector map which really reads and writes
  194. vector geometry (so not <em><a href="g.copy.html">g.copy</a></em>)
  195. will writes only features which are 'alive'.
  196. <p>
  197. <i>Added or modified</i> vector features are <i>snapped</i> to
  198. existing vector features ('Settings-&gt;General-&gt;Snapping', nodes or vertices)
  199. based on 'Settings-&gt;General-&gt;Snapping threshold' value. To
  200. disable snapping set the snapping threshold to '0'.
  201. <p>
  202. If the digitizer crashes for some reason you can repair the vector map
  203. which was left open with the <em>v.build</em> module.
  204. <p>
  205. <b>Please note that vector digitizer is under active development and
  206. distributed as &quot;Experimental Prototype&quot;.</b>
  207. <h2>SEE ALSO</h2>
  208. <em>
  209. <a href="v.edit.html">v.edit</a>,
  210. <a href="v.category.html">v.category</a>
  211. </em>
  212. <p>
  213. See also <a href="http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Vector_digitizer">Wiki</a> page.
  214. <h2>AUTHORS</h2>
  215. Martin Landa, FBK-irst, Trento, Italy
  216. <p>
  217. <i>$Date$</i>