RE [mapserver-users] variable in tag NAME of a CLASS

Marc-André Trottier marcandre_trottier at hotmail.com
Thu Feb 9 07:34:02 EST 2012


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 marcandre_trottier at hotmail.com <marcandre_trottier at hotmail.com>

> 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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> Le 30 janvier 2012 16:32, Lime, Steve D (DNR) <Steve.Lime at state.mn.us> 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:* mapserver-users-bounces at lists.osgeo.org [mailto:
mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *
Steve.Toutant at inspq.qc.ca
*Sent:* Friday, January 27, 2012 8:05 AM
*To:* Marc-André Trottier
*Cc:* mapserver-users at lists.osgeo.org;
mapserver-users-bounces at lists.osgeo.org
*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 <trottier.marcandre at gmail.com>@lists.osgeo.org*
Envoyé par : mapserver-users-bounces at lists.osgeo.org

2012-01-27 07:23

A

mapserver-users at lists.osgeo.org

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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120209/64640db9/attachment.html


More information about the mapserver-users mailing list