Note: A new GRASS GIS stable version has been released: GRASS GIS 7. Go directly to the new manual page here
v.edit supports only "simple" vector features: points, centroids, lines and boundaries. Currently, only 2D vector features (except of tool zbulk) are supported.
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'"
v.edit tool=create map=vectmap
v.out.ascii in=roads format=standard > roads.txt; v.edit tool=create map=vectmap input=roads.txt
cat roads.txt | v.edit tool=create map=vectmap input=-
echo "P 1 1 640794 214874 1 1" | v.edit -n tool=add map=vectmap # insert new row for each category in attribute table if doesn't exist yet v.to.db map=vectmap option=cat
v.out.ascii in=railroads format=standard | v.edit tool=add map=vectmap
v.edit tool=delete map=roads cats=1,2
v.edit -r tool=delete map=roads cats=1,2
g.region -d; v.edit tool=delete map=roads cats=1,2 coords=600952.625,4926107
v.edit map=roads tool=delete \ coord=592542.892,4924766.996,603389.062,4918292.187 \ thresh=1000 cat=1,2
v.edit map=roads tool=copy bgmap=archsites cat=1
v.edit tool=move map=archsites coord=602580,4918480 th=1e-2 move=1000,1000
v.edit tool=move map=roads cat=1 move=1000,-1000 snap=node thresh=-1,10
v.edit tool=move map=roads bbox=601530,4921560,602520,4922310 move=-1000,1000
v.edit tool=flip map=streams cats=1-9999 type=line
v.edit tool=catadd map=roads \ polygon=599877.75,4925088.375,597164.812,4922524.5,601338.562,4920914.625 \ layer=2 cat=1,3-5
v.edit tool=catdel map=roads id=1 cats=5
v.edit map=roads tool=merge cat=4
v.edit map=roads tool=break coords=604268,4923570 id=810 thresh=50
v.edit map=roads tool=break cat=1
v.edit map=roads id=1-9999 tool=snap thresh=-1,20 type=line
v.edit map=roads tool=connect id=48,565
v.edit map=roads tool=connect id=48,565,60,50 thresh=-1,700
v.edit tool=vertexadd map=roads coords=600952,4926107 thresh=1
v.edit tool=vertexdel map=roads coord=593191.608,4925684.849 \ thresh=1-e1 cats=1
v.edit tool=vertexmove map=roads cats=1-10 coord=604441,4921088 \ thresh=100 move=1000,1000
v.edit map=soils@PERMANENT tool=select \ bbox=595733.8125,4919781.75,598536.1875,4917396.75 --q
d.erase; d.vect roads; d.vect -i map=roads cats=`v.edit map=roads tool=select \ coord=592542.89243878,4924766.99622811,603389.0625,4918292.1875 \ thresh=1000 --q` col=red
v.edit map=roads tool=select query=length thresh=-1,0,-10
v.edit map=roads tool=select bbox=598260,4919730,605100,4926240 query=length thresh=-1,0,200
v.extrude input=line2 output=line3 height=0 type=line
v.edit a2 tool=zbulk bbox=586121.25049368,4911970.21547109,603092.60466035,4927071.25713776 \ zbulk=1000,10
See also wxGUI vector digitizing tool.
Last changed: $Date: 2012-04-07 07:53:42 -0700 (Sat, 07 Apr 2012) $
Main index - vector index - Full index
© 2003-2016 GRASS Development Team