<div dir="ltr">Recently I had to calculate the relative dimension of a polygon relative to the others of the same class. I know there are a lot of way to do it, inside and outside QGIS, but I wondered if field calculator (and expressions in general) couls be extended to accompish this kind of tasks.<div>
<br></div><div>The approach would be something similar WINDOW functions in Postgresql [1], where for each record a new value will be calculated on the basis of other records (filtered or not).</div><div><br></div><div>Has this ever been discussed? Is it something that could fit QGIS expressions?</div>
<div><br></div><div>giovanni</div><div><br></div><div>[1] <a href="http://www.postgresql.org/docs/9.1/static/tutorial-window.html">http://www.postgresql.org/docs/9.1/static/tutorial-window.html</a><br clear="all"><div><br>
</div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div></div>