1g.gui.vdigit(1)             GRASS GIS User's Manual            g.gui.vdigit(1)
2
3
4

NAME

6       g.gui.vdigit  - Interactive editing and digitization of vector maps.
7

KEYWORDS

9       general, GUI, vector, editing, digitizer
10

SYNOPSIS

12       g.gui.vdigit
13       g.gui.vdigit --help
14       g.gui.vdigit [-c] map=name  [--help]  [--verbose]  [--quiet]  [--ui]
15
16   Flags:
17       -c
18           Create new vector map if doesn’t exist
19
20       --help
21           Print usage summary
22
23       --verbose
24           Verbose module output
25
26       --quiet
27           Quiet module output
28
29       --ui
30           Force launching GUI dialog
31
32   Parameters:
33       map=name [required]
34           Name of vector map to edit
35           Or data source for direct OGR access
36

DESCRIPTION

38       The  vector  digitizer  is  a  wxGUI component intended for interactive
39       editing and digitizing vector maps (see v.edit for non-interactive vec‐
40       tor editing GRASS capabilities).
41
42       Note  that  only  vector maps stored or generated in the current mapset
43       can be opened for editing.
44
45       The digitizer allows editing of 2D vector features (points, lines, cen‐
46       troids, boundaries, and areas).
47
48       Vector  features  can  be  selected by mouse (bounding box or simply by
49       mouse  click,  see  select  threshold  in   Settings→General→Select
50       threshold),  or  by  query  (eg.  by  line length, see Settings→Query
51       Tool).
52
53   STARTING THE DIGITIZER
54       The vector digitizer can be launched from Map Display  toolbar  by  se‐
55       lecting  "Digitize"  from  Tools combobox. Vector map is selectable for
56       editing from Digitizer toolbar ("Select vector map" combobox, note that
57       only  vector  maps  from  the  current  layer tree in Layer Manager are
58       listed).  The vector digitizer can alternatively be activated from  the
59       contextual  menu  in  the Layer Manager by selecting "Start editing" on
60       selected vector map in the layer tree, or directly from the Layer  Man‐
61       ager toolbar .  The vector digitizer also can also be launched from the
62       command line as a stand-alone application g.gui.vdigit.
63
64   CREATING A NEW VECTOR MAP
65       A new vector map can be easily created from the  digitizer  toolbar  by
66       selecting  "New vector map" in "Select vector map" combobox. A new vec‐
67       tor map is created, added to the current layer tree  in  Layer  Manager
68       and  opened  for editing. "Select vector map" combobox in the digitizer
69       toolbar also allows easily switching between vector maps to be edited.
70
71   EDITING AN EXISTING VECTOR MAP
72       An existing vector map selected in the digitizer toolbar in the "Select
73       vector  map" combobox. This map is then opened for editing and added to
74       the current layer tree in the Layer Manager. This "Select  vector  map"
75       combobox  in the digitizer toolbar also allows to easily switch between
76       vector maps to be edited.
77
78   USING A RASTER BACKGROUND MAP
79       In order to digitize from a raster map, simply load the  map  into  the
80       Map  Display  using the Layer Manager. Then start digitizing, see below
81       for details.
82
83   USING A VECTOR BACKGROUND MAP
84       The vector digitizer allows you to select a  "background"  vector  map.
85       Loading it within the digitizer is different from simply loading it via
86       Layer Manager since direct interaction with single vector features then
87       becomes possible.
88       Vector features may be copied from the background map by "Copy features
89       from (background) vector map" tool from the "Additional tools"  of  the
90       digitizer  toolbar.  Newly digitized vector features are snapped in the
91       given threshold to the features from the background map.
92
93   DIGITIZER TOOLBAR
94             Digitize new point
95           Add new point to vector map and optionally  define  its  attributes
96           (Ctrl+P).
97
98             Digitize new line
99           Add  new  line  to  vector map and optionally define its attributes
100           (Ctrl+L).
101
102             Digitize new boundary
103           Add new boundary to vector map and optionally define its attributes
104           (Ctrl+B).
105
106             Digitize new centroid
107           Add new centroid to vector map and optionally define its attributes
108           (Ctrl+C).
109
110             Digitize new area
111           Add new area (closed boundary and one centroid  inside)  to  vector
112           map and optionally define its attributes (Ctrl+A).
113
114             Move vertex
115           Move  selected  vertex of linear feature. Thus shape of linear fea‐
116           ture is changed (Ctrl+G).
117
118             Add vertex
119           Add new vertex to  selected  linear  feature  (shape  not  changed)
120           (Ctrl+V).
121
122             Remove vertex
123           Remove  selected vertex from linear feature (Ctrl+X). Thus shape of
124           selected feature can be changed.
125
126             Edit line/boundary
127           Edit selected linear feature, add new segments or  remove  existing
128           segments of linear feature (Ctrl+E).
129
130             Move feature(s)
131           Move  selected  vector  features (Ctrl+M.) Selection can be done by
132           mouse or by query.
133
134             Delete feature(s)
135           Delete selected vector features (point, line, centroid,  or  bound‐
136           ary) (Ctrl+D). Selection can be done by mouse or by query.
137
138             Delete areas(s)
139           Delete  selected  vector  areas  (Ctrl+F). Selection can be done by
140           mouse or by query.
141
142             Display/update categories
143           Display categories of selected vector  feature  (Ctrl+J).  Category
144           settings can be modified, new layer/category pairs added or already
145           defined pairs removed.
146
147             Display/update attributes
148           Display attributes of selected vector feature (based on  its  cate‐
149           gory  settings)  (Ctrl+K).  Attributes  can  be also modified. Same
150           functionality is accessible from Main  toolbar  "Query  vector  map
151           (editable mode)".
152
153             Additional tools
154
155Break selected lines/boundaries at intersection
156               Split given vector line or boundary into two lines on given po‐
157               sition (based on v.clean, tool=break).
158
159Connect two selected lines/boundaries
160               Connect selected lines or boundaries, the first given  line  is
161               connected  to the second one. The second line is broken if nec‐
162               essary on each intersection.  The lines are connected  only  if
163               distance  between  them  is not greater than snapping threshold
164               value.
165
166Copy categories
167               Copy category settings of selected vector feature to other vec‐
168               tor  features.  Layer/category  pairs of source vector features
169               are appended to the target feature category settings.  Existing
170               layer/category  pairs are not removed from category settings of
171               the target features.
172
173Copy features from (background) vector map
174               Make identical copy of selected vector  features.  If  a  back‐
175               ground  vector  map  has  been selected from the Layer Manager,
176               copy features from background vector map,  not  from  the  cur‐
177               rently modified vector map.
178
179Copy attributes
180               Duplicate  attributes  settings  of  selected vector feature to
181               other vector features. New category(ies)  is  appended  to  the
182               target  feature  category  settings  and  attributes duplicated
183               based on category settings of source vector features.  Existing
184               layer/category  pairs are not removed from category settings of
185               the target features.
186
187Feature type conversion
188               Change feature type of selected geometry features.  Points  are
189               converted  to  centroids,  centroids to points, lines to bound‐
190               aries and boundaries to lines.
191
192Flip selected lines/boundaries
193               Flip direction of selected linear  features  (lines  or  bound‐
194               aries).
195
196Merge selected lines/boundaries
197               Merge  (at  least two) selected vector lines or boundaries. The
198               geometry of the merged vector lines can be changed. If the sec‐
199               ond  line  from  two selected lines is in opposite direction to
200               the first, it will be flipped. See  also  module  v.build.poly‐
201               lines.
202
203Snap selected lines/boundaries (only to nodes)
204               Snap  vector  features  in  given  threshold.  See  also module
205               v.clean. Note that this tool supports only snapping  to  nodes.
206               Snapping  to  vector features from background vector map is not
207               currently supported.
208
209Split line/boundary
210               Split selected line or boundary on given position.
211
212Query tool
213               Select vector features by  defining  a  threshold  for  min/max
214               length value (linear features or dangles).
215
216Z-bulk labeling of 3D lines
217               Assign  z coordinate values to 3D vector lines in bounding box.
218               This is useful for labeling contour lines.
219
220             Undo
221           Undo previous operations (Ctrl+Z).
222
223             Redo
224           Redo previous operations (Ctrl+Y).
225
226             Settings
227           Digitizer settings (Ctrl+T).
228
229             Show help
230           Show help page for the Digitizer (Ctrl+H).
231
232             Quit digitizing tool
233           Changes in vector map can be optionally discarded  when  digitizing
234           session is quited (Ctrl+Q).
235

NOTES

237       Mouse button functions:
238
239       Left   - select or deselect features
240
241       Control+Left - cancel action or undo vertex when digitizing lines
242
243       Right  - confirm action
244
245       Dead  (deleted) features are only marked as ’dead’ in the geometry file
246       but remain there and occupy space. Any vector module used afterwards on
247       this  vector  map which really reads and writes vector geometry (so not
248       g.copy) will write only features which are ’alive’.
249
250       Added or modified vector features are snapped to existing  vector  fea‐
251       tures  (Settings→General→Snapping).  To  disable  snapping  set the
252       snapping threshold to ’0’.
253
254       If the digitizer crashes for some reason, the changes are automatically
255       saved. Broken topology can be repaired by running v.build.
256
257       GRASS  GIS  uses  a  topological  vector  format, meaning that a common
258       boundary of two polygons is only stored once. When digitizing  polygons
259       it  is  thus important to be able to only draw each boundary once. When
260       drawing a polygon adjacent to an existing polygon,  one  has  to  first
261       split  the  existing boundary at the points where the new boundary will
262       be attached. Snapping should be set to ensure that the  new  boundaries
263       are automatically attached to the chosen points.
264

REFERENCES

266           •   GRASS Vedit Library
267
268           •   Vector Database Management (Wiki page)
269

SEE ALSO

271        wxGUI
272       wxGUI components
273
274        v.edit, v.category, v.build, g.gui.rdigit, wxGUI.rdigit
275
276       See  also  the WxGUI Vector Digitizer Wiki page including video tutori‐
277       als.
278

AUTHOR

280       Martin Landa, FBK-irst (2007-2008), Trento, Italy, and Czech  Technical
281       University in Prague, Czech Republic
282

SOURCE CODE

284       Available at: wxGUI Vector Digitizer source code (history)
285
286       Accessed: Saturday Oct 28 18:20:08 2023
287
288       Main  index | GUI index | Topics index | Keywords index | Graphical in‐
289       dex | Full index
290
291       © 2003-2023 GRASS Development Team, GRASS GIS 8.3.1 Reference Manual
292
293
294
295GRASS 8.3.1                                                    g.gui.vdigit(1)
Impressum