[mapserver-users] expressions in a chart layer

thomas bonfort thomas.bonfort at gmail.com
Mon Aug 8 03:52:38 PDT 2011


There is no such functionality for the time being. You can either
filter out the data at the DATA level (i.e. postgis query with "where
year=xxx") or fund the addition of expressions to the chart type
layers.

regards,
thomas

On Mon, Aug 8, 2011 at 11:39, Mario Basa <mario.basa at gmail.com> wrote:
> Hello.
>
> Do EXPRESSIONS work in a chart layer? I have been trying something
> like the one below, and the postgis layer only has 2010 and 2011 data
> and yet the 2012 portion of the chart keeps on appearing. If
> Expressions do not work, is there any other method of filtering the
> data before creating the pie char.    Thanks!
>
>
> TYPE CHART
> PROCESSING "CHART_SIZE=20"
> PROCESSING "CHART_TYPE=PIE"
>
> CLASS
>        NAME "2010"
>        EXPRESSION ([obj_yyyy]=2010)
>        STYLE
>            SIZE 5
>            COLOR 234 192 156
>            OUTLINECOLOR 10 10 10
>        END
>    END
>    CLASS
>        NAME "2011"
>        EXPRESSION ([obj_yyyy]=2011)
>        STYLE
>            SIZE 20
>            COLOR 112 78 221
>            OUTLINECOLOR 10 10 10
>        END
>    END
>    CLASS
>        NAME "2012"
>        EXPRESSION ([obj_yyyy]=2012)
>        STYLE
>            SIZE 60
>            COLOR 133 178 199
>            OUTLINECOLOR 10 10 10
>        END
>    END
> _______________________________________________
> 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