Hi!<div><br></div><div>Would it make sense to integrate the "new" algorithm as a selectable option into the "old" algorithm?</div><div><br></div><div>regards</div><div>Werner</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Dec 11, 2012 at 9:27 AM, Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> 2012/12/11 Alexander Bruy <<a href="mailto:alexander.bruy@gmail.com">alexander.bruy@gmail.com</a>>:<br>
>> You need to expose your algorithm is provider. Open file FToolsAlgorithmProvider.py, add import statement with your new alg<br>
>> (use existing statements as example) and then in __init__ method<br>
>> add your algorithm to algorithms list — variable self.alglist.<br>
<br>
Thanks Alexander! That worked perfectly.<br>
<br>
<br>
On Tue, Dec 11, 2012 at 9:02 AM, Victor Olaya <<a href="mailto:volayaf@gmail.com">volayaf@gmail.com</a>> wrote:<br>
> If you algorithm is of general interest and you don't mind sharing it,<br>
> we can put it in the SEXTANTE code and distribute it along with the<br>
> other ftools algorithms.<br>
<br>
It's a very simple modification. Instead of providing the algorithm<br>
with a fixed number of points to insert into the geometry, I made it<br>
calculate how many points it needs to put one at every interval step.<br>
<br>
I'll test some more and send it to you later if you don't mind. Or<br>
should I go the Github way?<br>
<br>
Best wishes,<br>
Anita<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>