[Qgis-developer] [Qgis-user] Sextante - error saving a model with Select by location tool

Victor Olaya volayaf at gmail.com
Tue Sep 18 04:23:26 PDT 2012


Yes please, fill a ticket.

Many thanks!

2012/9/18 Pedro Venâncio <pedrongvenancio at yahoo.com>:
> Hi Victor,
>
> Ok, thanks!
>
> I also found a problem with the Select tool from MMQGISX. When selecting a physical layer that is loaded in QGIS, even in modeler, it works well. However, when using Select with intermediate layers within modeler, it says that the project has no active layer to select from (image attached).
>
> I think I'll fill a ticket for both problems, what do you think?
>
> Thank you very much!
>
> Best regars,
> Pedro
>
>
> PS: Good luck with your new job! :)
>
>
>
>
> ----- Original Message -----
> From: Victor Olaya
>
> Hi Pedro
>
> The problem is that the select algorithm does not generate a new
> layer, but just makes a selection on a existing one. It seems that
> this case hasn't been correctly considered...
>
> I will have a look at it and see if I can fix it
>
> Regards
>
>
>
> 2012/9/18 Pedro Venâncio <pedrongvenancio at yahoo.com>:
>> Hi,
>>
>>
>> I can not save a model in which is used the tool 'Select by location' from fTools.
>>
>> When saving, it shows the error:
>>
>>
>> An error has occured while executing Python code:
>>
>> Traceback (most recent call last):
>>   File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerDialog.py", line 219, in saveModel
>>     text = self.alg.serialize()
>>   File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerAlgorithm.py", line 305, in serialize
>>     s+=unicode(self.algOutputs[i][out.name]) + "\n"
>> KeyError: 'OUTPUT'
>>
>> Python version:
>> 2.7.3 (default, Aug  1 2012, 05:27:35)
>> [GCC 4.6.3]
>>
>> QGIS version:
>> 1.9.0-Master Master, exported
>>
>> Python path: ['/home/pedro/.qgis//python/plugins/ogrprocessing', '/home/pedro/.qgis//python/plugins/sextante', '/usr/share/qgis/python', '/home/pedro/.qgis//python', '/home/pedro/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/home/pedro/.qgis/python/plugins/mmqgis/forms', '/home/pedro/.qgis/python/plugins/qgis2kml', '/home/pedro/.qgis/python/plugins/qgis2kml', '/usr/share/qgis/python/plugins/fTools/tools']
>>
>>
>>
>> And then, when I try to remove the module 'Select by location' from the model, it shows the error:
>>
>> An error has occured while executing Python code:
>>
>> Traceback (most recent call last):
>>   File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerGraphicItem.py", line 89, in removeElement
>>     if not self.model.removeAlgorithm(self.elementIndex):
>>   File "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerAlgorithm.py", line 164, in removeAlgorithm
>>     val = self.algOutputs[index][out.name]
>> KeyError: 'OUTPUT'
>>
>> Python version:
>> 2.7.3 (default, Aug  1 2012, 05:27:35)
>> [GCC 4.6.3]
>>
>> Which will be the problem?
>>
>> Thank you very much!
>>
>> Best regards,
>> Pedro Venâncio
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the Qgis-developer mailing list