[mapserver-users] text size from field but with an expression

thomas bonfort thomas.bonfort at gmail.com
Thu Oct 4 01:49:39 PDT 2012


On Thu, Oct 4, 2012 at 10:04 AM, Andrea Peri <aperi2007 at gmail.com> wrote:
> Hi,
> I have a label with the size from a field of attributes.
> But I need to change this size adding always a costant factor.
>
> I need someting like:
>
> LABEL
>   ...
>   SIZE expression([field1]+10)
>   ANGLE [field2]
> END
>
> This seem don't allowed.
>
> Is this right ?
correct. if you are using a db backend, you can let the db do this for you:

DATA "the_geom from (select id,the_geom,field1+10 as field1, field2
from mytable) as foo using unique id using srid=xxx"

>
> Thx,
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list