<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">Hello List,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">i am relativly new to mapfiles and mapserver.<o:p></o:p></p>
<p class="MsoNormal">I am right now trying to bild an chart layer with my data.<o:p></o:p></p>
<p class="MsoNormal">if i got only one postgresql table i got pie charts with no problem&#8230;<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">LAYER<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;NAME 'Grenzen aller Länder'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;GROUP 'baselayer'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;TYPE CHART<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;INCLUDE &quot;postgis.config&quot;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;DATA &quot;the_geom from (SELECT c.gid, c.area, ST_Centroid(c.the_geom) AS the_geom FROM basemap AS c ) as foo using unique gid using SRID=4326&quot;&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;STATUS on<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">PROCESSING &quot;CHART_TYPE=PIE&quot;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;METADATA<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; WMS_TITLE 'Grenzen aller Länder'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; WMS_FEATURE_INFO_MIME_TYPE 'text/html'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;END #METADATA<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; NAME 'Grenzen aller Länder'&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">SIZE [gid]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; COLOR 0 104 55 # CMYK 100, 25, 90, 0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; OUTLINECOLOR 1 1 1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">WIDTH 2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; END #STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;END # CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; NAME 'Grenzen aller Länder'&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">SIZE [area]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; COLOR 49 163 84 # CMYK 81, 0, 76, 0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; OUTLINECOLOR 1 1 1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">WIDTH 2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; END #STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;END # CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">END # Layer<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">if i try to make pie charts with a join, i don´t get a map back.<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">LAYER<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;NAME 'Grenzen aller Länder'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;GROUP 'bicc_baselayer'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;TYPE CHART<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;INCLUDE &quot;postgis.config&quot;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">DATA &quot;the_geom from (SELECT c.gid, gmi.milps, gmi.milpr, ST_Centroid(c.the_geom) AS the_geom FROM bicc_basemap AS c LEFT JOIN bpb_m3_thema1_2008_2 AS
 gmi ON c.iso3_code = gmi.iso3_code) as foo using unique gid using SRID=4326&quot; <o:p>
</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">gid using SRID=4326&quot;&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;STATUS on<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">PROCESSING &quot;CHART_TYPE=PIE&quot;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;METADATA<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; WMS_TITLE 'Grenzen aller Länder'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; WMS_FEATURE_INFO_MIME_TYPE 'text/html'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;END #METADATA<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; NAME 'Grenzen aller Länder'&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">SIZE [milps]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; COLOR 0 104 55 # CMYK 100, 25, 90, 0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; OUTLINECOLOR 1 1 1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">WIDTH 2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; END #STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;END # CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp; NAME 'Grenzen aller Länder'&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">SIZE [milpr]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; COLOR 49 163 84 # CMYK 81, 0, 76, 0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; OUTLINECOLOR 1 1 1<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">WIDTH 2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;&nbsp; END #STYLE<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">&nbsp;END # CLASS<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;
font-family:&quot;Courier New&quot;">END # Layer<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Can anyone help me?!?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Alex<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">--<br>
Internationales Konversionszentrum Bonn<br>
Bonn International Center for Conversion (BICC) GmbH<br>
Pfarrer- Byns-Straße 1, 53121 Bonn, GERMANY<br>
Tel. / Phone: &#43;49-228-911 96 0, Fax: &#43;49-228-911 96 - 22<br>
Internet: www.bicc.de, E-mail: bicc@bicc.de<br>
<br>
Firmensitz/ Office: Bonn<br>
Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717<br>
Geschäftsführer/ Director: Peter Johannes Croll<br>
Prokurist/ Authorized Signatory: Michael Dedek<br>
Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board:<br>
Staatssekretär/ Deputy Minister Dr. Michael Stückradt<br>
</font>
</body>
</html>