<br><div class="gmail_quote">On Thu, Apr 18, 2013 at 9:21 AM, Alexander Bruy <span dir="ltr"><<a href="mailto:alexander.bruy@gmail.com" target="_blank">alexander.bruy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
BTW, there is also Advanced Field Calculator that should allow<br>
calculate area and perform much more complex calculations<br></blockquote><div><br></div><div>Could you show me how? </div><div><br></div><div>value = $area / "area" </div><div><br></div><div>causes</div><div><br>
</div><div>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Traceback (most recent call last):</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">  File "C:\OSGeo4W\apps\qgis-dev\python\plugins\sextante\core\GeoAlgorithm.py", line 147, in execute</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    self.processAlgorithm(progress)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">  File "C:\OSGeo4W\apps\qgis-dev\python\plugins\sextante\algs\FieldPyculator.py", line 125, in processAlgorithm</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    unicode(sys.exc_info()[0].__name__), unicode(sys.exc_info()[1]))</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">TypeError: __init__() takes exactly 2 arguments (4 given)</p></div><div> </div><div>Thanks!</div><div><br></div><div>Anita</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Wed, 17 Apr 2013 22:42:05 +0200<br>
"Anita Graser" <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I have a polygon layer with an "area" field and want to calculate $area /<br>
> "area". This works well in attribute table field calculator.<br>
><br>
> If I try to use Sextante Field Calculator, the resulting field contains<br>
> only NULL values. Is this supposed to work? Is this a bug you can confirm?<br>
><br>
> Best wishes,<br>
> Anita<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Alexander Bruy<br>
</font></span></blockquote></div><br>