[GRASSweb-list]markus: web/grass51 examples.html,1.6,1.7

grass at intevation.de grass at intevation.de
Tue Nov 5 08:33:58 EST 2002


Author: markus

Update of /grassrepository/web/grass51
In directory doto:/tmp/cvs-serv25128

Modified Files:
	examples.html 
Log Message:
cosmetics

Index: examples.html
===================================================================
RCS file: /grassrepository/web/grass51/examples.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- examples.html	4 Nov 2002 17:38:24 -0000	1.6
+++ examples.html	5 Nov 2002 13:33:55 -0000	1.7
@@ -44,7 +44,12 @@
 <p>
 d.m is a new display manager.
 
-<h2>Example 1: Convert 5.0 vector maps to 5.1</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 1: Convert 5.0 vector maps to 5.1
+</b></big></font></td></tr></table>
+
+
 You can run 5.1 (at the same time) on a 5.0 location without problems.<br>
 To convert 5.0 vector data to 5.1, run:
 <pre>
@@ -54,7 +59,11 @@
 Vector maps from 5.0 and 5.1 do not interfere (different directories),
 so you can use the  same names.
 
-<h2>Example 2: Export of 5.1 vector map to GRASS 5.0</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica">
+<big><b>
+Example 2: Export of 5.1 vector map to GRASS 5.0
+</b></big></font></td></tr></table>
 
 <pre>
 v.out.ascii -o newmap.clean out=newmap.clean
@@ -62,7 +71,10 @@
 
 Then go to 5.0 and run v.in.ascii + v.support.
 
-<h2>Example 3: Registration of a map in SHAPE format</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 3: Registration of a map in SHAPE format
+</b></big></font></td></tr></table>
 
 Maps in SHAPE format can be used directly in GRASS 5.1 without importing
 them.
@@ -106,7 +118,10 @@
 </pre>
 
 
-<h2>Example 2: Extract vector data from map to new map with SQL statements</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 2: Extract vector data from map to new map with SQL statements
+</b></big></font></td></tr></table>
 
 <pre>
 db.connect database=/ssi0/ssi/neteler/grassdata/botswanaLL/shp
@@ -115,8 +130,10 @@
 v.extract markveggy.shp output=markveggy.1 where="VEGTYPE = 'PS'"
 </pre>
 
-
-<h2>Example 4: Export data using OGR</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 4: Export data using OGR
+</b></big></font></td></tr></table>
 
 Export to SHAPE format (generates /tmp/testogr.shp and related files):
 <pre>
@@ -130,7 +147,10 @@
 </pre>
 
 
-<h2>Example 5: Conversion of SHAPE map to GRASS 5.1 vector map</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 5: Conversion of SHAPE map to GRASS 5.1 vector map
+</b></big></font></td></tr></table>
 
 #WARNING: don't try this at home. Pretty unstable yet.
 
@@ -176,8 +196,11 @@
 d.what.vect newmap
 </pre>
 
-<h2>Example 6: Connecting GRASS 5.1 DBMI (attributes) to PostgreSQL
-      through ODBC</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 6: Connecting GRASS 5.1 DBMI (attributes) to PostgreSQL
+      through ODBC
+</b></big></font></td></tr></table>
 
 Possible communication between GRASS 5.1 and PostgreSQL database for
     attribute management: <p>
@@ -285,8 +308,12 @@
 </pre>
 </ul>
 
-<h2>Example 7: Export of SHAPE-DBF file to PostgreSQL and vector map
-      link to PostgreSQL through ODBC</h2>
+
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 7: Export of SHAPE-DBF file to PostgreSQL and vector map
+      link to PostgreSQL through ODBC
+</b></big></font></td></tr></table>
 
 <pre>
 #edit DB file and create an entry
@@ -305,12 +332,15 @@
 </pre>
 
 
-<h2>Example 8: SQL queries</h2>
+<p><table width="100%" cellpadding="3" border="0">
+<tr><td align="left" bgcolor="#10ef40"><font color="#00000" face="Helvetica"><big><b>
+Example 8: SQL queries
+</b></big></font></td></tr></table>
 
 <pre>
-#Select from table 'markveggy' (in database 'grass51test') all rows where 'vegtype = PS':
+#Select from table 'markveggy' (in database 'grass51test') all rows where 'vegtype = "IFA"':
 #NOTE: string attributes must be quoted:
-echo "select * from markveggy where vegtype = 'PS'" | db.execute
+echo "select * from markveggy where vegtype = 'IFA'" | db.select -ch
 
 #to be cont'ed...
 </pre>





More information about the grass-web mailing list