[GRASS-dev] Re: [GRASS-user] trouble with v.rast.stats under WINGRASS

On 08/04/08 18:04, Niels Thevs wrote:

Dear GRASS users,

I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But I encountered the error messages below, though the vector and raster are in the same mapset.

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

An error occurred while converting vector to raster
G__open(r): mapset (PERMANENT) doesn't match xmapset (PERMANENT_3280.0)

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

Does anybody know, how to overcome this problem ?

This was fixed by Hamish here http://trac.osgeo.org/grass/changeset/30136

but apparently it did not get backported.

A quick fix for you is to click on the command in the Output window, so that you can edit it at the bottom and change the

vector=split1@PERMANENT_3280.0

into

vector=split1

and then push 'Run'.

A more permanent fix is to download the current version of the script from here:

http://trac.osgeo.org/grass/browser/grass/trunk/scripts/v.rast.stats/v.rast.stats

and replace you $GISBASE/scripts/v.rast.stats

with the downloaded file.

Moritz

Hi Moritz,

Moritz, does it probably has been fixed in RC6?

Niels, could you download and install WinGRASS-6.3.0RC6 (before uninstall
RC5 using Add/Remove programs utility) and check if v.rast.stats works in
it?

Thanks

Marco

-----Messaggio originale-----
Da: grass-dev-bounces@lists.osgeo.org
[mailto:grass-dev-bounces@lists.osgeo.org] Per conto di Moritz Lennert
Inviato: martedì 8 aprile 2008 23.03
A: Niels.Thevs@uni-greifswald.de
Cc: grass-user@lists.osgeo.org; GRASS devel; Hamish
Oggetto: [GRASS-dev] Re: [GRASS-user] trouble with v.rast.stats
underWINGRASS

On 08/04/08 18:04, Niels Thevs wrote:

Dear GRASS users,

I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But
I encountered the error messages below, though the vector and raster
are in the same mapset.

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

An error occurred while converting vector to raster
G__open(r): mapset (PERMANENT) doesn't match xmapset
(PERMANENT_3280.0)
G__open(r): mapset (PERMANENT) doesn't match xmapset
(PERMANENT_3280.0)

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

Does anybody know, how to overcome this problem ?

This was fixed by Hamish here http://trac.osgeo.org/grass/changeset/30136

but apparently it did not get backported.

A quick fix for you is to click on the command in the Output window, so that
you can edit it at the bottom and change the

vector=split1@PERMANENT_3280.0

into

vector=split1

and then push 'Run'.

A more permanent fix is to download the current version of the script from
here:

http://trac.osgeo.org/grass/browser/grass/trunk/scripts/v.rast.stats/v.rast.
stats

and replace you $GISBASE/scripts/v.rast.stats

with the downloaded file.

Moritz
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On 08/04/08 23:03, Moritz Lennert wrote:

On 08/04/08 18:04, Niels Thevs wrote:

Dear GRASS users,

I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But I encountered the error messages below, though the vector and raster are in the same mapset.

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

An error occurred while converting vector to raster
G__open(r): mapset (PERMANENT) doesn't match xmapset (PERMANENT_3280.0)

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

Does anybody know, how to overcome this problem ?

This was fixed by Hamish here http://trac.osgeo.org/grass/changeset/30136

but apparently it did not get backported.

Sorry, I correct myself: it was backported to RC6, so just install that version and you should be fine.

Moritz

Dear Moritz,

have many thanks for your reply. Unfortunately, I cannot download the RC6 from the download site under grass.itc.it. Where else can I find it ?

Best regards

Niels

Moritz Lennert schrieb:

On 08/04/08 23:03, Moritz Lennert wrote:

On 08/04/08 18:04, Niels Thevs wrote:

Dear GRASS users,

I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But I encountered the error messages below, though the vector and raster are in the same mapset.

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

An error occurred while converting vector to raster
G__open(r): mapset (PERMANENT) doesn't match xmapset (PERMANENT_3280.0)

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

Does anybody know, how to overcome this problem ?

This was fixed by Hamish here http://trac.osgeo.org/grass/changeset/30136

but apparently it did not get backported.

Sorry, I correct myself: it was backported to RC6, so just install that version and you should be fine.

Moritz

--

-----------------------------------------------------
Dr. Niels Thevs
Chair of Geobotany and Landscape Ecology
Institute of Botany and Landscape Ecology
Greifswald University
Grimmer Strasse 88
17487 Greifswald
Germany

Tel.: +49-3834-86-4137
Fax: +49-3834-86-4114

-----------------------------------------------------

Hi,

2008/4/9, Niels Thevs <nt001582@uni-greifswald.de>:

have many thanks for your reply. Unfortunately, I cannot download the RC6
from the download site under grass.itc.it. Where else can I find it ?

http://grass.osgeo.org/grass63/source/

Martin

Moritz Lennert schrieb:

> On 08/04/08 23:03, Moritz Lennert wrote:
>
>
> > On 08/04/08 18:04, Niels Thevs wrote:
> >
> >
> > > Dear GRASS users,
> > >
> > > I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But
I encountered the error messages below, though the vector and raster are in
the same mapset.
> > >
> > > split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)
> > >
> > > An error occurred while converting vector to raster
> > > G__open(r): mapset (PERMANENT) doesn't match xmapset
(PERMANENT_3280.0)
> > > G__open(r): mapset (PERMANENT) doesn't match xmapset
(PERMANENT_3280.0)
> > >
> > > split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)
> > >
> > > Does anybody know, how to overcome this problem ?
> > >
> >
> >
> > This was fixed by Hamish here
http://trac.osgeo.org/grass/changeset/30136
> >
> > but apparently it did not get backported.
> >
>
>
> Sorry, I correct myself: it was backported to RC6, so just install that
version and you should be fine.
>
> Moritz
>
>

--

-----------------------------------------------------
Dr. Niels Thevs
Chair of Geobotany and Landscape Ecology
Institute of Botany and Landscape Ecology
Greifswald University
Grimmer Strasse 88
17487 Greifswald
Germany

Tel.: +49-3834-86-4137
Fax: +49-3834-86-4114

-----------------------------------------------------

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

On 09/04/08 12:05, Martin Landa wrote:

Hi,

2008/4/9, Niels Thevs <nt001582@uni-greifswald.de>:

have many thanks for your reply. Unfortunately, I cannot download the RC6
from the download site under grass.itc.it. Where else can I find it ?

http://grass.osgeo.org/grass63/source/

Well that's the source if you want to compile yourself. Otherwise, use the installer available here:

http://grass.osgeo.org/grass63/binary/mswindows/

Moritz

Niels Thevs:
> Unfortunately, I cannot download the RC6 from the download site under
> grass.itc.it. Where else can I find it ?

Martin:

http://grass.osgeo.org/grass63/source/

In case it wasn't noticed, http://grass.itc.it/grass63/source/ etc. now
send:

[403 Forbidden]

Forbidden

You don't have permission to access /grass63/source/ on this server.

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Now, I installed WINGRASS 63 RC6. The errors regarding v.rast.stats (see below) do not occur anymore, but the command v.rast.stats did not come to en end. I tried a very small vector layer wit 5 polygons, but still v.rast.stats calculated more than an hour without any result.

Unfortunately, under RC6 I was not able to import shape files properly. The dbf file was not created.

Have many thanks for your kind help and advice

Best regards

Niels

Martin Landa schrieb:

Hi,

2008/4/9, Niels Thevs <nt001582@uni-greifswald.de>:

have many thanks for your reply. Unfortunately, I cannot download the RC6
from the download site under grass.itc.it. Where else can I find it ?

http://grass.osgeo.org/grass63/source/

Martin

Moritz Lennert schrieb:

On 08/04/08 23:03, Moritz Lennert wrote:

On 08/04/08 18:04, Niels Thevs wrote:

Dear GRASS users,

I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But

I encountered the error messages below, though the vector and raster are in
the same mapset.

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

An error occurred while converting vector to raster
G__open(r): mapset (PERMANENT) doesn't match xmapset

(PERMANENT_3280.0)

G__open(r): mapset (PERMANENT) doesn't match xmapset

(PERMANENT_3280.0)

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

Does anybody know, how to overcome this problem ?

This was fixed by Hamish here

http://trac.osgeo.org/grass/changeset/30136

but apparently it did not get backported.

Sorry, I correct myself: it was backported to RC6, so just install that

version and you should be fine.

Moritz

--

-----------------------------------------------------
Dr. Niels Thevs
Chair of Geobotany and Landscape Ecology
Institute of Botany and Landscape Ecology
Greifswald University
Grimmer Strasse 88
17487 Greifswald
Germany

Tel.: +49-3834-86-4137
Fax: +49-3834-86-4114

-----------------------------------------------------

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--

-----------------------------------------------------
Dr. Niels Thevs
Chair of Geobotany and Landscape Ecology
Institute of Botany and Landscape Ecology
Greifswald University
Grimmer Strasse 88
17487 Greifswald
Germany

Tel.: +49-3834-86-4137
Fax: +49-3834-86-4114

-----------------------------------------------------

Hi,

I installed WINGRASS 63 RC6 and tried again v.rast.stats. Before running it I chose a small region (only a bit more than 2 polygons). The following error messages were printed:

:/GRASS/scripts/v.rast.stats: v.db.addcol: command not found
DBMI-DBF driver error:
Column 'qb4_reg1_n' not found
Error in db_execute_immediate()

Error while executing: 'UPDATE kacheladdstat SET qb4_reg1_n=1020 WHERE cat=24495'

Statistics calculated from raster map <qb050615_4@PERMANENT> and uploaded to attribute table of vector map <kacheladdstat>.

Done.

The dbf file of the vector has not been altered.

Regards

Niels

Marco Pasetti schrieb:

Hi Moritz,

Moritz, does it probably has been fixed in RC6?

Niels, could you download and install WinGRASS-6.3.0RC6 (before uninstall
RC5 using Add/Remove programs utility) and check if v.rast.stats works in
it?

Thanks

Marco

-----Messaggio originale-----
Da: grass-dev-bounces@lists.osgeo.org
[mailto:grass-dev-bounces@lists.osgeo.org] Per conto di Moritz Lennert
Inviato: martedì 8 aprile 2008 23.03
A: Niels.Thevs@uni-greifswald.de
Cc: grass-user@lists.osgeo.org; GRASS devel; Hamish
Oggetto: [GRASS-dev] Re: [GRASS-user] trouble with v.rast.stats
underWINGRASS

On 08/04/08 18:04, Niels Thevs wrote:

Dear GRASS users,

I am using WINGRASS 6.3 (RC5) and tried the command v.rast.stats. But I encountered the error messages below, though the vector and raster are in the same mapset.

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

An error occurred while converting vector to raster
G__open(r): mapset (PERMANENT) doesn't match xmapset (PERMANENT_3280.0)
G__open(r): mapset (PERMANENT) doesn't match xmapset (PERMANENT_3280.0)

split1@PERMANENT_3280.0 is not in the current mapset (PERMANENT)

Does anybody know, how to overcome this problem ?

This was fixed by Hamish here http://trac.osgeo.org/grass/changeset/30136

but apparently it did not get backported.

A quick fix for you is to click on the command in the Output window, so that
you can edit it at the bottom and change the

vector=split1@PERMANENT_3280.0

into

vector=split1

and then push 'Run'.

A more permanent fix is to download the current version of the script from
here:

http://trac.osgeo.org/grass/browser/grass/trunk/scripts/v.rast.stats/v.rast.
stats

and replace you $GISBASE/scripts/v.rast.stats

with the downloaded file.

Moritz
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--

-----------------------------------------------------
Dr. Niels Thevs
Chair of Geobotany and Landscape Ecology
Institute of Botany and Landscape Ecology
Greifswald University
Grimmer Strasse 88
17487 Greifswald
Germany

Tel.: +49-3834-86-4137
Fax: +49-3834-86-4114

-----------------------------------------------------

On Thu, Apr 10, 2008 at 9:03 AM, Hamish <hamish_b@yahoo.com> wrote:

> Niels Thevs:

> > Unfortunately, I cannot download the RC6 from the download site under
> > grass.itc.it. Where else can I find it ?
Martin:

> http://grass.osgeo.org/grass63/source/

In case it wasn't noticed, http://grass.itc.it/grass63/source/ etc. now
send:

[403 Forbidden]

Forbidden

You don't have permission to access /grass63/source/ on this server.

Fixed. A misconfiguration on the server. Luckily my account still
works there.

Markus

Niels Thevs wrote:

Now, I installed WINGRASS 63 RC6. The errors regarding v.rast.stats (see
below) do not occur anymore, but the command v.rast.stats did not come
to en end. I tried a very small vector layer wit 5 polygons, but still
v.rast.stats calculated more than an hour without any result.

If you add the --v switch when running v.rast.stats, it will display
some progress information which might help us to track down the
problem.

For even more information, change the top line of the v.rast.stats
script from:

  #!/bin/sh
to:
  #!/bin/sh -x

to cause it to print every command as it executes it.

--
Glynn Clements <glynn@gclements.plus.com>

Niels Thevs wrote:

Now, I installed WINGRASS 63 RC6. The errors regarding v.rast.stats
(see below) do not occur anymore, but the command v.rast.stats did
not come to en end. I tried a very small vector layer wit 5 polygons,
but still v.rast.stats calculated more than an hour without any result.

what are the resolution settings of your computational region?

GRASS> g.region -p

make sure rows x cols are not more than a few thousand x a few thousand.

Unfortunately, under RC6 I was not able to import shape files properly.
The dbf file was not created.

no idea.

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Niels Thevs wrote:

I installed WINGRASS 63 RC6 and tried again v.rast.stats. Before
running it I chose a small region (only a bit more than 2 polygons).
The following error messages were printed:

:/GRASS/scripts/v.rast.stats: v.db.addcol: command not found
DBMI-DBF driver error:
Column 'qb4_reg1_n' not found
Error in db_execute_immediate()

Error while executing: 'UPDATE kacheladdstat SET qb4_reg1_n=1020 WHERE
cat=24495'

Statistics calculated from raster map <qb050615_4@PERMANENT> and
uploaded to attribute table of vector map <kacheladdstat>.

Done.

The dbf file of the vector has not been altered.

"v.db.addcol: command not found" is the key, the rest of the problems are
just due to that failing. Did you install a full version of GRASS
6.3.0rc6 or just upgrade the v.rast.stats script from there?

In 6.3svn I have just modified v.rast.stats (r30976) to better deal with
v.db.addcol errors. It already had a test to see if v.db.addcol failed
(exit code 1), but not if it failed because it couldn't run (for me on
linux: exit code 127). Now it stops for any error.

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

I installed the full version, not only the corrected script.

Niels

Hamish schrieb:

Niels Thevs wrote:

I installed WINGRASS 63 RC6 and tried again v.rast.stats. Before
running it I chose a small region (only a bit more than 2 polygons).
The following error messages were printed:

:/GRASS/scripts/v.rast.stats: v.db.addcol: command not found
DBMI-DBF driver error:
Column 'qb4_reg1_n' not found
Error in db_execute_immediate()

Error while executing: 'UPDATE kacheladdstat SET qb4_reg1_n=1020 WHERE cat=24495'

Statistics calculated from raster map <qb050615_4@PERMANENT> and uploaded to attribute table of vector map <kacheladdstat>.

Done.

The dbf file of the vector has not been altered.

"v.db.addcol: command not found" is the key, the rest of the problems are
just due to that failing. Did you install a full version of GRASS
6.3.0rc6 or just upgrade the v.rast.stats script from there?

In 6.3svn I have just modified v.rast.stats (r30976) to better deal with
v.db.addcol errors. It already had a test to see if v.db.addcol failed
(exit code 1), but not if it failed because it couldn't run (for me on
linux: exit code 127). Now it stops for any error.

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

--

-----------------------------------------------------
Dr. Niels Thevs
Chair of Geobotany and Landscape Ecology
Institute of Botany and Landscape Ecology
Greifswald University
Grimmer Strasse 88
17487 Greifswald
Germany

Tel.: +49-3834-86-4137
Fax: +49-3834-86-4114

-----------------------------------------------------