Details Ticket 4557


Comment | Reply | Take | Open


Serial Number 4557
Subject problem with v.surf.rst cross validation
Area grass6
Queue grass
Requestors marie.gastine@yahoo.fr
Owner none
Status resolved
Last User Contact Wed Jul 5 14:21:36 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Jul 5 14:21:38 2006 (2 yr ago)
Created Thu Jun 8 12:57:48 2006 (2 yr ago)

Transaction History Ticket 4557


Thu, Jun 8 2006 12:57:48    Request created by guest  
Subject: problem with v.surf.rst cross validation

hi
I m using grass6.0
I m trying to use the function v.surf.rst
it does the interpolation
but when withou changing any parameters i try to do the cross validations
comes this error

v.surf.rst input=punti_interpolazione layer=0 dmax=4.999977 dmin=0.999995
cvdev=cross_test zmult=1.0 tension=40. smooth=0.1 segmax=40 npmin=100 -v 

Authors: original version -  H.Mitasova, L.Mitas, I. Kosinovsky, D.P. Gerdes
See manual pages for reference and publications T3

DBMI-DBF driver error:
SQL parser error in statement:
create table punti_interpolazione.cross_test ( cat integer, flt1 double precision)
Error in db_execute_immediate()


GRASS_INFO_ERROR(2693,1): Cannot create table: create table
punti_interpolazione.cross_test ( cat integer, flt1 double precision)

(end)

and i don t understand what is the problem, as there is not this pb for the
interpolation itself

thanks


Thu, Jun 8 2006 12:58:58    Request created by guest (as #4558)  
Subject: problem with v.surf.rst cross validation

hi
I m using grass6.0
I m trying to use the function v.surf.rst
it does the interpolation
but when withou changing any parameters i try to do the cross validations
comes this error

v.surf.rst input=punti_interpolazione layer=0 dmax=4.999977 dmin=0.999995
cvdev=cross_test zmult=1.0 tension=40. smooth=0.1 segmax=40 npmin=100 -v 

Authors: original version -  H.Mitasova, L.Mitas, I. Kosinovsky, D.P. Gerdes
See manual pages for reference and publications T3

DBMI-DBF driver error:
SQL parser error in statement:
create table punti_interpolazione.cross_test ( cat integer, flt1 double precision)
Error in db_execute_immediate()


GRASS_INFO_ERROR(2693,1): Cannot create table: create table
punti_interpolazione.cross_test ( cat integer, flt1 double precision)

(end)

and i don t understand what is the problem, as there is not this pb for the
interpolation itself

thanks


Thu, Jun 8 2006 14:18:43    Mail sent by hmitaso@unity.ncsu.edu  
Return-Path <hmitaso@unity.ncsu.edu>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0 (Apple Message framework v746.2)
In-Reply-To <20060608105748.1F3EB1005D8@lists.intevation.de>
References <20060608105748.1F3EB1005D8@lists.intevation.de>
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <412FF834-5B63-4CF6-985C-B1A1325229BB@unity.ncsu.edu>
Content-Transfer-Encoding 7bit
From Helena Mitasova <hmitaso@unity.ncsu.edu>
Subject Re: [GRASS-dev] [bug #4557] (grass) problem with v.surf.rst cross validation
Date Thu, 8 Jun 2006 08:18:37 -0400
To Request Tracker <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.746.2)
X-Virus-Scanned Symantec AntiVirus Scan Engine
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
What is -v at the end? This may not be the problem but the flag for  
CV should be -c

Helena

On Jun 8, 2006, at 6:57 AM, Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=4557
> ---------------------------------------------------------------------- 
> ---
>
> Subject: problem with v.surf.rst cross validation
>
> hi
> I m using grass6.0
> I m trying to use the function v.surf.rst
> it does the interpolation
> but when withou changing any parameters i try to do the cross  
> validations
> comes this error
>
> v.surf.rst input=punti_interpolazione layer=0 dmax=4.999977  
> dmin=0.999995
> cvdev=cross_test zmult=1.0 tension=40. smooth=0.1 segmax=40  
> npmin=100 -v
>
> Authors: original version -  H.Mitasova, L.Mitas, I. Kosinovsky,  
> D.P. Gerdes
> See manual pages for reference and publications T3
>
> DBMI-DBF driver error:
> SQL parser error in statement:
> create table punti_interpolazione.cross_test ( cat integer, flt1  
> double precision)
> Error in db_execute_immediate()
>
>
> GRASS_INFO_ERROR(2693,1): Cannot create table: create table
> punti_interpolazione.cross_test ( cat integer, flt1 double precision)
>
> (end)
>
> and i don t understand what is the problem, as there is not this pb  
> for the
> interpolation itself
>
> thanks
>
>
>
>
> -------------------------------------------- Managed by Request  
> Tracker
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev


Thu, Jun 8 2006 14:25:46    Mail sent by guest  
not in the new version (6.0) 
the flag is -v

if the flag was wrong it would give me the manual

marie
Sun, Jun 11 2006 12:39:38    User changed to marie.gastine@yahoo.fr by msieczka  
Sun, Jun 11 2006 12:39:58    Request 4558 merged into 4557 by msieczka (as #4558)  
Sun, Jun 11 2006 12:40:28    Area changed to grass6 by msieczka  
Sun, Jun 11 2006 13:17:48    Mail sent by msieczka  
Marie,

Indeed in Grass 6.0x for turning on the CV there is '-v'. In the newer Grass
6.1, as Helena says, there is '-c'.

Question for devs - is it good that we have the flags not preserved between
6.0 and 6.1?



Getting back to  Marie's problem

> v.surf.rst input=punti_interpolazione layer=0 dmax=4.999977 dmin=0.999995
> cvdev=cross_test zmult=1.0 tension=40. smooth=0.1 segmax=40 npmin=100 -v

> DBMI-DBF driver error:
> SQL parser error in statement:
> create table punti_interpolazione.cross_test ( cat integer, flt1 double
> precision)
> Error in db_execute_immediate()

Marie,

I don't why v.surf.rst is trying to create a table
'punti_interpolazione.cross_test' when your requested CV vector name is
'cross_test'. Especially that the dot in the table name is illegal
(http://grass.itc.it/grass61/manuals/html61_user/sql.html).

Moreover I can't reproduce the error in my Grass 6.02 instalation
(2006_01_28), using exactly the same command as you did. Are you sure you
pastes *exactly* the command you used, and that there was no dot in 'cvdev'
name by nay chance?

Can you try the latest 6.0x version, which is 6.02, and let us know how it
works? 6.0 is over a year old now.

Maciek
Mon, Jun 12 2006 06:35:45    Mail sent by hmitaso@unity.ncsu.edu  
Return-Path <hmitaso@unity.ncsu.edu>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0 (Apple Message framework v746.2)
In-Reply-To <20060611111748.C53481006A7@lists.intevation.de>
References <20060611111748.C53481006A7@lists.intevation.de>
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <CEC022A8-F105-4772-8C7C-14442726F952@unity.ncsu.edu>
Content-Transfer-Encoding 7bit
From Helena Mitasova <hmitaso@unity.ncsu.edu>
Subject Re: [bug #4557] (grass) problem with v.surf.rst cross validation
Date Sun, 11 Jun 2006 23:57:48 -0400
To Maciek Sieczka via RT <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.746.2)
X-Virus-Scanned Symantec AntiVirus Scan Engine
X-Spam-Status No, hits=0.0 tagged_above=-999.0 required=3.0 tests=
X-Spam-Level
On Jun 11, 2006, at 7:17 AM, Maciek Sieczka via RT wrote:

> Marie,
>
> Indeed in Grass 6.0x for turning on the CV there is '-v'. In the  
> newer Grass
> 6.1, as Helena says, there is '-c'.
>
> Question for devs - is it good that we have the flags not preserved  
> between
> 6.0 and 6.1?

No it is not. I am not sure why it is has changed, Helena
>
>
>
> Getting back to  Marie's problem
>
>> v.surf.rst input=punti_interpolazione layer=0 dmax=4.999977  
>> dmin=0.999995
>> cvdev=cross_test zmult=1.0 tension=40. smooth=0.1 segmax=40  
>> npmin=100 -v
>
>> DBMI-DBF driver error:
>> SQL parser error in statement:
>> create table punti_interpolazione.cross_test ( cat integer, flt1  
>> double
>> precision)
>> Error in db_execute_immediate()
>
> Marie,
>
> I don't why v.surf.rst is trying to create a table
> 'punti_interpolazione.cross_test' when your requested CV vector  
> name is
> 'cross_test'. Especially that the dot in the table name is illegal
> (http://grass.itc.it/grass61/manuals/html61_user/sql.html).
>
> Moreover I can't reproduce the error in my Grass 6.02 instalation
> (2006_01_28), using exactly the same command as you did. Are you  
> sure you
> pastes *exactly* the command you used, and that there was no dot in  
> 'cvdev'
> name by nay chance?
>
> Can you try the latest 6.0x version, which is 6.02, and let us know  
> how it
> works? 6.0 is over a year old now.
>
> Maciek
>
>
> -------------------------------------------- Managed by Request  
> Tracker


Mon, Jun 12 2006 09:20:46    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 12 Jun 2006 19:20:34 +1200
From Hamish <hamish_nospam@yahoo.com>
To Maciek Sieczka via RT <grass-bugs@intevation.de>
Cc hmitaso@unity.ncsu.edu, grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #4557] (grass) problem with v.surf.rst cross validation
Message-Id <20060612192034.5f679a03.hamish_nospam@yahoo.com>
In-Reply-To <20060611111748.C53481006A7@lists.intevation.de>
References <20060611111748.C53481006A7@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=0.5 tagged_above=-999.0 required=3.0 tests=FORGED_YAHOO_RCVD
X-Spam-Level
Maciek Sieczka wrote:
> Indeed in Grass 6.0x for turning on the CV there is '-v'. In the newer
> Grass 6.1, as Helena says, there is '-c'.
> 
> Question for devs - is it good that we have the flags not preserved
> between 6.0 and 6.1?

It is bad - any scripts or Books written for GRASS 6.0 should work with
any GRASS 6.x.

If "-v" is obsolete it should be described as depreciated in the
flag->description and trigger a G_warning() before setting "-c" to be
true & then run the module as the user intended.


Hamish


Thu, Jun 15 2006 15:28:04    Mail sent by guest  
i think that by mistake i changed the database connections and put something
under schema: punti_interpolation

how can I reset it back to nothing as it was before?

if i just put db.connect driver=dbf database=$GISDBASE/$LOCATION_NAME/$MAPSET/
dbf/ it leaves the old schema

thanks
marie
Fri, Jun 16 2006 07:42:42    Mail sent by guest  
The flag change was made long time ago, so there is no known
documentation written which could be wrong.
Also: there is a help flag and the error is unrelated
to the flag name.

Also: there were made a couple of changes to sync the
flags/parms of v.surf.rst and v.vol.rst which is more
important than maintaining a single flag 'till GRASS 7.

Markus
Fri, Jun 16 2006 08:20:25    Mail sent by mneteler  
Marie,

back to your problem:

GRASS_INFO_ERROR(2693,1): Cannot create table: create table
punti_interpolazione.cross_test ( cat integer, flt1 double precision)
                  ^^^^^!!!!

I assume that you cannot have a table name with dot in it,
this is not SQL compliant.

Markus
Wed, Jul 5 2006 14:21:36    Mail sent by mneteler  
... seems to be solved ...
Wed, Jul 5 2006 14:21:38    Status changed to resolved by mneteler  
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