[osgeo4w-dev] [R-sig-Geo] Linking R/spgrass6 to OSGEO4W GRASS GIS installation

Alex Mandel tech_dev at wildintellect.com
Fri Nov 29 15:13:06 PST 2013


On 11/29/2013 09:17 AM, geobernadotte wrote:
> Ralf Schäfer wrote
>> Solution:
>> Add OSGEO4W/bin to the path to enable access to gdal110.dll
>>
>> WPATH <- Sys.getenv("PATH")
>> WPATH1 <- paste("C:\\OSGeo4W\\bin", WPATH, sep=";")
>> # Note: Users with 64bit installation should put "C:\\OSGeo4W64\\bin"
>> #Sys.setenv(PATH=WPATH1)
>> initGRASS("C:/OSGeo4W/apps/grass/grass-6.4.3", tempdir(), override=TRUE,
>> SG = mwidem_trans2)
>> # Note: Users with 64bit installation should put
>> C:/OSGeo4W64/apps/grass/grass-6.4.3
> 
> You saved my day. Only took me an hour to understand that i have to un-#
> Sys.setenv(PATH=WPATH1) from your example ...
> 
> I can imagine that this is a problem for quite some people wanting to
> utilize GRASS from within R with an OSGEO4W-install. Should find it's way
> into some help page maybe...
> 
> So thanx for sharing
> Cheers
> Bernd
> 

Forwarding to the OSGeo4w list so we can put it on our wiki.
trac.osgeo.org/osgeo4w

Thanks,
Alex



More information about the osgeo4w-dev mailing list