[Qgis-developer] Data defined symbol dimension: bug?
Anita Graser
anitagraser at gmx.at
Tue Mar 11 12:50:11 PDT 2014
Am 11.03.2014, 19:49 Uhr, schrieb Giovanni Manghi
<giovanni.manghi at faunalia.pt>:
>> Hi all.
>> I noticed a strange behaviour in data defined symbol size. With this
>> expression:
>> ( year( "data_inizio" )-1985) /10
>> I get the attached image1.jpg (labels are made with the same
>> expression).
>> With this one:
>> ( year( "data_inizio" )) /100
>> I get image2.jpg, also attached. Same scale. So size is calculated
>> correctly, but
>> displayed wrongly.
>> Seems like a bug, right?
>
> if I define an expression like
>
> ("column_int" -1985)/4+5
>
> the preview is ok, but...
>
> after re-opening the expression for the data defined size it shows as
>
> "column_int" - 1985/4+5
>
> the parentheses are gone and of course the result is much different
> from the expected one...
I also noticed that "some_column" / 5.0
is changed to "some_column" / 5
and thus the result may no longer be a float value.
Best wishes,
Anita
>
>
> cheers!
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
anitagraser.com
More information about the Qgis-developer
mailing list