[GRASSweb-list]markus: web/grass51/tutorial attrib_storage.html,1.9,1.10 examples.html,1.8,1.9 geom_storage.html,1.7,1.8
grass at intevation.de
grass at intevation.de
Fri Jan 24 10:08:34 EST 2003
Author: markus
Update of /grassrepository/web/grass51/tutorial
In directory doto:/tmp/cvs-serv3706
Modified Files:
attrib_storage.html examples.html geom_storage.html
Log Message:
the old DB is no longer there, now a dbln file for each map which defines map geometry link to attributes table(s)
Index: attrib_storage.html
===================================================================
RCS file: /grassrepository/web/grass51/tutorial/attrib_storage.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- attrib_storage.html 24 Jan 2003 14:27:18 -0000 1.9
+++ attrib_storage.html 24 Jan 2003 15:08:32 -0000 1.10
@@ -76,11 +76,12 @@
<li>mySQL database
</ul>
-The connection of a vector map to an attribute table is defined in the
-<tt>DB</tt> file. This file is currently a text file (ASCII) and must
-be created in the MAPSET subdirectory. Each line in the DB file refers
-to a map. Wildcards and inheritance from previous lines is implemented.
-See some <tt>DB</tt> file details <a href="http://freegis.org/cgi-bin/viewcvs.cgi/~checkout~/grass51/doc/vector/vector.html#attr">here</a>.
+The connection of a vector map to an attribute table (except for SHAPE) is
+defined in a <tt>dbln</tt> file. This file is a text file (ASCII) and must
+be created in the directory or the vector map (where 'head' and 'frmt'
+live). Each line in the DB file refers to a map. Wildcards and inheritance
+from previous lines is implemented. See some <tt>dbln</tt> file details <a
+href="http://freegis.org/cgi-bin/viewcvs.cgi/~checkout~/grass51/doc/vector/vector.html#attr">here</a>.
<center>
<DEFANGED_IMG src="51attributes.jpg" alt="GRASS 5.1 attributes model">
@@ -97,26 +98,23 @@
When a definition defines more fields for one map i.e. in one
map the same vector features are linked to several attribute tables. <p>
-For each pair <tt>map + field</tt> must be defined table, key column,
-database, driver. This definition must be written to <tt>$MAPSET/DB</tt>
-text file. Each row in DB file contains names separated by spaces in
-following order ([] - optional):
+For each pair <tt>field</tt> must be defined table, key column, database,
+driver. This definition must be written to <tt>$MAPSET/vector/MAP/dbln</tt>
+text file. Each row in <tt>dbln</tt> file contains names separated by spaces
+in following order ([] - optional):
<pre>
-map[@mapset] field table [key [database [driver]]]
+field table [key [database [driver]]]
</pre>
If key, database or driver are omited (on second and higher row only) last
-definition is used. Definition from DB file in other mapset may be
-overwritten by definition in current mapset if mapset is specified with map
-name.
+definition is used.
<p>
-Wild cards * and ? may be used in map and mapset names. Variables
-$GISDBASE, $LOCATION, $MAPSET, $MAP, $FIELD may be used in table, key,
-database and driver names. Note that $MAPSET is not current mapset but
-mapset of the map the rule is defined for.
-
+Wild cards * and ? may be used. Variables GISDBASE, $LOCATION, $FIELD may
+$be used in table, key, database and driver names.
+Usually the <tt>dbln</tt> file is either generated by a GRASS command or
+pretty straightforward to write.
<p><table width="100%" cellpadding="3" border="0">
<tr><td align="left" bgcolor="#B0F0B0"><font color="#00000"><big><b>
@@ -347,7 +345,7 @@
If, depending on the definition of the database 'grass51test' a password is
required, a pop-up dialog window will ask you (alternatively you could supply
-',password=secretword' in DB file and db.connect line, which is not
+',password=secretword' in <tt>dbln</tt> file and db.connect line, which is not
recommended for security reasons).
This should connect the map to the table. db.describe will print table name and
Index: examples.html
===================================================================
RCS file: /grassrepository/web/grass51/tutorial/examples.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- examples.html 24 Jan 2003 14:27:18 -0000 1.8
+++ examples.html 24 Jan 2003 15:08:32 -0000 1.9
@@ -47,15 +47,16 @@
timestamp at bottom)
<ul>
-<li>d.erase d.m d.mon d.path d.rast d.vect d.what.vect d.zoom
-<li>db.columns db.copy db.createdb db.describe db.dropdb db.execute
+<li>d.erase d.m d.mon d.path d.rast d.vect d.what.rast d.what.vect d.zoom
+<li>db.columns db.copy db.createdb db.describe db.dropdb db.execute
db.tables db.connect db.databases db.drivers db.droptable db.select
-<li>g.gisenv g.mapsets g.region
+ postgisdb
+<li>g.copy g.gisenv g.list g.mapsets g.region g.remove g.rename
<li>nviz
-<li>v.build v.digit v.clean.test v.in.ascii v.rand.poly v.topo.check
- v.build.polylines v.convert v.info v.shape.register v.category
- v.db.connect v.digit v.out.ascii v.patch v.shape.unregister v.clean
- v.extract v.out.ogr v.surf.rst
+<li>v.build v.build.polylines v.category v.clean v.convert v.db.connect
+ v.digit v.extract v.format v.in.ascii v.info v.in.sites v.out.ascii
+ v.out.ogr v.patch v.shape.register v.shape.unregister v.surf.rst
+ v.topo.check
<li>
If you start a module just by name, a related <a
href=http://mpa.itc.it/radim/g51/d.vect-gui.jpg>GUI window pops up</a>.
Index: geom_storage.html
===================================================================
RCS file: /grassrepository/web/grass51/tutorial/geom_storage.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- geom_storage.html 24 Jan 2003 14:27:18 -0000 1.7
+++ geom_storage.html 24 Jan 2003 15:08:32 -0000 1.8
@@ -119,6 +119,9 @@
<div class="code"><pre>
v.shape.register markveggy.shp
+#or you can use (nice GUI):
+v.format
+
#get info about vector map:
v.info markveggy.shp
More information about the grass-web
mailing list