Skip to content

Commit

Permalink
avoid caps HTML tags
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49148 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
neteler committed Nov 8, 2011
1 parent 72a0ee5 commit e437cd9
Show file tree
Hide file tree
Showing 402 changed files with 2,418 additions and 4,686 deletions.
2 changes: 0 additions & 2 deletions db/db.columns/db.columns.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ <h2>EXAMPLE</h2>
</pre></div>

<p>

<em>If database parameters are already set</em><br>
<div class="code"><pre>
db.columns table=markveggy
</pre></div>

<p>

<em>List columns from Shape file with DBF attribute table</em><br>
<div class="code"><pre>
db.columns table=network driver=dbf database=/daten/grassdata/fire/PERMANENT/dbf/
Expand Down
15 changes: 5 additions & 10 deletions db/db.connect/db.connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ <h2>NOTES</h2>

Values are stored in the mapset's <tt>VAR</tt> file;
the connection is not tested for validity.
<p>
The <b>-p</b> flag will display the current connection parameters.
<p>
The <b>-c</b> flag will silently check if the connection parameters have
<p>The <b>-p</b> flag will display the current connection parameters.
<p>The <b>-c</b> flag will silently check if the connection parameters have
been set, and if not will set them to use GRASS's default values.
(useful in scripts before you attempt to create a new database table)
<p>
To connect a vector map to a database table, use <em>v.db.connect</em>
<p>To connect a vector map to a database table, use <em>v.db.connect</em>
or <em>v.db.addtable</em>.


Expand All @@ -42,8 +39,7 @@ <h3>SQLite</h3>
db.connect -p
db.tables -p
</pre></div>
<p>
The SQLite database is created automatically when used the first time.
<p>The SQLite database is created automatically when used the first time.


<h3>ODBC</h3>
Expand Down Expand Up @@ -122,5 +118,4 @@ <h2>AUTHOR</h2>

Radim Blazek, ITC-Irst, Trento, Italy

<p>
<i>Last changed: $Date$</i>
<p><i>Last changed: $Date$</i>
3 changes: 1 addition & 2 deletions db/db.copy/db.copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ <h2>AUTHOR</h2>

Radim Blazek, ITC-irst, Trento, Italy

<p>
<i>Last changed: $Date$</i>
<p><i>Last changed: $Date$</i>
1 change: 0 additions & 1 deletion db/db.createdb/db.createdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ <h2>EXAMPLE</h2>
</pre></div>

<p>

<em>Create a new PostgreSQL database (if PostgreSQL connection is established
through pg driver)</em><br>
<div class="code"><pre>
Expand Down
3 changes: 1 addition & 2 deletions db/db.drivers/db.drivers.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ <h2>DESCRIPTION</h2>
<h2>EXAMPLE</h2>

Show all installed GRASS database drivers:
<p>
<div class="code"><pre>
<p><div class="code"><pre>
db.drivers -p
</pre></div>

Expand Down
42 changes: 14 additions & 28 deletions db/db.execute/db.execute.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ <h2>NOTES</h2>

<em>db.execute</em> only executes SQL statements and does not return
any data. If you need data returned from the database, use <em>db.select</em>.
<p>
If parameters for database connection are already set with
<p>If parameters for database connection are already set with
<a href="db.connect.html">db.connect</a>, they are taken as default values and
do not need to be specified each time.
<p>
If you have a large number of SQL commands to process, it is much much faster
<p>If you have a large number of SQL commands to process, it is much much faster
to place all the SQL statements into a text file and use <em>db.execute</em>'s
<b>input</b> file parameter than it is to process each statement individually
in a loop. If multiple instruction lines are given, each SQL line must end
with a semicolon.
<p>
Please see the individual <a href="sql.html">sql driver</a> pages for how to create
<p>Please see the individual <a href="sql.html">sql driver</a> pages for how to create
a new database.

<h2>EXAMPLES</h2>
Expand All @@ -27,63 +24,53 @@ <h2>EXAMPLES</h2>
echo 'create table soils (cat integer, soiltype varchar(10) )' | db.execute
</pre></div>

<p>
<em>Create a new table using a file with SQL statements:</em><br>
<p><em>Create a new table using a file with SQL statements:</em><br>
<div class="code"><pre>
db.execute driver=odbc database=g60test input=file.sql
</pre></div>

<p>
<em>Insert new row into attribute table:</em><br>
<p><em>Insert new row into attribute table:</em><br>
<div class="code"><pre>
echo "INSERT INTO nobugs (id,name,east_gb,north_gb) values (30,'Ala',1657340,5072301)" | db.execute
</pre></div>

<p>
<em>Update attribute entries to new value based on SQL rule:</em><br>
<p><em>Update attribute entries to new value based on SQL rule:</em><br>
<div class="code"><pre>
echo "UPDATE roads SET travelcost=5 WHERE cat=1" | db.execute
</pre></div>

<p>
<em>Update attribute entries to new value based on SQL rule:</em><br>
<p><em>Update attribute entries to new value based on SQL rule:</em><br>
<div class="code"><pre>
echo "UPDATE dourokukan SET testc=50 WHERE testc is NULL" | db.execute
</pre></div>

<p>
<em>Delete selected rows from attribute table:</em><br>
<p><em>Delete selected rows from attribute table:</em><br>
<div class="code"><pre>
echo "DELETE FROM gsod_stationlist WHERE latitude < -91" | db.execute
</pre></div>

<p>
<em>Add new column to attribute table:</em><br>
<p><em>Add new column to attribute table:</em><br>
<div class="code"><pre>
echo "ALTER TABLE roads ADD COLUMN length double" | db.execute
</pre></div>

<p>
<em>Column type conversion - update new column from existing column (all drivers except for DBF):</em><br>
<p><em>Column type conversion - update new column from existing column (all drivers except for DBF):</em><br>
<div class="code"><pre>
# 'z_value' is varchar and 'z' is double precision:
echo "update geodetic_pts SET z = CAST(z_value AS numeric)" | db.execute
</pre></div>

<p>
<em>Drop column from attribute table:</em><br>
<p><em>Drop column from attribute table:</em><br>
<div class="code"><pre>
echo "ALTER TABLE roads DROP COLUMN length" | db.execute
</pre></div>

<p>
<em>Drop table (not supported by all drivers)</em><br>
<p><em>Drop table (not supported by all drivers)</em><br>
<div class="code"><pre>
echo "DROP TABLE fmacopy" | db.execute
</pre></div>

<p>
<em>Update attribute with multiple SQL instructions in file (e.g., file.sql,
<p><em>Update attribute with multiple SQL instructions in file (e.g., file.sql,
instruction line must end with a semicolon):</em><br>
<div class="code"><pre>
UPDATE roads SET travelcost=5 WHERE cat=1;
Expand All @@ -92,8 +79,7 @@ <h2>EXAMPLES</h2>
cat file.sql | db.execute
</pre></div>

<p>
<em>Join table 'myroads' into table 'extratab' based on common 'cat' column values (not supported by DBF driver):</em><br>
<p><em>Join table 'myroads' into table 'extratab' based on common 'cat' column values (not supported by DBF driver):</em><br>
<div class="code"><pre>
echo "UPDATE extratab SET names=(SELECT label FROM myroads WHERE extratab.cat=myroads.cat);" | db.execute
</pre></div>
Expand Down
6 changes: 2 additions & 4 deletions db/db.login/db.login.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ <h2>EXAMPLES</h2>
db.login user=bacava
</pre></div>

<p>
Example 2: Username and password specified (note that the command
<p>Example 2: Username and password specified (note that the command
lines history will store the password in this way):

<div class="code"><pre>
db.login user=bacava pass=secret
</pre></div>

<p>
Example 3: Username and empty password specified (note that the command
<p>Example 3: Username and empty password specified (note that the command
lines history will store the password in this way):

<div class="code"><pre>
Expand Down
4 changes: 0 additions & 4 deletions db/db.select/db.select.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,24 @@ <h2>EXAMPLES</h2>
</pre></div>

<p>

<em>Select all from table roads</em><br>
<div class="code"><pre>
db.select -c driver=odbc database=g51test table=roads input=file.sql > result.csv
</pre></div>

<p>

<em>Select some string attribute, exclude others:</em><br>
<div class="code"><pre>
echo "SELECT * FROM archsites WHERE str1 &lt;&gt; 'No Name'" | db.select
</pre></div>

<p>

<em>Select some string attribute with ZERO length:</em><br>
<div class="code"><pre>
echo "SELECT * FROM archsites WHERE str1 IS NULL" | db.select
</pre></div>

<p>

<em>Select coordinates from PostGIS table:</em><br>
<div class="code"><pre>
echo "SELECT x(geo),y(geo) FROM localizzazione" | db.select
Expand Down
1 change: 0 additions & 1 deletion db/db.tables/db.tables.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ <h2>EXAMPLES</h2>
</pre></div>

<p>

<em>List all tables of existing dbf database</em><br>
<div class="code"><pre>
db.tables driver=dbf database=/home/user/grassdata/fire/PERMANENT/dbf
Expand Down
15 changes: 7 additions & 8 deletions display/d.barscale/d.barscale.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ <h2>NOTE</h2>
<h2>SEE ALSO</h2>

<em>
<a href="d.graph.html">d.graph</A><br>
<a href="d.grid.html">d.grid</A><br>
<a href="d.legend.html">d.legend</A><br>
<a href="d.measure.html">d.measure</A><br>
<a href="d.where.html">d.where</A><br>
<a href="g.region.html">g.region</A><br>
<a href="d.graph.html">d.graph</a><br>
<a href="d.grid.html">d.grid</a><br>
<a href="d.legend.html">d.legend</a><br>
<a href="d.measure.html">d.measure</a><br>
<a href="d.where.html">d.where</a><br>
<a href="g.region.html">g.region</a><br>
</em>


<h2>AUTHOR</h2>
unknown.

<p>
<i>Last changed: $Date$</i>
<p><i>Last changed: $Date$</i>
2 changes: 1 addition & 1 deletion display/d.colorlist/d.colorlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2>DESCRIPTION</h2>

<h2>SEE ALSO</h2>

<em><a href="d.colors.html">d.colors</A></em><br>
<em><a href="d.colors.html">d.colors</a></em><br>

<h2>AUTHOR</h2>

Expand Down
35 changes: 11 additions & 24 deletions display/d.colors/d.colors.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ <h2>DESCRIPTION</h2>
raster map to the graphics monitor and then running the program
<em>d.colors</em>.

<p>
Any color changes made using <em>d.colors</em> will not immediately be
<p>Any color changes made using <em>d.colors</em> will not immediately be
shown on the graphics display; however, any color changes saved will
still alter the map's color table and will appear next time the raster
map layer is redisplayed (see <em><a href="d.colortable.html">d.colortable</A></em>).
map layer is redisplayed (see <em><a href="d.colortable.html">d.colortable</a></em>).

<p>
The user must first display the relevant raster map layer to the
<p>The user must first display the relevant raster map layer to the
active frame on the graphics monitor (e.g., using
<em><a href="d.rast.html">d.rast</A></em>) before running
<em><a href="d.rast.html">d.rast</a></em>) before running
<em>d.colors</em>. The user can then either enter the name of the
raster map layer whose color table is to be changed on the command
line (e.g., by typing: <tt>d.colors map=soils</tt>), or type
Expand All @@ -24,11 +22,10 @@ <h2>DESCRIPTION</h2>
<em>d.colors</em> will ask the user to enter the name of an existing
raster map layer using the standard GRASS interface.

<p>
In either case, the user is then presented with the <em>d.colors</em>
<p>In either case, the user is then presented with the <em>d.colors</em>
command menu, shown below.
<!-- This menu is the same as the category and color
changing portion of the <em><a href="d.display.html">d.display</A></em>
changing portion of the <em><a href="d.display.html">d.display</a></em>
menu. -->
The <em>d.colors</em> commands are listed beneath the Category
Pointer Movement, Color Modification, Replotting Screen, and Quitting
Expand Down Expand Up @@ -86,7 +83,6 @@ <h2>DESCRIPTION</h2>
current color.

<p>

Changing colors - The color associated with the current category can be
changed with the
<b>"R, r, G, g, B,"</b>
Expand All @@ -107,7 +103,6 @@ <h2>DESCRIPTION</h2>
intensities are listed on the text screen in as percentages.

<p>

Keys <b>I</b> and <b>i</b> increase and decrease the
percentage change that each keystroke of one of the color
keys (<em>R, r, G, g, B, b</em>) causes in its respective
Expand All @@ -116,7 +111,6 @@ <h2>DESCRIPTION</h2>
red component of the current category by 10%.

<p>

Highlight - The
<b>h</b>
key toggles between the current category color and the current
Expand All @@ -130,14 +124,12 @@ <h2>DESCRIPTION</h2>
at any one time.

<p>

Saving the current color table -
Pressing the <b>c</b> key will save the current color table as you have
modified it. This table will then be used next time you
display or paint this raster map layer.

<p>

Color table toggle - Different types of color tables are suitable for
different raster map layers.
The key
Expand All @@ -146,15 +138,13 @@ <h2>DESCRIPTION</h2>
scale; smooth changing color wave; random colors; and the saved color table.

<p>

Color table shift - The entire table is shifted up and down using the
<b>+</b>
and
<b>-</b>
keys.

<p>

Quitting the <em>d.colors</em> program - Pressing the
<b>Q</b> key will cause you to quit the <em>d.colors</em>
program. If colors have been modified but not saved,
Expand All @@ -172,16 +162,14 @@ <h2>DESCRIPTION</h2>
<h2>NOTES</h2>

<p>

The map whose color table is to be altered with
<em>d.colors</em> must already be on display in the active
display frame on the graphics monitor before
<em>d.colors</em> is run. This can be done using the
command <em><a href="d.rast.html">d.rast</a> map=name</em> (where <em>name</em> is a raster map
layer whose color table the user wishes to alter).

<p>
Some color monitors may not support the full range of colors required
<p>Some color monitors may not support the full range of colors required
to display all of the map's categories listed in the map's color table.
However, regardless of whether the user can see the color changes he is
effecting to a map's color table, any changes to a map's color table
Expand All @@ -190,16 +178,15 @@ <h2>NOTES</h2>
<h2>SEE ALSO</h2>

<em>
<a href="d.colortable.html">d.colortable</A>,
<a href="d.rast.html">d.rast</A>,
<a href="r.colors.html">r.colors</A>
<a href="d.colortable.html">d.colortable</a>,
<a href="d.rast.html">d.rast</a>,
<a href="r.colors.html">r.colors</a>
</em>

<h2>AUTHOR</h2>

James Westervelt, U.S. Army Construction Engineering
Research Laboratory

<p>
<i>Last changed: $Date$</i>
<p><i>Last changed: $Date$</i>

Loading

0 comments on commit e437cd9

Please sign in to comment.