<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 8:44 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Oct 20, 2011 at 3:40 PM, Jan Hendrik Blanke <<a href="mailto:jan.blanke@gmx.de">jan.blanke@gmx.de</a>> wrote:<br>
> Hi,<br>
><br>
> 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:<br>
><br>
> "Error in deleteDataset(DS): GDAL Error 1: Deleting C:Documents and Settings/.../GIS DataBase/North-Carolina/user1/.tmp/elev_state_500m failed:<br>
> Permission denied"<br>
<br>
</div>In that error message I observe "C:Documents and Settings/" which is not<br>
"C://Documents and Settings/" (or with \\). Somehow it gets lost.<br>
<div class="im"><br>
> I executed the following commands in the GRASS Command Line:<br>
><br>
> g.region vect=precip_30ynormals res=1000 -ap<br>
> R<br>
> library(spgrass6)<br>
> precip30n <- readVECT6("precip_30ynormals", ignore.stderr=TRUE)<br>
> ...<br>
> elev <- readRAST6("elev_state_500m", ignore.stderr=TRUE)<br>
><br>
> 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.<br>
<br>
</div>That's interesting. Perhaps some path quoting is missing in readRAST6()<br>
which is present in readVECT6()? Or the called raster export function<br>
from GRASS is an issue - we would need to know which is used.<br>
<br></blockquote><div><br>I would suggest to try the following option combinations for readRAST6 to see what is causing it:<br><br><span style="font-family: courier new,monospace;">readRAST6("elev_state_500m", ignore.stderr=TRUE, </span><br style="font-family: courier new,monospace;">
<b><span style="font-family: courier new,monospace;">plugin = FALSE</span>,<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">useGDAL = FALSE</span></b><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">)</span><br style="font-family: courier new,monospace;"> <br>In this case neither the plugin nor gdal is used.<br><br>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.<br>
<br>Cheers,<br><br>Rainer<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
...<br>
<div class="im">> 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.<br>
<br>
</div>I don't know if the GDAL-GRASS plugin is used under Windows.<br>
<font color="#888888"><br>
Markus<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
grass-stats mailing list<br>
<a href="mailto:grass-stats@lists.osgeo.org">grass-stats@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-stats" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-stats</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br><br>Centre of Excellence for Invasion Biology<br>Stellenbosch University<br>
South Africa<br><br>Tel : +33 - (0)9 53 10 27 44<br>Cell: +33 - (0)6 85 62 59 98<br>Fax (F): +33 - (0)9 58 10 27 44<br><br>Fax (D): +49 - (0)3 21 21 25 22 44<br><br>email: <a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a><br>
<br>Skype: RMkrug<br><br>