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

elisabeth theresia dbee_kawai at yahoo.com
Thu Aug 26 15:02:10 EDT 2010



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.html
Hope that helps
-Sumit
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-appear-Graph-tp5463915p5464433.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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100826/ccef8f2d/attachment-0001.html


More information about the mapserver-users mailing list