to answer your question : Yes.
i,m using 6.1-dev
here a one of the mapfile's class :
CLASS
NAME "<70%"
EXPRESSION ([taux_infra_personne]<(0.7*[taux_infra_personne_qc]))
GROUP "2010"
STYLE
OUTLINECOLOR 0 0 0
COLOR 0 254 51
END
LABEL
ALIGN CENTER
COLOR 10 0 0
OUTLINECOLOR 250 255 255
ANTIALIAS FALSE
TYPE TRUETYPE
FONT "arialbd"
SIZE 9
END
END
all i want, it is the NAME would be like the EXPRESSION :
NAME ([taux_infra_personne]<(0.7*[taux_infra_personne_qc]))
EXPRESSION ([taux_infra_personne]<(0.7*[taux_infra_personne_qc]))
2012/2/7 [email protected] <[email protected]>
> i'm using mapserver 6.1.
>
> i'm using a timeline and the legend must change each year but don't want to
> write all 5 class from 1997 to 2011.
> with a variable i could have only 5 class in my mapfile and when i will
> insert 2012's data, it will work automatically
>
> what's your idea ?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/variable-in-tag-NAME-of-a-CLASS-tp4342830p4372638.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> Le 30 janvier 2012 16:32, Lime, Steve D (DNR) <[email protected]> a
écrit :
Marc-Andre: Is your end game to change legend text dynamically? What
version are you using? I may
have a work-around for you.
Steve
*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *
[email protected]
*Sent:* Friday, January 27, 2012 8:05 AM
*To:* Marc-André Trottier
*Cc:* [email protected];
[email protected]
*Subject:* RE [mapserver-users] variable in tag NAME of a CLASS
According to this http://mapserver.org/cgi/runsub.html#parameters-supported
it seems that you can not use run-time substitution for a class name
*Marc-André Trottier <[email protected]>@lists.osgeo.org*
Envoyé par : [email protected]
2012-01-27 07:23
A
[email protected]
cc
Objet
[mapserver-users] variable in tag NAME of a CLASS
Can we put a variable or a attribute in the tag NAME of a CLASS ?
something like this : NAME "[patate]"
according to my tests
it do not seems but if someone can confirm
Marc-André Trottier_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users