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

« back to all changes in this revision

Viewing changes to vector/v.db.select/v.db.select.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.select</em> prints attributes of a vector map from one or several
 
4
user selected attribute table columns.
 
5
 
 
6
<h2>EXAMPLES</h2>
 
7
 
 
8
All examples are based on the North Carolina sample dataset.
 
9
 
 
10
<h3>Select and show entire table</h3>
 
11
 
 
12
<div class="code"><pre>
 
13
v.db.select map=roadsmajor
 
14
cat|MAJORRDS_|ROAD_NAME|MULTILANE|PROPYEAR|OBJECTID|SHAPE_LEN
 
15
1|1|NC-50|no|0|1|4825.369405
 
16
2|2|NC-50|no|0|2|14392.589058
 
17
3|3|NC-98|no|0|3|3212.981242
 
18
4|4|NC-50|no|0|4|13391.907552
 
19
...
 
20
</pre></div>
 
21
 
 
22
<h3>Select and show single column from table</h3>
 
23
 
 
24
Note: multiple columns can be specified as comma separated list.
 
25
 
 
26
<div class="code"><pre>
 
27
v.db.select map=roadsmajor column=ROAD_NAME
 
28
NC-50
 
29
NC-50
 
30
NC-98
 
31
NC-50
 
32
NC-98
 
33
...
 
34
</pre></div>
 
35
 
 
36
<h3>Print region extent of selected vector features</h3>
 
37
 
 
38
<div class="code"><pre>
 
39
v.db.select -r map=roadsmajor where="ROAD_NAME = 'NC-98'"
 
40
n=248425.389891
 
41
s=245640.640081
 
42
w=635906.517653
 
43
e=661979.801880
 
44
</pre></div>
 
45
 
 
46
<h3>Select empty vector features (no data entries)</h3>
 
47
 
 
48
<div class="code"><pre>
 
49
v.db.select geonames_wake where="ALTERNATEN IS NULL"
 
50
cat|GEONAMEID|NAME|ASCIINAME|ALTERNATEN|FEATURECLA|FEATURECOD|...
 
51
8|4498303|West Raleigh|West Raleigh||P|PPL|US||NC|338759|123|...
 
52
14|4459467|Cary|Cary||P|PPL|US||NC|103945|146|152|America/Iqaluit|...
 
53
31|4452808|Apex|Apex||P|PPL|US||NC|30873|167|134|America/Iqaluit|...
 
54
...
 
55
</pre></div>
 
56
 
 
57
 
 
58
<h3>Select empty vector features (no data entries)</h3>
 
59
 
 
60
<div class="code"><pre>
 
61
v.db.select geonames_wake where="ALTERNATEN IS NOT NULL"
 
62
cat|GEONAMEID|NAME|ASCIINAME|ALTERNATEN|FEATURECLA|FEATURECOD|...
 
63
9|4487042|Raleigh|Raleigh|Raleigh,...
 
64
31299|4487056|Raleigh-Durham Airport|Raleigh-Durham Airport|...
 
65
...
 
66
</pre></div>
 
67
 
 
68
<h2>SEE ALSO</h2>
 
69
 
 
70
<em>
 
71
<a href="db.select.html">db.select</a>
 
72
</em>
 
73
 
 
74
<h2>AUTHORS</h2>
 
75
 
 
76
Radim Blazek, ITC-Irst, Trento, Italy<br>
 
77
Minimal region extent added by Martin Landa,
 
78
FBK-irst (formerly ITC-irst), Trento, Italy (2008/08)
 
79
 
 
80
<p><i>Last changed: $Date: 2014-11-28 15:41:54 +0100 (Fri, 28 Nov 2014) $</i>