g.gui.vdigit.html 10 KB

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