[mapserver-users] Barcharts missing

John Abraham jea at hbaspecto.com
Wed May 2 08:17:50 PDT 2012


I have a bar charts layer, and some of the bar charts don't show up.  Strangely, when I'm using openlayers to display a zoom-and-pan map different bar charts go missing at different levels of zoom.  Is this a bug, or some feature?

Here's a bit of my mapfile:

        MAP
            NAME "luzs-MAP"
            # Map image size
            SIZE 1000 800
            UNITS meters
        EXTENT -85.3382299999 33.1785600011 -83.5057259973 34.5140960012
        PROJECTION
            "init=epsg:4326"
        END
            
            #TEMPLATEPATTERN 'mapserv_template*' 
      
            # Background color for the map canvas -- change as desired
            IMAGECOLOR 255 255 255
            IMAGEQUALITY 95
            IMAGETYPE agg
    
            OUTPUTFORMAT
                NAME agg
                DRIVER AGG/PNG
                IMAGEMODE RGB
            END

skipping over to the bar charts layer definition:

        LAYER
            NAME "years"
            TYPE CHART
            CONNECTIONTYPE postgis
    
            CONNECTION "dbname='atlanta_db' host=localhost port=5433 user='usrPostgres' password='usrPostgres'"
            DATA 'graph_point_geom FROM analysis."W01a_CA35DetResid_120501_170604_with_geom" USING UNIQUE gid USING srid=4326'
            PROCESSING "CHART_TYPE=bar"  
            PROCESSING "CHART_BAR_MINVAL=-0.180638991133"
            PROCESSING "CHART_BAR_MAXVAL=154895170.852"
            PROCESSING "CHART_SIZE=30 50"
            
            STATUS ON 
            CLASS
                NAME "sum2005demand"
                STYLE
                    SIZE [sum2005demand]
                    COLOR 189 163 26
                END 
            END 

            
            CLASS
                NAME "sum2006demand"
                STYLE
                    SIZE [sum2006demand]
                    COLOR 235 7 177
                END 
            END 
etc.

--
John Abraham
jea at hbaspecto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120502/f6cbfaa3/attachment.htm>


More information about the MapServer-users mailing list