Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-11 Thread Anita Graser
To be honest, I don't see a use case for the original DensifyGeometries. It's behavior is quite strange: You tell it to add 10 pts but it will add 20 pts if the linestring happens to consist of 3 nodes and 30 pts if 4 nodes ... Best wishes, Anita ___ Qgi

Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-11 Thread Alexander Bruy
On Tue, 11 Dec 2012 10:48:50 +0100 Anita Graser wrote: > On Tue, Dec 11, 2012 at 9:33 AM, Werner Macho wrote: > > Hi! > > Would it make sense to integrate the "new" algorithm as a selectable option > > into the "old" algorithm? > > Hi Werner! > Probably, but I don't know how to add optional fie

Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-11 Thread Anita Graser
On Tue, Dec 11, 2012 at 9:33 AM, Werner Macho wrote: > Hi! > > Would it make sense to integrate the "new" algorithm as a selectable option > into the "old" algorithm? Hi Werner! Probably, but I don't know how to add optional fields - if there is anything that needs to be considered. Best wishes,

Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-11 Thread Werner Macho
Hi! Would it make sense to integrate the "new" algorithm as a selectable option into the "old" algorithm? regards Werner On Tue, Dec 11, 2012 at 9:27 AM, Anita Graser wrote: > > 2012/12/11 Alexander Bruy : > >> You need to expose your algorithm is provider. Open file > FToolsAlgorithmProvider

Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-11 Thread Anita Graser
> 2012/12/11 Alexander Bruy : >> You need to expose your algorithm is provider. Open file >> FToolsAlgorithmProvider.py, add import statement with your new alg >> (use existing statements as example) and then in __init__ method >> add your algorithm to algorithms list — variable self.alglist. Tha

Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-11 Thread Victor Olaya
Anita If you algorithm is of general interest and you don't mind sharing it, we can put it in the SEXTANTE code and distribute it along with the other ftools algorithms. If you do not want to have it in the ftools group, then you can also create you own algorithm provider in its own plugin (the e

Re: [Qgis-developer] Sextante add new algorithm to toolbox

2012-12-10 Thread Alexander Bruy
Hi Anita, On Tue, 11 Dec 2012 08:38:40 +0100 Anita Graser wrote: > What do I have to do to make it show up in the toolbox? You need to expose your algorithm is provider. Open file FToolsAlgorithmProvider.py, add import statement with your new alg (use existing statements as example) and then i

[Qgis-developer] Sextante add new algorithm to toolbox

2012-12-10 Thread Anita Graser
Hi, I created an altered version of ftools' DensifyGeometries.py called DensifyGeometriesInterval.py and put it in the same folder /home/agraser/.qgis/python/plugins/sextante/ftools What do I have to do to make it show up in the toolbox? Thanks and best wishes, Anita ___