[mapserver-users] Re: How to appear Graph?

thomas bonfort thomas.bonfort at gmail.com
Fri Aug 27 01:59:42 EDT 2010


What version of MapServer are you using? Charting appeared in 5.0.
Regards,
Thomas
On Aug 26, 2010 9:02 PM, "elisabeth theresia" <dbee_kawai at yahoo.com> wrote:

>
> Hi Mr. Sumit,
>
> Thanks for your advice. when i tried to apply step by step from:
> http://mapserver.org/output/dynamic_charting.html
>
> then in the browser said:
> getSymbol(): Symbol definition error. Parsing error near (CHART):(line 66)
>
>
> this is line 66:
>
> TYPE CHART
>
>
> why become like this?
>
> here the mapfile:
> ###############CHART##############
>     LAYER
>     NAME "chart bj"
>     STATUS ON
>         #TYPE POLYGON
>         TYPE CHART
>         PROCESSING "CHART_TYPE=BAR"
>         PROCESSING "CHART_SIZE=20 10" #specify size of the chart for pie or
> bar graphs
>         #PROCESSING "CHART_SIZE=20 10" #specify width n height for graphs
>     CONNECTIONTYPE POSTGIS
>     CONNECTION "user=dbee password=root dbname=dbSpatialSura host=localhost
> port=5432"
>     DATA "the_geom FROM tbk_bjsr_gender USING UNIQUE kode_kel"
>
>         CLASS
>         NAME "1000-2000"
>         TEMPLATE "./template_gender.html"
>             EXPRESSION ([ljum_bj]>=1000 and [ljum_bj]<=2000)
>             STYLE
>             COLOR 255 255 0
>             OUTLINECOLOR 0 0 0
>             WIDTH 2
>             ANTIALIAS TRUE
>             END#STYLE
>         END #CLASS
>
>         CLASS
>         NAME "2001-4000"
>         TEMPLATE "./template_gender.html"
>             EXPRESSION ([ljum_bj]>=2001 and [ljum_bj]<=4000)
>             STYLE
>             COLOR 255 255 100
>             OUTLINECOLOR 0 0 0
>             WIDTH 2
>             ANTIALIAS TRUE
>             END#STYLE
>         END #CLASS
>
>         CLASS
>         NAME "4001-8000"
>         TEMPLATE "./template_gender.html"
>             EXPRESSION ([ljum_bj]>=4001 and [ljum_bj]<=8000)
>             STYLE
>             COLOR 200 200 0
>             OUTLINECOLOR 0 0 0
>             WIDTH 2
>             ANTIALIAS TRUE
>             END#STYLE
>         END #CLASS
>
>         CLASS
>         NAME "8001-16000"
>         TEMPLATE "./template_gender.html"
>             EXPRESSION ([ljum_bj]>=8001 and [ljum_bj]<=16000)
>             STYLE
>             COLOR 150 150 0
>             OUTLINECOLOR 0 0 0
>             WIDTH 2
>             ANTIALIAS TRUE
>             END#STYLE
>         END #CLASS
>
>         CLASS
>         NAME " >16000"
>         TEMPLATE "./template_gender.html"
>             EXPRESSION ([ljum_bj]>=16000)
>             STYLE
>             COLOR 100 100 0
>             OUTLINECOLOR 0 0 0
>             WIDTH 2
>             ANTIALIAS TRUE
>             END#STYLE
>         END #CLASS
>
>     END #LAYER
>
> Thanks a lot and sorry makes confuse :)
>
> -Theresia
> ------------------------------
> *From:* Sumit Sharma <sumit321 at hotmail.com>
> *To:* mapserver-users at lists.osgeo.org
> *Sent:* Wed, August 25, 2010 11:26:23 PM
> *Subject:* [mapserver-users] Re: How to appear Graph?
>
>
>
> You may like to visit following URL for charting...
> http://mapserver.org/output/dynamic_charting.h...
>
>
>
> _______________________________________________
> 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/20100827/6555f8d4/attachment.html


More information about the mapserver-users mailing list