[QGIS-Developer] processing =output boolean workaround ?

Andreas Plesch andreasplesch at gmail.com
Sun May 14 05:09:30 PDT 2017


For use in models it is sometimes useful to generate a boolean output from
a processing script. Since boolean is not available as output, what would
be a good workaround ?
I am simply using string as output type:
output=str(False)
but then the receiving script has to work a bit on that input and it is
awkward to type 'True' if the input script is used standalone.

Of course, the real question is why boolean is not offered as output type ?
To me it would be useful.

Andreas
-- 
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170514/bdf12bbd/attachment.html>


More information about the QGIS-Developer mailing list