wxGUI.Vector_Digitizer.html 10 KB

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