This file is indexed.

/usr/share/doc/grass-doc/html/v.label.html is in grass-doc 6.4.3-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS manual: v.label</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">

<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>

<h2>NAME</h2>
<em><b>v.label</b></em>  - Creates paint labels for a vector map from attached attributes.
<h2>KEYWORDS</h2>
vector, paint labels
<h2>SYNOPSIS</h2>
<b>v.label</b><br>
<b>v.label help</b><br>
<b>v.label</b> [-<b>ac</b>]  [<b>labels</b>=<em>name</em>]  <b>map</b>=<em>name</em> <b>column</b>=<em>name</em>  [<b>type</b>=<em>string</em>[,<i>string</i>,...]]   [<b>layer</b>=<em>integer</em>]   [<b>where</b>=<em>sql_query</em>]   [<b>xoffset</b>=<em>float</em>]   [<b>yoffset</b>=<em>float</em>]   [<b>reference</b>=<em>string</em>[,<i>string</i>,...]]   [<b>font</b>=<em>string</em>]   [<b>size</b>=<em>float</em>]   [<b>space</b>=<em>float</em>]   [<b>fontsize</b>=<em>integer</em>]   [<b>color</b>=<em>name</em>]   [<b>rotation</b>=<em>angle</em>]   [<b>width</b>=<em>float</em>]   [<b>hcolor</b>=<em>name</em>]   [<b>hwidth</b>=<em>float</em>]   [<b>background</b>=<em>name</em>]   [<b>border</b>=<em>name</em>]   [<b>opaque</b>=<em>yes|no</em>]   [--<b>verbose</b>]  [--<b>quiet</b>] 

<h3>Flags:</h3>
<DL>
<DT><b>-a</b></DT>
<DD>Rotate labels to align with lines</DD>

<DT><b>-c</b></DT>
<DD>Curl labels along lines</DD>

<DT><b>--verbose</b></DT>
<DD>Verbose module output</DD>
<DT><b>--quiet</b></DT>
<DD>Quiet module output</DD>
</DL>

<h3>Parameters:</h3>
<DL>
<DT><b>labels</b>=<em>name</em></DT>
<DD>Name for new paint-label file</DD>
<DD>If not given the name of the input map is used</DD>

<DT><b>map</b>=<em>name</em></DT>
<DD>Name of input vector map</DD>

<DT><b>column</b>=<em>name</em></DT>
<DD>Name of attribute column to be used for labels</DD>

<DT><b>type</b>=<em>string[,<i>string</i>,...]</em></DT>
<DD>Feature type</DD>
<DD>Options: <em>point,line,boundary,centroid</em></DD>
<DD>Default: <em>point,line,boundary,centroid</em></DD>

<DT><b>layer</b>=<em>integer</em></DT>
<DD>Layer number</DD>
<DD>A single vector map can be connected to multiple database tables. This number determines which table to use.</DD>
<DD>Default: <em>1</em></DD>

<DT><b>where</b>=<em>sql_query</em></DT>
<DD>WHERE conditions of SQL statement without 'where' keyword</DD>
<DD>Example: income &lt; 1000 and inhab &gt;= 10000</DD>

<DT><b>xoffset</b>=<em>float</em></DT>
<DD>Offset label in x-direction</DD>
<DD>Default: <em>0</em></DD>

<DT><b>yoffset</b>=<em>float</em></DT>
<DD>Offset label in y-direction</DD>
<DD>Default: <em>0</em></DD>

<DT><b>reference</b>=<em>string[,<i>string</i>,...]</em></DT>
<DD>Reference position</DD>
<DD>Options: <em>center,left,right,upper,lower</em></DD>
<DD>Default: <em>center</em></DD>

<DT><b>font</b>=<em>string</em></DT>
<DD>Font name</DD>
<DD>Default: <em>standard</em></DD>

<DT><b>size</b>=<em>float</em></DT>
<DD>Label size (in map-units)</DD>
<DD>Default: <em>100</em></DD>

<DT><b>space</b>=<em>float</em></DT>
<DD>Space between letters for curled labels (in map-units)</DD>

<DT><b>fontsize</b>=<em>integer</em></DT>
<DD>Label size (in points)</DD>
<DD>Options: <em>1-1000</em></DD>

<DT><b>color</b>=<em>name</em></DT>
<DD>Text color</DD>
<DD>Either a standard color name or R:G:B triplet</DD>
<DD>Default: <em>black</em></DD>

<DT><b>rotation</b>=<em>angle</em></DT>
<DD>Rotation angle (degrees counter-clockwise)</DD>
<DD>Options: <em>0-360</em></DD>
<DD>Default: <em>0</em></DD>

<DT><b>width</b>=<em>float</em></DT>
<DD>Border width</DD>
<DD>Options: <em>0-25</em></DD>
<DD>Default: <em>1</em></DD>

<DT><b>hcolor</b>=<em>name</em></DT>
<DD>Highlight color for text</DD>
<DD>Either a standard GRASS color, R:G:B triplet, or "none"</DD>
<DD>Default: <em>none</em></DD>

<DT><b>hwidth</b>=<em>float</em></DT>
<DD>Width of highlight coloring</DD>
<DD>Default: <em>0</em></DD>

<DT><b>background</b>=<em>name</em></DT>
<DD>Background color</DD>
<DD>Either a standard GRASS color, R:G:B triplet, or "none"</DD>
<DD>Default: <em>none</em></DD>

<DT><b>border</b>=<em>name</em></DT>
<DD>Border color</DD>
<DD>Either a standard GRASS color, R:G:B triplet, or "none"</DD>
<DD>Default: <em>none</em></DD>

<DT><b>opaque</b>=<em>yes|no</em></DT>
<DD>Opaque to vector (only relevant if background color is selected)</DD>
<DD>Options: <em>yes,no</em></DD>
<DD>Default: <em>yes</em></DD>

</DL>
<h2>DESCRIPTION</h2>

<em>v.label</em> makes a label-file from a GRASS vector map
with labels created from attributes in the attached table.
If no label file name is given, the name of the source map is used.


<h2>NOTES</h2>

If the <em>fontsize</em> option is given then the <em>space</em> option
is determined automatically <em>from the current display window</em>, 
otherwise the <em>space</em> option should be set roughly the same
as the <em>size</em> option.
<p>

<br>
A description of the labels file follows.<p> 
The file is located in <tt>$MAPSET/paint/labels/</tt>.
The file is a plain-text ASCII file containing the following fields:
<br>
<h4>Caution: The following information may be incomplete, out of date, 
and wrong!</h4>
<p>
The label information that must be provided in the <em>labels</em> file is:

<dl>
<dt><b>TEXT</b>:

<dd><!--Up to four lines of text.-->
Lines in multiple line labels will appear one above the next.
More than one line of text can be specified by notating the end of a 
line with a '<b><tt>\n</tt></b>'.<br>
(e.g. <tt>SPEARFISH<b>\n</b>SOUTH DAKOTA)</tt>.


<!-- I don't think it exists. -HB 6/2005
<dt><b>SKIP</b>:

<dd>yes|no. If <em>no</em>, label will be printed.  If
<em>yes</em>, the label will be retained in the file but
not printed.
-->

<dt><b>LOCATION</b>:

<dd>Determines where the text will be located on the
image.  The user specifies the easting and northing, and
(optionally) specifies a vertical and horizontal 
offset from the specified easting/northing. 
These offsets are provided to allow finer placement of labels and
are measured in local pixels. Thus in 
<a href="d.labels.html"><i>d.labels</i></a> the offset is 
measured in screen pixels, and in <a href="ps.map.html"><i>ps.map</i></a> 
the offset is measured in PostScript points (i.e. 1/72" steps).


<dt><b>PLACEMENT</b>:

<dd>Determines which part of the label to which the
location refers.  If placement is unspecified, the label is
centered (<em>center</em>), by default.  Label placement
may be specified as:

<PRE>
	lower left	(lower left corner of the text)
	lower right	(lower right corner of the text)
	lower center	(bottom center of the text)

	upper left	(upper left corner of the text)
	upper right	(upper right corner of the text)
	upper center	(top center of the text)

	center	(center of the text)

</PRE>


<dt><b>FONT</b>:

<dd>This specifies the font to use.
<p>
The following fonts are available for use with
  <a href="d.labels.html"><i>d.labels</i></a>:
<p><pre>
  cyrilc gothgbt gothgrt gothitt greekc greekcs greekp greeks
  italicc italiccs italict romanc romancs romand romans romant
  scriptc scripts
</pre>
<p>
Alternatively the path to a FreeType (.ttf) font may be given.
(for <em>d.labels</em> only)
<p>
The word <em>standard</em> can be used to specify the default font 
(which is <em>romans</em>).
<p>
Note <a href="ps.map.html"><em>ps.map</em></a> can override this setting
to use other fonts. Its default font is Helvetica.


<dt><b>TEXT SIZE</b>:

<dd>This determines the size of the letters. The <em>size</em>
specifies the vertical height of the letters in meters on
the ground. Thus text will grow or shrink depending on the
scale at which the map is drawn.
Alternatively <em>fontsize</em> can set the font size in normal font points.


<dt><A NAME="textcolor"><b>TEXT COLOR</b></a>:

<dd>This selects the text color.  If unspecified, the
label's text is drawn in <em>black</em>, by default.  The
text color can be specified in one of several ways:

<ol>
<li>By color name:

<br>
<tt>aqua black blue brown cyan gray green grey indigo
magenta orange purple red violet white yellow</tt>

<li>As red, green, blue component values. (0-255)<br>
for example: <tt>128:100:200</tt>

<!-- eh?
<li>As red, green, blue percentages.
for example: .5 .4 .7
<br>
(This form is not supported by 
<em><a href="d.labels.html">d.labels</a></em>.)

<li>By printer color number to get the exact printer color.
<br>
(This form is not supported by 
<em><a href="d.labels.html">d.labels</a></em>.)
-->

<li>Specify "<tt>none</tt>" to suppress the lettering.
</ol>


<dt><b>WIDTH</b>:

<dd>This determines the line thickness of the border box.<br>
The maximum value is 25.0.

<dt><b>HIGHLIGHT COLOR</b>:

<dd>The text can be highlighted in another color so that it
appears to be in two colors. The text is drawn first in
this color at a wider line width, and then redrawn in the
text color at the regular line width.  No highlight color
("<tt>none</tt>") is used by default, if unspecified by the
user.  To specify use of no highlight color, specify
"<tt>none</tt>".
(See <a href="#textcolor">TEXT COLOR</a>
above for a list of permissible color names.)


<dt><b>HIGHLIGHT WIDTH</b>:

<dd>Specifies how far from the text lines (in units of
pixels) the highlight color should extend.  The default
highlight width is set to <em>0</em> (i.e., no highlight
color).


<dt><b>BACKGROUND COLOR</b>:

<dd>Text may be boxed in a solid color by specifying a background color.
Specify "<tt>none</tt>" for no background.  The default background color
setting, if unspecified by the user, is <em>white</em>.
(See <a href="#textcolor">TEXT COLOR</a>
above for a list of permissible color names.)


<dt><b>BORDER COLOR</b>:

<dd>Select a color for the border around the background.
Specify "<tt>none</tt>" to suppress the border.
The default border color used, if unspecified, is <em>black</em>.
(See <a href="#textcolor">TEXT COLOR</a>
above for a list of permissible color names.)


<dt><b>OPAQUE TO VECTORS</b>:

<dd><em>yes|no</em>.  This field only has meaning if a
background color is selected.  <em>yes</em> will prevent
vector lines from entering the background.  <em>no</em>
will allow vector lines to enter the background.  The
default setting, if unspecified by the user, is
<em>yes</em>.

</dl>
<br>


<h2>EXAMPLE</h2>

Spearfish example with TrueType font (path may differ):

<div class="code"><pre>
v.label -a map=roads column=label labels=lroads \
        font=/usr/X11R6/lib/X11/fonts/TTF/luximri.ttf
d.vect roads
d.labels lroads
</pre></div>

Since the label files are simple text files, you can merge them together
if you like. For example if you set the label colors based on database
attributes using multiple runs with the <b>where</b> option.
This example uses the standard UNIX <tt>cat</tt> program.

<div class="code"><pre>
cd $MAPSET/paint/labels/
cat file1 file2 file3 file4 > file_all
</pre></div>



<h2>SEE ALSO</h2>
<em>
<a href="d.labels.html">d.labels</a><br>
<a href="ps.map.html">ps.map</a>
</em>
<br>


<h2>AUTHORS</h2>

Philip Verhagen (original s.label)<br>
Radim Blazek (GRASS 6 port)<br>
Hamish Bowman (enhancements)<br>

<p>
<i>Last changed: $Date: 2011-11-08 03:29:50 -0800 (Tue, 08 Nov 2011) $</i>
<HR>
<P><a href="index.html">Main index</a> - <a href="vector.html">vector index</a> - <a href="full_index.html">Full index</a></P>
<P>&copy; 2003-2013 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>