pie charts with ANGLEITEM?

Karsten Hoffmann karhof at WEB.DE
Mon Aug 1 12:37:16 EDT 2005


Hi,

has anyone tried already the parameter ANGLEITEM with ELLIPSE symbols (circles)?

Steve Lime has shown in a message how to create pie charts with mapserver (see Item #204 (17 Dec 2004 09:58) - "Pie Chart" marker symbols: http://lists.umn.edu/cgi-bin/wa?A2=ind0412&L=mapserver-dev&P=R876&I=-3&X=416A45711B904FBA3B&Y=karhof%40web.de)

I have tried it with ANGLE on a POINT file and it works very well. But it doesn’t seem to work with ANGLEITEM. Is this a bug?
It doesn’t work either with SIZEITEM (see bug 1398: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1398).

I’m using MapServer 4.6 on Windows XP (ms4w 1.2.1).
Below you’ll find the layer of my mapfile. It works with ANGLE. With ANGLEITEM I get only the circles without angles, so there are no pie slices. The angles are stored in the attribute table of the POINT file pbezirke.shp in the fields JKO_ANGLE, GHI_ANGLE and DEF_ANGLE. 

LAYER
    NAME unternehmen2
    PROJECTION
      "init=epsg:4326"
    END
    TYPE POINT
    DATA pbezirke
    STATUS ON
    CLASS
      STYLE
        SYMBOL punkt
        SIZE 40
        COLOR 56 168 0
      END    
      STYLE
        SYMBOL punkt
        SIZE 40
        ANGLEITEM "JKO_ANGLE"
        #ANGLE 300
        COLOR 230 230 0
      END  
      STYLE
        SYMBOL punkt
        SIZE 40
        ANGLEITEM "GHI_ANGLE"
        #ANGLE 245
        COLOR 0 112 255
      END  
      STYLE
        SYMBOL punkt
        SIZE 40
        ANGLEITEM "DEF_ANGLE"
        #ANGLE 75
        COLOR 255 0 0
      END        
    END
END

## symbol "punkt" in the symbol file ##

SYMBOL
  NAME "punkt"
  TYPE ELLIPSE
  POINTS
    1 1
  END
  FILLED TRUE
END

Is there something wrong in my files or is this a bug?

ANGLEITEM and SIZEITEM would be nice parameters for the relative easy creation of different pie charts in a map, especially for statistical maps.

Best regards,
Karsten Hoffmann

__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201



More information about the mapserver-dev mailing list