<div dir="ltr"><div>Hi, you are working on InVest right? If so, have you considered making InVest "inside" Sextante Toolbox? In CC I'm copying Victor Olaya, who is the main developer of Sextante so he can help with that. <br>
<br></div>As a QGIS user it's very exciting for me to know that you are working on bringing Invest into QGIS.<br><br>Regards<br>Filipe Dias<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 7:43 PM, Martin Lacayo <span dir="ltr"><<a href="mailto:mlacayo@stanford.edu" target="_blank">mlacayo@stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I would like to make external calls to SEXTANTE with a Python script<br>
or via the command line. I'm interested in using all the<br>
geoalgorithms, but in particular I am interested in the GRASS<br>
geoalgorithms, and specifically in r.viewshed at this moment. Is this<br>
possible?<br>
<br>
I found this post which seems very close to answering the question:<br>
<br>
<a href="http://gis.stackexchange.com/questions/28701/how-to-run-sextante-algorithms-outside-of-qgis-python-console/60725#60725" target="_blank">http://gis.stackexchange.com/questions/28701/how-to-run-sextante-algorithms-outside-of-qgis-python-console/60725#60725</a><br>

<br>
However when I try calling sextante.runalg I get an error seemingly<br>
related the fact that the code is not being run inside the QGIS Python<br>
console (qgis.utils.iface is None).<br>
<br>
Our FOSS software (<a href="http://naturalcapitalproject.org" target="_blank">naturalcapitalproject.org</a>) is developed on Linux<br>
but packaged for Windows. Any suggestions or advice? We are hoping to<br>
reduce our development time and eliminate duplicated efforts.<br>
<br>
Thank you,<br>
Martin<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>