[GRASS-stats] error spgrass6 readRAST6

Rainer M Krug r.m.krug at gmail.com
Fri Oct 21 04:51:22 EDT 2011


On Thu, Oct 20, 2011 at 8:44 PM, Markus Neteler <neteler at osgeo.org> wrote:

> On Thu, Oct 20, 2011 at 3:40 PM, Jan Hendrik Blanke <jan.blanke at gmx.de>
> wrote:
> > Hi,
> >
> > I am interested in using the GRASS/R interface spgrass6 and recently
> executed the code given in the book "Open Source GIS - A Grass GIS Approach"
> for the North Carolina dataset. Reading the first vector files
> (precipitation) works perfectly, but when it comes to the first raster
> layer, I receive the following error message:
> >
> > "Error in deleteDataset(DS): GDAL Error 1: Deleting C:Documents and
> Settings/.../GIS DataBase/North-Carolina/user1/.tmp/elev_state_500m failed:
> > Permission denied"
>
> In that error message I observe "C:Documents and Settings/" which is not
> "C://Documents and Settings/" (or with \\). Somehow it gets lost.
>
> > I executed the following commands in the GRASS Command Line:
> >
> > g.region vect=precip_30ynormals res=1000 -ap
> > R
> > library(spgrass6)
> > precip30n <- readVECT6("precip_30ynormals", ignore.stderr=TRUE)
> > ...
> > elev <- readRAST6("elev_state_500m", ignore.stderr=TRUE)
> >
> > After the last command, the given error message appears. The same happens
> when I try to apply readRAST6 to personal data. ReadVECT6 again works fine.
>
> That's interesting. Perhaps some path quoting is missing in  readRAST6()
> which is present in readVECT6()? Or the called raster export function
> from GRASS is an issue - we would need to know which is used.
>
>
I would suggest to try the following option combinations for readRAST6 to
see what is causing it:

readRAST6("elev_state_500m", ignore.stderr=TRUE,
*plugin = FALSE,
useGDAL = FALSE*
)

In this case neither the plugin nor gdal is used.

You could also try any other combination (NULL, TRUE and FALSE are allowed
values) - please report back which one is working, so that it can be
narrowed down where the problem lies.

Cheers,

Rainer

> ...
> > I am using GRASS 6.4.1 and R 2.12.2 and also tried R 2.13.2. The software
> runs under Windows XP.
>
> I don't know if the GDAL-GRASS plugin is used under Windows.
>
> Markus
> _______________________________________________
> grass-stats mailing list
> grass-stats at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-stats
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-stats/attachments/20111021/c47285ef/attachment.html


More information about the grass-stats mailing list