<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">
I am new to QGIS 2.0.1 Modeler (Sextante) and not very able in Python programming.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">
My question regard the use of field calculator (or advanced python field calculator) inside the modeler. Is it possible to refer in the field calculator formula to an input variable of the sextante model?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">
Example for Buffer: In the graphical modeler I define 2 model inputs: 1) <em style="margin:0px;padding:0px;border:0px;vertical-align:baseline">layer</em> = the point layer to be buffered (type: vector layer) 2) *buff_dist* = the buffer radius (type: number)</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">
I use the "Fixed distance buffer" algorithm, setting "Imput Layer" = <em style="margin:0px;padding:0px;border:0px;vertical-align:baseline">layer</em> and "Distance" = *buff_dist*. It creates a temporary output shapefile. I want to add a new numeric field in the output of the "buffer" algorithm, with value equal to the buffer distance previously defined (*buff_dist*). How can I refer to the variable *buff_dist* in the Formula (or Global Expression) of the "Field Calculator" (or "Advanced Pyculator") algorithm??</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">
Thanks.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">
Michele</p></div>