pie charts with ANGLEITEM?
Steve Lime
steve.lime at DNR.STATE.MN.US
Fri Aug 5 14:55:36 EDT 2005
Ok, found the problem. The code to use angleitem or sizeitem for point layers was simply not there.
I added and committed to 4.6 and CVS HEAD. Your example works now...
Steve
>>> Karsten Hoffmann <karhof at WEB.DE> 08/01/05 5:00 PM >>>
I have attached the shapefile (and the other files linked to it). These files are stored in my folder "data2".
The important parts of my mapfile:
NAME BERLIN3
STATUS ON
SIZE 460 380
SYMBOLSET "symbols/symbols.sym"
FONTSET "fonts/fonts.list"
EXTENT 368711.0 5799080.0 417394.3 5837400.0
UNITS METERS
SHAPEPATH "data2"
IMAGECOLOR 255 255 224
TRANSPARENT OFF
IMAGETYPE PNG
WEB
TEMPLATE berlin3.html
LOG maps.log
MINSCALE 50000
MAXSCALE 300000
IMAGEPATH "c:/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
PROJECTION
"init=epsg:32633" # WGS 84 / UTM zone 33N
END
LAYER
NAME unternehmen2
PROJECTION
"init=epsg:4326"
END
TYPE POINT
DATA pbezirke
STATUS ON
CLASS
#NAME "Kreisdiagramm"
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
END
## symbol "punkt" in the symbol file:
SYMBOL
NAME "punkt"
TYPE ELLIPSE
POINTS
1 1
END
FILLED TRUE
END
Karsten Hoffmann
"Steve Lime" <steve.lime at dnr.state.mn.us> schrieb am 01.08.05 22:51:27:
>
> Can you post your shapefile (or a subset) as well?
>
> Steve
>
> >>> Karsten Hoffmann <karhof at WEB.DE> 08/01/05 11:37 AM >>>
> 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.
>
> 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 der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179
More information about the mapserver-dev
mailing list