[GRASS-dev] Re: [GRASS-user] v.rast.stats error

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Feb 12, 2008, at 12:17 PM, grass-user-request@lists.osgeo.org wrote:

Date: Tue, 12 Feb 2008 18:20:21 +0100
From: Jarek Jasiewicz <jarekj@amu.edu.pl>
Subject: [GRASS-user] v.rast.stats error
To: grass-user@lists.osgeo.org
Message-ID: <47B1D555.9080506@amu.edu.pl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi
When runs v.rast stats with foolowing command:

v.rast.stats -e vector=debs@LUBSKO layer=1 raster=depresions@LUBSKO
colprefix=dep percentile=90

recive error:
ERROR:debs@LUBSKO_9432.0 is not in the current mapset (LUBSKO)
ERROR:An error occurred while converting vector to raster
G__open(r): mapset (LUBSKO) doesn't match xmapset (LUBSKO_9432.0)
ERROR:debs@LUBSKO_9432.0 is not in the current mapset (LUBSKO)

everything seems clear, but why postfix: _9432.0 after mapset name??

Jarek

I just ran into the same issue today. The script checks to see if the map is in the current mapset and is not properly parsing the map@mapset format (debs@LUBSKO)

Delete the @mapset part and rerun this. It should work fine.

Michael

@mapset just helps specify which mapset a map is in. That is, if you have a map named elevation in mapset PERMANENT and another one named elevation in mapset 'newmaps', specifying elevation@PERMANENT and elevation@newmaps will differentiate between the two.

In the case of the error for v.rast.stats, just DON'T use the @mapset in the map= argument and you won't have an error.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Feb 12, 2008, at 12:35 PM, Nikos Alexandris wrote:

By the way,

some similar problems occur with i.smap (as I have written a few weeks/
months ago). Is there any solution for this?

I understand that @mapset can be very useful but it is a bit scary :wink: