[GRASS-user] Best way to reconnect tables in grass' databse

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Thu Nov 27 18:47:24 EST 2008


On Fri, 2008-11-28 at 00:43 +0100, Nikos Alexandris wrote:
> On Fri, 2008-11-28 at 00:18 +0100, Markus Neteler wrote:
> > On Fri, Nov 28, 2008 at 12:16 AM, Nikos Alexandris
> > <nikos.alexandris at felis.uni-freiburg.de> wrote:
> > ...
> > > This seem to require another treatment... ?
> > >
> > > # editing the file and saving changes
> > > nik at vertical:/usr/local/src/grass6_devel$ nano
> > > scripts/v.db.reconnect.all/v.db.reconnect.all.tmp.html
> > 
> > This is the temporary file, not the file in SVN (which
> > is description.html in 6.x and modulename.html in 7).
> > 
> > Just copy over your changes into the right html file and
> > svn diff will work.
> > 
> > Markus
> 
> Well, I thought so (that description is the file to be edited) but it
> (=description.html) has only one sentence in it:
> 
> cat /usr/local/src/grass6_devel/scripts/v.db.reconnect.all/description.html 
> <H2>DESCRIPTION</H2>
> 
> <EM>v.db.reconnect.all</EM> changes database connection of all layers of
> all vectors in the current mapset from old_database to database. If a
> link
> does not match the old_database it is left untouched.
> 
> <H2>AUTHOR</H2>
> Radim Blazek
> 
> <p>
> <i>Last changed: $Date: 2007-04-17 01:41:41 +0200 (Tue, 17 Apr 2007)
> $</i>
> 
> Anyhow, I'll copy the whole file (I think it's not wrong -- or is it?)
> 
> Cheers, Nikos

Sorry for the mail-traffic. Just more info to support my claim that the
"current" description.html is sort of "empty":

# copy the ".tmp.html" over to ".html" 
nik at vertical:/usr/local/src/grass6_devel$ cp
scripts/v.db.reconnect.all/v.db.reconnect.all.tmp.html
scripts/v.db.reconnect.all/description.html

# changes 
nik at vertical:/usr/local/src/grass6_devel$ svn diff
scripts/v.db.reconnect.all/

Index: scripts/v.db.reconnect.all/description.html
===================================================================
--- scripts/v.db.reconnect.all/description.html	(revision 34562)
+++ scripts/v.db.reconnect.all/description.html	(working copy)
@@ -1,3 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>GRASS GIS: v.db.reconnect.all</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.db.reconnect.all</b></em>  - Reconnects vectors to a new
database.
+<h2>KEYWORDS</h2>
+vector, database, attribute table
+<h2>SYNOPSIS</h2>
+<b>v.db.reconnect.all</b><br>
+<b>v.db.reconnect.all help</b><br>
+<b>v.db.reconnect.all</b> <b>old_database</b>=<em>string</em>
<b>new_database</b>=<em>string</em>  [<b>old_schema</b>=<em>string</em>]
[<b>new_schema</b>=<em>string</em>]   [--<b>verbose</b>]
[--<b>quiet</b>] 
+
+
+<h3>Parameters:</h3>
+<DL>
+<DT><b>old_database</b>=<em>string</em></DT>
+<DD>Name of old database. It needs to be the exact string which 
+appears as the fourth field printed by v.db.connect -g, i.e. with
substituted variables</DD>
+
+<DT><b>new_database</b>=<em>string</em></DT>
+<DD>Name of new database</DD>
+
+<DT><b>old_schema</b>=<em>string</em></DT>
+<DD>Old schema</DD>
+
+<DT><b>new_schema</b>=<em>string</em></DT>
+<DD>New schema</DD>
+
+</DL>
 <H2>DESCRIPTION</H2>
 
 <EM>v.db.reconnect.all</EM> changes database connection of all layers
of
@@ -9,3 +46,8 @@
 
 <p>
 <i>Last changed: $Date$</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-2008 <a href="http://grass.osgeo.org">GRASS Development
Team</a></p>
+</body>
+</html>

Nikos



More information about the grass-user mailing list