[Qgis-user] How to use Sextante Pyculator correctly?

Anita Graser anitagraser at gmx.at
Sat Jan 5 06:04:53 PST 2013


Hi,

I'm trying to use Pyculator from the toolbox to calculate the
equivalent of field calculator

CASE WHEN maxspeed is Null THEN 0 ELSE 1 END

But I get all kinds of errors. Even just the simple expression value =
1 does not complete but throws

<qgis.core.QgsVectorDataProvider object at 0x37d5d40>

Traceback (most recent call last):
  File "/home/agraser/.qgis//python/plugins/sextante/core/GeoAlgorithm.py",
line 118, in execute
    self.processAlgorithm(progress)
  File "/home/agraser/.qgis//python/plugins/sextante/algs/FieldPyculator.py",
line 133, in processAlgorithm
    progress.setPercentage(int((100 * nElement)/nFeatures))
ZeroDivisionError: integer division or modulo by zero

I'm running QGIS 1.8 with the latest stable Sextante from plugin repo.

Thanks! Best wishes,
Anita



More information about the Qgis-user mailing list