error rgdal library if used from within Grass plugin (Windows)

2 messages Options
Embed this post
Permalink
alobo

error rgdal library if used from within Grass plugin (Windows)

Reply Threaded More More options
Print post
Permalink
Hi!

The following error only occurs if the R (2.7.2) session is started
from a GRASS shell opened through the QGIS GRASS plugin in windows.
The error does not occur If R is started form its own icon
or by double click in the .RData  object,  but then the spgrass6
package would not find the GRASS environment.

It also works in linux.
The involved  commands  are:

1. Start  QGIS
2. Star GRASS plugin and open mapset
3.  Open Grass Shell
4.  Run R and execute require(spgrass6)

>>>>
>>>> Loading required package: spgrass6
>>>> Loading required package: sp
>>>> Loading required package: rgdal
>>>> Error in fun(...) :
>>>>         GDAL Error 1: Can't load requested DLL:
>>>> C:\OSGeo4W\bin\gdalplugins\gdal_ECW_JP2ECW.dll
>>>> 126: Não foi possível encontrar o módulo especificado.
>>>>
>>>>
>>>>
>>>> Error : .onLoad failed in 'loadNamespace' for 'rgdal'
>>>> Erro: package 'rgdal' could not be loaded

Any help appreciated.

Agus

--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: [hidden email]
http://www.ija.csic.es/gt/obster


_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand

Re: error rgdal library if used from within Grass plugin (Windows)

Reply Threaded More More options
Print post
Permalink
On Mon, 9 Feb 2009, Agustin Lobo wrote:

> Hi!
>
> The following error only occurs if the R (2.7.2) session is started
> from a GRASS shell opened through the QGIS GRASS plugin in windows.
> The error does not occur If R is started form its own icon
> or by double click in the .RData  object,  but then the spgrass6
> package would not find the GRASS environment.
>
> It also works in linux.
> The involved  commands  are:
>
> 1. Start  QGIS
> 2. Star GRASS plugin and open mapset
> 3.  Open Grass Shell
> 4.  Run R and execute require(spgrass6)
>
>>>>>
>>>>> Loading required package: spgrass6
>>>>> Loading required package: sp
>>>>> Loading required package: rgdal
>>>>> Error in fun(...) :
>>>>>         GDAL Error 1: Can't load requested DLL:
>>>>> C:\OSGeo4W\bin\gdalplugins\gdal_ECW_JP2ECW.dll
>>>>> 126: Não foi possível encontrar o módulo especificado.
>>>>>
>>>>>
>>>>>
>>>>> Error : .onLoad failed in 'loadNamespace' for 'rgdal'
>>>>> Erro: package 'rgdal' could not be loaded
>
Which rgdal binary from where? This really is a question for osgeo4w,
which is bleeding edge at the moment. Are you using the early draft rgdal
binary built against a specific osgeo4w version and available from my
website? Can we settle this off-list until osgeo4w stabilises?

Roger


> Any help appreciated.
>
> Agus
>
>

--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [hidden email]

_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway