[Qgis-user] Problem with HomeRange plugin - rgdal dependencies

Anne Ghisla a.ghisla at gmail.com
Thu Feb 12 00:46:43 PST 2009


On Wednesday 11 February 2009 18:54:21 John C. Tull wrote:
> I'm also on OS X using qgis built from the current svn trunk. I would
> run a quick test with a point file with 25 points and a single id
> variable (one individual home range to compute). After taking care of
> the rgdal dependency, I am now running into problems with the output
> of the computed shapefile while running the plugin. Here is the error
> I receive in a dialog window:
>
> R error: Error in writeOGR(khr.polygons, dir, name, "ESRI Shapefile") :
> GDAL Error 1: Failed to create file .shp file.
>
> Any ideas on how to fix this?

Not immediately: the plugin structure is dependent of a lot of code. 

I checked if GDAL accepts spaces in the name of the file, and it does. Maybe 
you have choosen a folder where you don't have write access?

I suggest using pure R and try to writeOGR something (you can pick up suitable 
data and examples in rgdal package).

Any other OS X users with similar issues?

regards,

Anne
 

>
> Regards,
> John
>
> On Feb 11, 2009, at 1:41 AM, Anne Ghisla wrote:
> > Hello Sebastian, list members,
> >
> > On Tuesday 10 February 2009 18:48:12 Paolo Cavallini wrote:
> >> Sebastian Cruz ha scritto:
> >>> Hello,
> >>>
> >>> I am having problems installing the rgdal R package, I have
> >>> installed it
> >>> via the package installer. But when I check the package manager it
> >>> shows
> >>> as 'not loaded' and will not allow me to load it. Do I need to
> >>> install
> >>> other packages for it to work?
> >>
> >> If you install it with dep=TRUE, it should install all the
> >> dependencies.
> >> Please keep on writing to the mailing list, ther will be more people
> >> able to reply.
> >
> > Right. Dependencies problems are the most common using HomeRange
> > plugin, as
> > the coupling with R is not so tight: the plugin is not supposed to
> > install
> > missing packages.
> >
> > As Paolo pointed out, it is better to install the required packages
> > with the R
> > command (on Linux you need to be root)
> >
> > install.packages("package_name", dep=TRUE)
> >
> > It will assure the complete set of dependencies. Otherwise you can
> > also check
> > the dependencies on each package's web page and download them
> > manually - but
> > it is more complicated.
> > See also the wiki page [0] of the plugin for more information.
> >
> > all the best,
> > Anne
> >
> > [0] http://wiki.qgis.org/qgiswiki/GSoC2008Rbinding
> > --
> > Please consider the environment before printing this email
> > Please do not send attachments in proprietary formats
> > http://www.gnu.org/philosophy/no-word-attachments.html
> > Use the UNI CEI Standard ISO/IEC 26300:2006
> > -----------------------------------------------------------
> > O< stop html mail - http://www.asciiribbon.org
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Please consider the environment before printing this email
Please do not send attachments in proprietary formats
http://www.gnu.org/philosophy/no-word-attachments.html
Use the UNI CEI Standard ISO/IEC 26300:2006
-----------------------------------------------------------
O< stop html mail - http://www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20090212/f44d616b/attachment.sig>


More information about the Qgis-user mailing list