R: [GRASS-dev] Re: [GRASS-user] trouble with v.rast.stats
underWINGRASS
Niels Thevs
nt001582 at uni-greifswald.de
Thu Apr 10 07:26:34 EDT 2008
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 at 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 at lists.osgeo.org
> [mailto:grass-dev-bounces at lists.osgeo.org] Per conto di Moritz Lennert
> Inviato: martedì 8 aprile 2008 23.03
> A: Niels.Thevs at uni-greifswald.de
> Cc: grass-user at 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 at 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 at 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 at 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 at 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
-----------------------------------------------------
More information about the grass-user
mailing list