To: r-sig-geo@r-project.org

Subject:

Problem calling readGDAL (R package rgdal) from Matlab

Hi,

I am facing a problem while trying to call R (version 2.13.1) functions from within Matlab (Version 7.8.0 R2009a).

I am trying to read an image via RGDAL in R for further processing in R. I get following error when I try to do this from Matlab:

K>> evalR('img <- readgdal("testimg_p.tif")'); 
??? Error using ==> evalR at 58 
Problem evaluating command img <- 
readgdal("testimg_p.tif"). 
Invoke Error, Dispatch Exception: Object is static; 
operation not allowed

I have an open R session and also have called rgdal library before i executed this command and there was no error on any stage before this. From R the command works fine and I checked it. Here is the R prompt status:

> img <- readGDAL("testimg_p.tif") 
testimg_p.tif has GDAL driver GTiff 
and has 280 rows and 272 columns

Kindly help me solve this problem.

Waiting for response/solution to my problem.

Regards,

Vandita

 

	[[alternative HTML version deleted]]

