<p dir="ltr"><br>
On 3 Mar 2016 12:18 AM, <<a href="mailto:Fuenfer-Koenigstein.Benjamin@swm.de">Fuenfer-Koenigstein.Benjamin@swm.de</a>> wrote:<br>
><br>
> Dear List Members,<br>
><br>
>  <br>
><br>
> I have a problem with labeling polygon-features using expressions. I want to create different label-classes depending on the area of the geometries (cities, villages, etc.). In most cases, this works quite well but in some cases I get weird effects as some labels disappear on certain scale-levels or get placed on parts of the geometries that don’t really make sense.<br>
><br>
>  <br>
><br>
> Looking for a reason for that behavior, I found out that geometry-functions deliver very different values depending on the current scale level. For getting some examples, I labeled one feature with the following expression:<br>
><br>
>  <br>
><br>
> 'xmax: ' + to_string(format_number(x_max($geometry), 0)) +' m; ' + 'area: '+ to_string(format_number(to_real($area),0)) + ' m2'<br>
><br>
>  <br>
><br>
> results:<br>
><br>
> On scale 1:50,000: 'xmax: 4,479,481 m; area: 232,526,142 m2'<br>
><br>
> On scale 1:100,000: 'xmax: 4,479,481 m; area: 5,343,813 m2'<br>
><br>
> On scale 1:800,000: 'xmax: 4,479,431 m; area: 4,885,325 m2'<br>
><br>
>  <br>
><br>
> I can send screenshots if needed.<br>
><br>
>  <br>
><br>
> With ‘identify features’ tool, I get an area of 232,528,728 square meters, which suggests that $area at scale 1:50,000 is almost correct.<br>
><br>
>  <br>
><br>
> General info: I’m working with QGIS 2.14, geometries come from a PostGIS-server, geometries and project use CRS DHDN / Gauss-Kruger zone 4 (EPSG:31468), the features I want to label are multipart polygons (I get the same effects using non-multipart features).<br>
><br>
>  <br>
><br>
> Does anyone have an idea if I may have missed some settings that cause the mentioned effects? Or may it be a bug in the geometry functions?<br></p>
<p dir="ltr">Yes - turn off the auto simplification for the layer under the "layer properties" - "rendering" tab.</p>
<p dir="ltr">Nyall<br>
><br>
>  <br>
><br>
> Thanks a lot for any help!<br>
><br>
>  <br>
><br>
> Best regards<br>
><br>
>  <br>
><br>
> Benjamin Fünfer-Königstein<br>
><br>
> S-IP-AN-TG Techn. Geschäftsfelder<br>
><br>
>  <br>
><br>
>  <br>
><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</p>