[Qgis-developer] Field Calculator in QGIS Modeler (sextante)

Michele Cordioli mik.cordioli at gmail.com
Mon Sep 30 08:19:50 PDT 2013


I am new to QGIS 2.0.1 Modeler (Sextante) and not very able in Python
programming.

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?

Example for Buffer: In the graphical modeler I define 2 model inputs: 1) *
layer* = the point layer to be buffered (type: vector layer) 2) *buff_dist*
= the buffer radius (type: number)

I use the "Fixed distance buffer" algorithm, setting "Imput Layer" =
*layer* 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??

Thanks.

Michele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130930/25814cbd/attachment-0001.html>


More information about the Qgis-developer mailing list