forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv.db.droprow.html
56 lines (41 loc) · 1.61 KB
/
v.db.droprow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<h2>DESCRIPTION</h2>
<em>v.db.droprow</em> removes vector object(s) (point, line, area, face etc.)
from a vector map through attribute selection in the table connected
to the given vector map. It automatically checks the connection for the specified
layer.
<h2>NOTES</h2>
v.db.droprow is a front-end to <em>v.extract</em> (reverse selection)
to allow easier usage.
The existing database connection(s) can be verified with <em>v.db.connect</em>.
<h2>EXAMPLES</h2>
Dropping all vector points without elevation attribute (North Carolina data set):<br>
<div class="code"><pre>
g.region raster=elevation -p
v.random output=rand5k_elev n=5000
v.db.addtable map=rand5k_elev column="elevation double precision"
v.what.rast vect=rand5k_elev rast=elevation column=elevation
# verify absence of some elevation attributes ("number of NULL attributes"):
v.univar rand5k_elev type=point column=elevation
# Remove all vector points lacking elevation attribute
v.db.droprow rand5k_elev output=rand5k_elev_filt where="elevation IS NULL"
# verify:
v.univar rand5k_elev_filt type=point column=elevation
</pre></div>
<h2>SEE ALSO</h2>
<em>
<a href="db.droptable.html">db.droptable</a>,
<a href="db.execute.html">db.execute</a>,
<a href="v.db.addcolumn.html">v.db.addcolumn</a>,
<a href="v.db.addtable.html">v.db.addtable</a>,
<a href="v.db.connect.html">v.db.connect</a>,
<a href="v.db.dropcolumn.html">v.db.dropcolumn</a>,
<a href="v.db.droptable.html">v.db.droptable</a>,
<a href="v.db.select.html">v.db.select</a>,
<a href="v.db.update.html">v.db.update</a>
</em>
<p>
<em>
<a href="sql.html">GRASS SQL interface</a>
</em>
<h2>AUTHOR</h2>
Markus Neteler