Hi all,

On Thu, 2010-09-02 at 19:29 +0100, Giovanni Manghi wrote:
> Hi Anne,
> 
> I was testing your update and just hit two problems (I'm under Ubuntu
> 10.04, gdal 1.7 and R 2.10):
> 
> *) when using anything else then the MCP method I always get
> 
> R error (please consult its documentation) is:
> Error in writeOGR(khr.polygons, dir, name, "ESRI Shapefile") : 
> GDAL Error 1: Invalid index : -1
> 
> 
> *) I noticed also that the plugin shows a duplicate list of available
> layers, and then it also shows the wrong columns in the filed "group
> fixes by".
> 
> http://img833.imageshack.us/img833/2793/screenshotuz.png





I made a few more tests.


I took a fresh windows Seven installation and installed qgis 1.5 (that
comes with gdal 1.6)/osgeo4w with a few basic python libraries, rpy2,
etc.

Then installed the last version of R and the necessary R packages to
make the HR plugin work, adehabitat, rgdal, shapefiles, gpclib... and
then as usual added the R "bin" folder to the "path" windows environment
variable.


The plugin error (with methods other than MCP) is always


R error (please consult its documentation) is:
Error in writeOGR(khr.polygons, dir, name, "ESRI Shapefile") : 
GDAL Error 1: Invalid index : -1



Then I tested older R versions and found that they all behave the same
for R >= 2.10



Then I also tested R 2.9 and in this case the error is always (also for
MCP)

R error (please consult its documentation) is:
Error in validityMethod(object) : could not find function
"anyDuplicated"



I finally tested R 2.9.2 and with this version the plugins works

mcp -> works
nnhc -> works
h ref -> works
adjusted h - > works
lscv -> works



At this point I installed also qgis-trunk/osgeo4w that now uses GDAL 1.7
(the python bindings are finally available) and tested all again with r
2.9.2

The plugin always returns


R error (please consult its documentation) is:
Error in function (x, method = c("mcp", "href", "lscv", "hadj",
"clusthr",  : 
  This procedure requires adehabitat to be installed



but adehabitat is abviously installed...


I opened again qgis 1.5 (osgeo4w allows to have different versions of
qgis installed at the same time) and started getting the same error :(

Evidently when installing qgis-trunk with osgeo4w, it is installed
something that create a problem between R and QGIS.

The only way I found to have the plugin work again was to uninstall all
osgeo4w and install again *just* qgis 1.5



So, apparently at this moment the only way to have the plugin working is
using qgis 1.5 and R 2.9.2.

This is pretty easy to achieve under Windows, a little less under Ubuntu
(for example) because the latest releases are shipped with the latest
versions of R. In any case I haven't tested it under linux yet.



In any of the above cases the plugin still shows the available layers
twice in the "layers" dropdown.



cheers

-- Giovanni --

_______________________________________________
AniMov mailing list
[email protected]
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov

Reply via email to