[Qgis-developer] Re: problems with SDA4PP plugin

Paolo Cavallini cavallini at faunalia.it
Fri May 28 11:57:18 EDT 2010


Volkan Kepoglu ha scritto:
> 
> latest revision is 0.189. please update the plugin and have fun.

Still some errors with 0.190, after the execution of a command, when clicking on
"Close" (checked Uniform Intensity, Adaptive Density, etc.)

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/home/paolo/.qgis/python/plugins/SDA4PP/intensity.py", line 63, in runClose
    sda4ppRoptions.closeRplot(self.R)
  File "/home/paolo/.qgis/python/plugins/SDA4PP/sda4ppRoptions.py", line 135, in
closeRplot
    for i in range(int(str(n[0]))):
TypeError: 'RObject' object does not support indexing
===

Kernels give the following, due to the missing prj file, when saving to a raster (it
may be safer to take the proj from raster properties?):

Traceback (most recent call last):
  File "/home/paolo/.qgis/python/plugins/SDA4PP/density.py", line 440, in runApply
    densityRpart.doSpatialAnalysis(self.R,index= self.index)
  File "/home/paolo/.qgis/python/plugins/SDA4PP/densityRpart.py", line 77, in
doSpatialAnalysis
    s = r("proj4string(sgdf) = CRS(\"" + str(index["projText"]) + "\")")
  File "/usr/lib/python2.6/dist-packages/rpy2/robjects/__init__.py", line 261, in
__call__
    res = self.eval(p)
  File "/usr/lib/python2.6/dist-packages/rpy2/robjects/functions.py", line 83, in
__call__
    return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/rpy2/robjects/functions.py", line 35, in
__call__
    res = super(Function, self).__call__(*new_args, **new_kwargs)
RRuntimeError: Error in `proj4string) :
  Geographical CRS given to non-conformant data
===

All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc


More information about the Qgis-developer mailing list