[R-sig-Geo] Problem calling readGDAL (R package rgdal) from Matlab
Roger Bivand
Roger.Bivand at nhh.no
Wed Aug 24 12:32:07 CEST 2011
On Wed, 24 Aug 2011, Vandita Srivastava wrote:
> To: r-sig-geo at r-project.org
>
> Subject:
>
> Problem calling readGDAL (R package rgdal) from Matlab
>
> Hi,
Good, you've realised that you posted with someone else's subject.
However still very bad, because you posted in the original poster's
thread (twice), once with his subject, once with yours. When posting,
never, ever, use an existing thread for a new posting. Alway start a new
thread by writing a new completely email to the list.
>
> 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")');
Why would you expect R from Matlab or anything else not to be
case-sensitive? The function is named readGDAL(), so use its name. There
is no readgdal() function, is there?
Roger
> ??? 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]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list