~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to scripts/v.db.droprow/v.db.droprow.html

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

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