Dear Markus <br><br>Thanks for the reply. I am aware of the -g option, i did not pretent to change<br>the behaviour of -p or -g options in v.db.connect, i suppose that a new option<br>which behaves like g.region -p could a nice solution (but no very consistent) so<br>
nobody is hurt with the proposed change.<br><br>Regards<br>Patricio<br><br><br><div class="gmail_quote">2010/7/14 Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Jul 14, 2010 at 6:19 AM, Patricio Toledo<br>
<<a href="mailto:patricioantoniotoledo@gmail.com">patricioantoniotoledo@gmail.com</a>> wrote:<br>
> Dear GRASS Developers<br>
><br>
> This is a petition:<br>
><br>
> Is it possible to add a option to v.db.connect (like g.region -p) so<br>
> the output will be somelike:<br>
><br>
> $ v.db.connect -p map=test layer=2<br>
> driver=dbf<br>
> database=/the/database<br>
> table=thetable<br>
> column=thecolumn<br>
> layer=2<br>
><br>
> i know -p actually does something very similar but this -p output is very useful<br>
> in g.region, so one can do inside a shell-script:<br>
><br>
> $eval `v.db.connect -p map=test`<br>
><br>
> to recover database connection parameters.<br>
<br>
There is -g<br>
-g Print all map connection parameters and exit in shell script style<br>
Format: layer[/layer name] table key database driver<br>
but it doesn't work as advertised (it is not shell script style!):<br>
<br>
v.db.connect -g map=streets_wake<br>
1 streets_wake cat /home/neteler/grassdata/nc_spm_08/PERMANENT/dbf/ dbf<br>
<br>
even with fs="=" it makes a mess:<br>
v.db.connect -g map=streets_wake fs="="<br>
1=streets_wake=cat=/home/neteler/grassdata/nc_spm_08/PERMANENT/dbf/=dbf<br>
<br>
Essentially, the line breaks are missing.<br>
Should be a simple thing to fix.<br>
<font color="#888888"><br>
Markus<br>
</font></blockquote></div><br>