[Qgis-developer] Does Sextante Field Calculator support all functions of attribute table field calc?

Alexander Bruy alexander.bruy at gmail.com
Mon Apr 22 00:08:05 PDT 2013


Hi Anita

and sorry for late response. Advanced calculator used a bit different syntax — field names should be included in "<>", so
your formula will look like

value = $geom.area() / <area>

You can find documentation here (nfortunately only in Russian)
http://gis-lab.info/qa/fieldpyculator.html

On Thu, 18 Apr 2013 19:15:24 +0200
Anita Graser <anitagraser at gmx.at> wrote:

> On Thu, Apr 18, 2013 at 9:21 AM, Alexander Bruy <alexander.bruy at gmail.com>wrote:
> 
> >
> >
> > BTW, there is also Advanced Field Calculator that should allow
> > calculate area and perform much more complex calculations
> >
> 
> Could you show me how?
> 
> value = $area / "area"
> 
> causes
> 
> Traceback (most recent call last):
> 
> File
> "C:\OSGeo4W\apps\qgis-dev\python\plugins\sextante\core\GeoAlgorithm.py",
> line 147, in execute
> 
> self.processAlgorithm(progress)
> 
> File
> "C:\OSGeo4W\apps\qgis-dev\python\plugins\sextante\algs\FieldPyculator.py",
> line 125, in processAlgorithm
> 
> unicode(sys.exc_info()[0].__name__), unicode(sys.exc_info()[1]))
> 
> TypeError: __init__() takes exactly 2 arguments (4 given)


-- 
Alexander Bruy


More information about the Qgis-developer mailing list