Details Ticket 3205


Comment | Reply | Take | Open


Serial Number 3205
Subject Why doesn't man v.to.db say how to load ALL values?!?
Area grass6
Queue grass
Requestors jidanni@jidanni.org
Owner none
Status resolved
Last User Contact Sat Sep 30 00:35:43 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Sep 30 00:35:43 2006 (2 yr ago)
Created Thu May 5 19:41:22 2005 (3 yr ago)

Transaction History Ticket 3205


Thu, May 5 2005 19:41:22    Request created by jidanni@jidanni.org  
Return-Path <jidanni@jidanni.org>
Delivered-To grass-bugs@lists.intevation.de
To grass-bugs@intevation.de
Subject Why doesn't man v.to.db say how to load ALL values?!?
From Dan Jacobson <jidanni@jidanni.org>
Date Thu, 05 May 2005 14:44:20 +0800
Message-ID <87ll6uw4sb.fsf@jidanni.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Spam-Status No, hits=-4.2 tagged_above=-999.0 required=3.0 tests=BAYES_00, DATE_IN_PAST_06_12
X-Spam-Level
Why doesn't man v.to.db say how to load ALL values from a vector to a
database?!?!

In man v.db.connect, some examples spell out default values anyway!

Seg fault, GRASS 6.0.0:
v.to.db -s map=iso op=count column=ddd
DBMI-DBF driver error:
Table 'isot' doesn't exist.
Error in db_open_select_cursor()
Updating database ... make: *** [surf] Segmentation fault

v.to.db -ps ignores -s.

$ v.to.db -p map=iso op=count
ERROR: This option requires one column
$ v.to.db -p map=iso op=count column=ddd
cat|count
1|1
I gave it a column but it changes its name.

Why does this allow saying output=c1?!?!:
$ v.category input=iso option=print output=c1

What do you know, one can do
v.category input=i2 option=print layer=1,2 #useful!
even though
v.category help says
       layer=integer
              Layer number Default: 1
and the comma is only mentioned in connection with chlayer!
Well gosh!

v.surf.rst says:
  Warning : there is less than 400 points for interpolation, no
  segmentation is necessary, to run the program faster, set segmax=400
  (see manual)
So I did, and it ran slower.


$ d.barscale help
Usage:
 d.barscale [-mflt] [bcolor=name] [tcolor=name] [at=x,y]
Well, if all items have default values, why must
$ d.barscale
throw me into a quiz system asking me to set values?! Because at=
doesn't really have a default!!


TOO bad this is now broken:
$ d.text.freetype \
east_north=233337.0,2678767.0 \
path=/usr/share/fonts/truetype/arphic/bkai00mp.ttf text=bla
Segmentation fault


What good is d.text if one cannot specify a background color?!?


Sat, Aug 20 2005 12:39:54    Area changed to grass6 by msieczka  
Thu, Sep 21 2006 17:50:34    Status changed to resolved by msieczka  
Thu, Sep 21 2006 17:50:34    Mail sent by msieczka  
jidanni@jidanni.org wrote (Thu, May 5 2005 19:41:22):

> Why doesn't man v.to.db say how to load ALL values from a vector to a
> database?!?!

I don't understand what you mean. As you won't reply (you never do), I'm
taking liberty to treat the issue as "fixed", whatever stupid my attitude seems.
> In man v.db.connect, some examples spell out default values anyway!

Ditto.

> Seg fault, GRASS 6.0.0:
> v.to.db -s map=iso op=count column=ddd
> DBMI-DBF driver error:
> Table 'isot' doesn't exist.
> Error in db_open_select_cursor()
> Updating database ... make: *** [surf] Segmentation fault

Can't reproduce. Works for me.

> v.to.db -ps ignores -s.

Actually -s alone is ignored too (I guess). I'll investigate and fill a
separate report for that. Thanks.

> $ v.to.db -p map=iso op=count
> ERROR: This option requires one column
> $ v.to.db -p map=iso op=count column=ddd
> cat|count
> 1|1
> I gave it a column but it changes its name.

Actually it doens't print the column name but the name of the feature you
declared uisng 'option=count'. This looks OK.

> Why does this allow saying output=c1?!?!:
> $ v.category input=iso option=print output=c1
> 
> What do you know, one can do
> v.category input=i2 option=print layer=1,2 #useful!
> even though
> v.category help says
>        layer=integer
>               Layer number Default: 1
> and the comma is only mentioned in connection with chlayer!
> Well gosh!

Fixed - now manual says:
layer=integer[,integer,...]

> v.surf.rst says:
>   Warning : there is less than 400 points for interpolation, no
>   segmentation is necessary, to run the program faster, set segmax=400
>   (see manual)
> So I did, and it ran slower.

Oh gosh.

> $ d.barscale help
> Usage:
>  d.barscale [-mflt] [bcolor=name] [tcolor=name] [at=x,y]
> Well, if all items have default values, why must
> $ d.barscale
> throw me into a quiz system asking me to set values?! Because at=
> doesn't really have a default!!
> 
> 
> TOO bad this is now broken:
> $ d.text.freetype \
> east_north=233337.0,2678767.0 \
> path=/usr/share/fonts/truetype/arphic/bkai00mp.ttf text=bla
> Segmentation fault

Can't reproduce - works for me.

> What good is d.text if one cannot specify a background color?!?

Fill a wish for that. Note that d.text.freetype and d.text have been merged
into d.text.new recently. Both will be dropped in Grass 7 and d.text.new ->
d.text.

Cheers,
Maciek
Thu, Sep 21 2006 18:07:59    Mail sent by msieczka  
msieczka wrote (Thu, Sep 21 2006 17:50:34):

Dan wrote:

>> v.to.db -ps ignores -s.
 
> Actually -s alone is ignored too (I guess). I'll investigate and fill a
> separate report for that. Thanks.

I double-checked that and I was wrong: -s alone in *not* ignored. Also I don't
find the fact that -p takes over -s if both issued - they can't be used
together anyway - both "print *only*" a a particular kind of output and thats
obvious from the manual.

However there is a problem that v.to.db -s issues dumb 
GRASS_INFO_WARNING(16733,1): Cat 1: row already exists (not inserted)

instead of just printing the sql statement used. I'll report that.

Maciek
Sun, Sep 24 2006 17:13:14    Mail sent by jidanni@jidanni.org  
Return-Path <jidanni@jidanni.org>
Delivered-To grass-bugs@lists.intevation.de
From Dan Jacobson <jidanni@jidanni.org>
To Maciek Sieczka via RT <grass-bugs@intevation.de>
Subject Re: [bug #3205] (grass) Why doesn't man v.to.db say how to load ALL values?!?
References <20060921155034.4A18810015B@lists.intevation.de>
Date Fri, 22 Sep 2006 00:47:08 +0800
Message-ID <87odt9b20j.fsf@jidanni.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-4.632 tagged_above=-999 required=3 tests=[BAYES_00=-5, PLING_QUERY=0.368]
X-Spam-Level
>>>>> "H" == Maciek Sieczka via RT <grass-bugs@intevation.de> writes:

H> jidanni@jidanni.org wrote (Thu, May 5 2005 19:41:22):
>> Why doesn't man v.to.db say how to load ALL values from a vector to a

>> database?!?!



H> I don't understand what you mean. As you won't reply (you never do), I'm

that is because that was May 2005 and now is Sep 2006 and I haven't
used grass in so long that I don't know what I wrote and ....


H> taking liberty to treat the issue as "fixed", whatever stupid my attitude
seems.

OK, I guess


Sun, Sep 24 2006 17:13:14    Status changed to open by _rt_system  
Sat, Sep 30 2006 00:35:43    Status changed to resolved by msieczka  
Sat, Sep 30 2006 00:35:43    Mail sent by msieczka  
Hi Dan, so you are back :). Closing the ticket again (your recent post
re-opened it).

Maciek
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request