wxGUI.Vector_Digitizer.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. Currently, only 2D vector features (points, lines, centroids and
  11. boundaries) can be edited.
  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><img src="wxGUI_vector_digitizer_toolbar.jpg" border="1"><br><br>
  43. </center>
  44. <dl>
  45. <dt><img src="icons/point-create.png">&nbsp;
  46. <em>Digitize new point</em></dt>
  47. <dd>Add new point to vector map and optionally define its
  48. attributes.</dd>
  49. <dt><img src="icons/line-create.png">&nbsp;
  50. <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/polygon-create.png">&nbsp;
  54. <em>Digitize new boundary</em></dt>
  55. <dd>Add new boundary to vector map and optionally define its
  56. attributes.</dd>
  57. <dt><img src="icons/centroid-create.png">&nbsp;
  58. <em>Digitize new centroid</em></dt>
  59. <dd>Add new centroid to vector map and optionally define its
  60. attributes.</dd>
  61. <dt><img src="icons/vertex-move.png">&nbsp;
  62. <em>Move vertex</em></dt>
  63. <dd>Move selected vertex of linear feature. Thus shape of linear
  64. feature is changed.</dd>
  65. <dt><img src="icons/vertex-create.png">&nbsp;
  66. <em>Add vertex</em></dt>
  67. <dd>Add new vertex to selected linear feature (shape not
  68. changed).</dd>
  69. <dt><img src="icons/vertex-delete.png">&nbsp;
  70. <em>Remove vertex</em></dt>
  71. <dd>Remove selected vertex from linear feature. Thus shape of selected
  72. feature can be changed.</dd>
  73. <dt><img src="icons/line-split.png">&nbsp;
  74. <em>Split line/boundary</em></dt>
  75. <dd>Split selected linear feature on given position to separate
  76. vector features.</dd>
  77. <dt><img src="icons/line-edit.png">&nbsp;
  78. <em>Edit line/boundary</em></dt>
  79. <dd>Edit selected linear feature, add new segments or remove
  80. existing segments of linear feature.</dd>
  81. <dt><img src="icons/line-move.png">&nbsp;
  82. <em>Move feature(s)</em></dt>
  83. <dd>Move selected vector features. Selection can be done by mouse or
  84. by query.</dd>
  85. <dt><img src="icons/line-delete.png">&nbsp;
  86. <em>Delete feature(s)</em></dt>
  87. <dd>Delete selected vector features. Selection can be done by mouse
  88. or by query.</dd>
  89. <dt><img src="icons/cats-display.png">&nbsp;
  90. <em>Display/update categories</em></dt>
  91. <dd>Display categories of selected vector feature. Category settings
  92. can be modified, new layer/category pairs added or already defined pairs
  93. removed.</dd>
  94. <dt><img src="icons/cats-copy.png">&nbsp;
  95. <em>Copy categories / Duplicate attributes</em></dt>
  96. <dd><ul>
  97. <li>Copy category settings of selected vector feature to other
  98. vector features. Layer/category pairs of source vector features are
  99. appended to the target feature category settings. Existing
  100. layer/category pairs are not removed from category settings of the
  101. target features.</li>
  102. <li>Duplicate attributes settings of selected vector feature to
  103. other vector features. New category(ies) is appended to the
  104. target feature category settings and attributes duplicated
  105. based on category settings of source vector features. Existing
  106. layer/category pairs are not removed from category settings of
  107. the target features.</li>
  108. </ul>
  109. </dd>
  110. <dt><img src="icons/attributes-display.png">&nbsp;
  111. <em>Display/update attributes</em></dt>
  112. <dd>Display attributes of selected vector feature (based on its
  113. category settings). Attributes can be also modified. Same
  114. functionality is accessible from Main toolbar "Query vector map
  115. (editable mode)".</dd>
  116. <dt><img src="icons/tools.png">&nbsp;
  117. <em>Additional tools</em></dt>
  118. <dd>
  119. <ul>
  120. <li>Copy features from (background) map<br> Make identical copy of
  121. selected vector features. If a background vector map has been
  122. selected from the Layer Manager, copy features from background
  123. vector map, not from the currently modified vector map.</li>
  124. <li>Flip selected lines/boundaries<br> Flip direction of
  125. selected linear features (lines or boundaries).</li>
  126. <li>Merge selected lines/boundaries<br> Merge (at least two)
  127. selected vector lines or boundaries. The geometry of the
  128. merged vector lines can be changed. If the second line from
  129. two selected lines is in opposite direction to the first, it
  130. will be flipped. See also
  131. module <em><a href="v.build.polylines.html">v.build.polylines</a></em>.</li>
  132. <li>Break selected lines/boundaries at intersection<br> Split
  133. given vector line or boundary into two lines on given position
  134. (based on <em><a href="v.clean.html">v.clean</a></em>,
  135. tool=break).</li>
  136. <li>Snap selected lines/boundaries (only to nodes)<br> Snap
  137. vector features in given threshold. See also
  138. module <em><a href="v.clean.html">v.clean</a></em>. Note that
  139. this tool supports only snapping to nodes. Snapping to vector
  140. features from background vector map is not currently
  141. supported.</li>
  142. <li>Connect two selected lines/boundaries<br> Connect selected
  143. lines or boundaries, the first given line is connected to the
  144. second one. The second line is broken if necessary on each intersection.
  145. The lines are connected only if distance between them is not greater
  146. than snapping threshold value.</li>
  147. <li>Query tool<br>Select vector features by defining a threshold for
  148. min/max length value (linear features or dangles).</li>
  149. <li>Z-bulk labeling of 3D lines<br> Assign z coordinate values to 3D
  150. vector lines in bounding box. This is useful for labeling contour lines.</li>
  151. <li>Feature type conversion<br> Change feature type of selected
  152. geometry features. Points are converted to centroids,
  153. centroids to points, lines to boundaries and boundaries to
  154. lines.</li>
  155. </ul>
  156. </dd>
  157. <dt><img src="icons/undo.png">&nbsp;
  158. <em>Undo</em></dt>
  159. <dd>Undo previous operations.</dd>
  160. <dt><img src="icons/settings.png">&nbsp;
  161. <em>Settings</em></dt>
  162. <dd>Dialog for vector digitizer settings.</dd>
  163. <dt><img src="icons/quit.png">&nbsp;
  164. <em>Quit digitizing tool</em></dt>
  165. <dd>Changes in vector map can be optionally discarded when
  166. digitizing session is quited.</dd>
  167. </dl>
  168. <h2>NOTES</h2>
  169. <dl><dt><b>Mouse button Functions:</b><dd>
  170. <dt><i>Left</i> - select/deselect features</dt>
  171. <dt><i>Control+Left</i> - cancel action/undo vertex</dt>
  172. <dt><i>Right</i> - confirm action</dt>
  173. </dl>
  174. <p>
  175. <i>Dead (deleted)</i> are internally only marked in the geometry file
  176. as 'dead' but it remains there and occupies space. Any vector module
  177. used afterwards on this vector map which really reads and writes
  178. vector geometry (so not <em><a href="g.copy.html">g.copy</a></em>)
  179. will writes only features which are 'alive'.
  180. <p>
  181. <i>Added or modified</i> vector features are <i>snapped</i> to
  182. existing vector features ('Settings-&gt;General-&gt;Snapping', nodes or vertices)
  183. based on 'Settings-&gt;General-&gt;Snapping threshold' value. To
  184. disable snapping set the snapping threshold to '0'.
  185. <p>
  186. If the digitizer crashes for some reason you can repair the vector map
  187. which was left open with
  188. the <em><a href="v.build.html">v.build</a></em> module.
  189. <h2>SEE ALSO</h2>
  190. <em>
  191. <a href="wxGUI.html">wxGUI</a>
  192. </em>
  193. <p>
  194. Other wxGUI components:<br>
  195. <em>
  196. <a href="wxGUI.Attribute_Table_Manager.html">Attribute Table Manager</a><br>
  197. <a href="wxGUI.Nviz.html">3D Viewer</a><br>
  198. <a href="wxGUI.Modeler.html">Graphical Modeler</a><br>
  199. <a href="wxGUI.GCP_Manager.html">Manage Ground Control Points</a><br>
  200. <a href="wxGUI.PsMap.html">Cartographic Composer</a><br>
  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">wiki</a> page.
  209. <h2>AUTHORS</h2>
  210. <a href="http://geo.fsv.cvut.cz/gwiki/Landa">Martin
  211. 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
  213. University in Prague</a>, Czech Republic<br>
  214. <p>
  215. <i>$Date$</i>