logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

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

Description

       The  vectordigitizer  is  a wxGUI component intended for interactive editing and digitizing vector maps
       (see v.edit for non-interactive vector editing GRASS capabilities).

       Note that only vector maps stored or generated in the current mapset can be opened for editing.

       The digitizer allows editing of 2D vector features (points, lines, centroids, boundaries, and areas).

       Vector features can be selected by mouse (bounding box or simply by mouse click, see select threshold  in
       Settings→General→Selectthreshold), or by query (eg. by line length, see Settings→QueryTool).

   STARTINGTHEDIGITIZER
       The  vector  digitizer  can  be  launched  from  Map  Display  toolbar by selecting "Digitize" from Tools
       combobox. Vector map is selectable for editing from Digitizer toolbar ("Select vector map" combobox, note
       that only vector maps from the current layer tree in Layer Manager are listed).  The vector digitizer can
       alternatively be activated from the contextual menu in the Layer Manager by selecting "Start editing"  on
       selected vector map in the layer tree, or directly from the Layer Manager toolbar .  The vector digitizer
       also can also be launched from the command line as a stand-alone application g.gui.vdigit.

   CREATINGANEWVECTORMAP
       A  new  vector  map  can  be  easily  created from the digitizer toolbar by selecting "New vector map" in
       "Select vector map" combobox. A new vector map is created, added to  the  current  layer  tree  in  Layer
       Manager  and opened for editing. "Select vector map" combobox in the digitizer toolbar also allows easily
       switching between vector maps to be edited.

   EDITINGANEXISTINGVECTORMAP
       An existing vector map selected in the digitizer toolbar in the "Select vector map" combobox. This map is
       then opened for editing and added to the current layer tree in the LayerManager.  This  "Select  vector
       map" combobox in the digitizer toolbar also allows to easily switch between vector maps to be edited.

   USINGARASTERBACKGROUNDMAP
       In order to digitize from a raster map, simply load the map into the MapDisplay using the LayerManager.
       Then start digitizing, see below for details.

   USINGAVECTORBACKGROUNDMAP
       The  vector digitizer allows you to select a "background" vector map.  Loading it within the digitizer is
       different from simply loading it via LayerManager since direct interaction with single  vector  features
       then becomes possible.
       Vector  features  may  be  copied from the background map by "Copy features from (background) vector map"
       tool from the "Additional tools" of the digitizer toolbar.  Newly digitized vector features  are  snapped
       in the given threshold to the features from the background map.

   DIGITIZERTOOLBARDigitizenewpoint
           Add new point to vector map and optionally define its attributes (Ctrl+P).

             Digitizenewline
           Add new line to vector map and optionally define its attributes (Ctrl+L).

             Digitizenewboundary
           Add new boundary to vector map and optionally define its attributes (Ctrl+B).

             Digitizenewcentroid
           Add new centroid to vector map and optionally define its attributes (Ctrl+C).

             Digitizenewarea
           Add  new  area  (closed  boundary  and  one  centroid inside) to vector map and optionally define its
           attributes (Ctrl+A).

             Movevertex
           Move selected vertex of linear feature. Thus shape of linear feature is changed (Ctrl+G).

             Addvertex
           Add new vertex to selected linear feature (shape not changed) (Ctrl+V).

             Removevertex
           Remove selected vertex from linear feature (Ctrl+X). Thus shape of selected feature can be changed.

             Editline/boundary
           Edit selected linear feature, add  new  segments  or  remove  existing  segments  of  linear  feature
           (Ctrl+E).

             Movefeature(s)
           Move selected vector features (Ctrl+M.) Selection can be done by mouse or by query.

             Deletefeature(s)
           Delete  selected vector features (point, line, centroid, or boundary) (Ctrl+D). Selection can be done
           by mouse or by query.

             Deleteareas(s)
           Delete selected vector areas (Ctrl+F). Selection can be done by mouse or by query.

             Display/updatecategories
           Display categories of selected vector feature  (Ctrl+J).  Category  settings  can  be  modified,  new
           layer/category pairs added or already defined pairs removed.

             Display/updateattributes
           Display  attributes  of selected vector feature (based on its category settings) (Ctrl+K). Attributes
           can be also modified. Same functionality is accessible from Main toolbar "Query vector map  (editable
           mode)".

             AdditionaltoolsBreakselectedlines/boundariesatintersection
               Split  given  vector  line  or  boundary  into  two  lines  on  given position (based on v.clean,
               tool=break).

           •   Connecttwoselectedlines/boundaries
               Connect selected lines or boundaries, the first given line is connected to the  second  one.  The
               second  line  is  broken  if  necessary  on  each  intersection.  The lines are connected only if
               distance between them is not greater than snapping threshold value.

           •   Copycategories
               Copy category settings of selected vector feature to other vector features. Layer/category  pairs
               of  source  vector  features  are  appended  to  the  target  feature category settings. Existing
               layer/category pairs are not removed from category settings of the target features.

           •   Copyfeaturesfrom(background)vectormap
               Make identical copy of selected vector features. If a background vector  map  has  been  selected
               from the Layer Manager, copy features from background vector map, not from the currently modified
               vector map.

           •   Copyattributes
               Duplicate  attributes  settings  of  selected  vector  feature  to  other  vector  features.  New
               category(ies) is appended to the target feature category settings and attributes duplicated based
               on category settings of source vector features. Existing layer/category  pairs  are  not  removed
               from category settings of the target features.

           •   Featuretypeconversion
               Change  feature  type of selected geometry features. Points are converted to centroids, centroids
               to points, lines to boundaries and boundaries to lines.

           •   Flipselectedlines/boundaries
               Flip direction of selected linear features (lines or boundaries).

           •   Mergeselectedlines/boundaries
               Merge (at least two) selected vector lines or boundaries. The geometry of the merged vector lines
               can be changed. If the second line from two selected lines is in opposite direction to the first,
               it will be flipped. See also module v.build.polylines.

           •   Snapselectedlines/boundaries(onlytonodes)
               Snap vector features in given threshold. See also module v.clean. Note that  this  tool  supports
               only  snapping  to nodes. Snapping to vector features from background vector map is not currently
               supported.

           •   Splitline/boundary
               Split selected line or boundary on given position.

           •   Querytool
               Select vector features by defining a threshold for  min/max  length  value  (linear  features  or
               dangles).

           •   Z-bulklabelingof3Dlines
               Assign  z  coordinate  values  to  3D  vector  lines in bounding box. This is useful for labeling
               contour lines.

             Undo
           Undo previous operations (Ctrl+Z).

             Redo
           Redo previous operations (Ctrl+Y).

             Settings
           Digitizer settings (Ctrl+T).

             Showhelp
           Show help page for the Digitizer (Ctrl+H).

             Quitdigitizingtool
           Changes in vector map can be optionally discarded when digitizing session is quited (Ctrl+Q).

Notes

Mousebuttonfunctions:Left   - select or deselect features

       Control+Left - cancel action or undo vertex when digitizing lines

       Right  - confirm action

       Dead(deleted) features are only marked as ’dead’ in the geometry file but remain there and occupy space.
       Any vector module used afterwards on this vector map which really reads and writes  vector  geometry  (so
       not g.copy) will write only features which are ’alive’.

       Addedormodified vector features are snapped to existing vector features (Settings→General→Snapping). To
       disable snapping set the snapping threshold to ’0’.

       If  the  digitizer  crashes  for some reason, the changes are automatically saved. Broken topology can be
       repaired by running v.build.

       GRASS GIS uses a topological vector format, meaning that a common boundary of two polygons is only stored
       once. When digitizing polygons it is thus important to be able to only  draw  each  boundary  once.  When
       drawing  a  polygon  adjacent to an existing polygon, one has to first split the existing boundary at the
       points where the new boundary will be attached. Snapping should be set to ensure that the new  boundaries
       are automatically attached to the chosen points.

References

           •   GRASS Vedit Library

           •   Vector Database Management (Wiki page)

See Also

wxGUI,wxGUIcomponentsv.edit,v.category,v.build,g.gui.rdigit,wxGUI.rdigit

       See also the WxGUI Vector Digitizer Wiki page including video tutorials.

Source Code

       Available at: wxGUI Vector Digitizer source code (history)

       Accessed: Friday Apr 04 01:21:40 2025

       Main index | GUI index | Topics index | Keywords index | Graphical index | Full index

       © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1                                                                                 wxGUI.vdigit(1grass)

Wxgui Vector Digitizer

See Also