g.gui.vdigit.html 10 KB

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