Snap added or modified features in the given threshold to the nearest existing feature
Options: no,node,vertex
Default: no
no: Not apply snapping
node: Snap only to node
vertex: Allow snapping also to vertex

Provides editing features’ geometry. Attribute data connected to the vector map are not modified at all.

Vector features can be selected either by internal id, category number cats, coordinates coords, bounding box bbox, polygon, where statement (attribute data) or by query. Selecting features by coordinates is affected by the current 2D resolution or by the threshold distance given by thresh. The options are orthogonal, i.e. can be used in various combinations. For example:
v.edit map=roads tool=select \
coord=599505,4921010,603389.0625,4918292.1875 \
thresh=10000 where="label=’interstate’"
selects all features (and prints their id’s to standard output) covered by two bounding boxes (center at 599505,4921010 and 603389.0625,4918292.1875, size 2*10000) with attribute label=’interstate’.

NOTES

If no vector features are selected or the flag -t is used, topology is not build at the end.

create - Create new (empty) vector map (see v.in.ascii). Optionally vector features (in GRASS ASCII standard format) can be read from standard input (input=-) or from the text file given by the input option. add - Add new vector features (defined in GRASS ASCII standard format) to existing vector map. Features can be read from standard input or from the given text file (input option). If no header is given, the -n flag must be used. Added features can be snapped (defined by snap parameter) to nodes or vertices based on threshold distance thresh. delete - Delete selected vector features from existing vector map. copy - Make identical copy of selected vector features. If background map bgmap is given copy features from background map, not from currently modified vector map. move - Move selected features of existing vector map relatively to their current location. This tool requires move option. The option defines coordinates of the movement direction. Moved features can be snapped (defined by snap parameter) to nodes or vertices based on threshold distance thresh. flip - Flip direction of selected vector lines (lines or boundaries). catadd - Add new layer category(ies) to selected vector feature(s). Category can be later used for new database entry. catdel - Delete layer category(ies) of selected vector feature(s). merge - 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. break - Split given vector line or boundary into two lines on location given by coords. If coords not given, breaks all selected lines at each intersection (based on v.clean, tool=break). snap - Snap vector features in given threshold. See also module v.clean. Note that this tool supports only snapping to nodes. Parameters snap and bgmap are ignored. connect - Connect selected lines or boundaries, the first given line is connected to the second one. The second line is broken if necessary. The lines are connected only if distance between them is not greater than snapping threshold distance thresh. chtype - Change feature type of selected geometry objects. Points are converted to centroids, centroids to points, lines to boundaries and boundaries to lines. vertexadd - Add vertex(ces) to the given vector lines or boundaries. Location of the new vertex is given by coord option. If -1 is given only first found line or boundary in bounding box is modified. vertexdel - Remove vertex(ces) specified by coords option. If -1 is given only first found line or boundary in bounding box is modified. vertexmove - Move vertex(ces) specified by coords option. Direction of the movement is specified by the move option. If -1 is given only first found line or boundary in bounding box is modified. Moved vertex can be snapped (defined snap) to nodes or vertices based on threshold distance thresh. zbulk - Assign z coordinate to 3D vector lines in given bounding box. The first found line will get z coordinate based on value given by zbulk parameter. Z coordinate of other selected lines will be increased by step given by zbulk parameter. This tool strictly requires bbox and zbulk parameter. Also input vector map must be 3D. select - Print comma separated list of selected line id’s. No editing is done.

Fix height of contours
Intput vector map contains 2D lines representing contours. Height can be assign to the contours using tool zbulk. First of all 2D lines need to be converted to 3D lines:
v.extrude input=line2 output=line3 height=0 type=line
All lines which intersect with the line given by coordinates will be modified. First found line will get height 1000 map units, height of other selected lines will be increased by 10 map units.
v.edit a2 tool=zbulk bbox=586121.25049368,4911970.21547109,603092.60466035,4927071.25713776 \
zbulk=1000,10