Re: [Qgis-developer] Simplify geometry affects $area calculations

2014-06-23 Thread Matthias Kuhn
Hi, As far as I can remember from reviewing the code, server side simplification is enabled on a per-request basis. So it should be possible to disable it when certain parameters (like $area required) are met. Matthias ___ Qgis-developer mailing

Re: [Qgis-developer] Simplify geometry affects $area calculations

2014-06-23 Thread Martin Dobias
On Mon, Jun 23, 2014 at 1:59 PM, Matthias Kuhn matthias.k...@gmx.ch wrote: Hi, As far as I can remember from reviewing the code, server side simplification is enabled on a per-request basis. So it should be possible to disable it when certain parameters (like $area required) are met. Right.

Re: [Qgis-developer] Simplify geometry affects $area calculations

2014-06-23 Thread Matthias Kuhn
My assumption is, that in this particular case the geometry is used in the rendering process (hence a simplified version). It could be checked if an expression used in the rendering process requires the geometry (or $area and maybe others?) just the way attributes are only requested for

Re: [Qgis-developer] Simplify geometry affects $area calculations

2014-06-23 Thread Anita Graser
On Mon, Jun 23, 2014 at 9:29 AM, Matthias Kuhn matthias.k...@gmx.ch wrote: My assumption is, that in this particular case the geometry is used in the rendering process (hence a simplified version). It could be checked if an expression used in the rendering process requires the geometry (or

[Qgis-developer] Simplify geometry affects $area calculations

2014-06-22 Thread Anita Graser
Hi, I noticed this issue because I had a choropleth map showing population density (calculated dynamically using population/$area). Some of the polygons changed color when zooming. Simplify geometry, which is active by default, caused minor changes to the value of $area when zooming. I think $area

Re: [Qgis-developer] Simplify geometry affects $area calculations

2014-06-22 Thread Andreas Neumann
Hi Anita, While I agree with you in general the difficulty is that if you do serverside simplification QGIS does not even see the original geometry anymore. So not easy to solve. On the other hand you have several relatively easy workarounds. Either: - disable simplification - write the area to

Re: [Qgis-developer] Simplify geometry affects $area calculations

2014-06-22 Thread Anita Graser
Thanks for your answer Andreas, I've one question though: If the data source is a Shapefile and simplification is enabled, will the Field Calculator results be dependent on the zoom? I expect they will be. Isn't that a big source of potential confusion for the users? And yes, I do understand that