g.gui.vdigit.html 12 KB

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