Hi List,

I saw somewhere in a mapserver forum that Mapserver accepts DATE as Today date in a EXPRESSION, but in my case doesn't work. Any ideas?

The goal is to label today weather MYSQL Database in a Map.

Thanks in advance

Carlos

PS: Below my Weather Layer

LAYER # Daily Weather
      NAME "weather"
      STATUS DEFAULT
    CONNECTIONTYPE OGR
      CONNECTION "ipma.ovf"
    DATA weather
      TYPE POINT
      CLASS
        EXPRESSION("[data]" = "DATE format = %Y/%m/%d")     # <----------------------- DOESN'T WORK!!!
        TEXT ("[data]"+" "+"[tmin]"+" "+"[tmax]")

        LABEL #defines the font, colors etc. of the text
            FONT "tahoma"
            TYPE TRUETYPE
            SIZE 10
            BUFFER 1
            COLOR 200 200 200

        END
  END
  UNITS PIXELS #sets the units for the feature object

END #End of Weather Layer

_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to