<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Horray Mr. Michael and Mr. Lime thanks it works. really appreciate your kindness :)<br><br>best regards,<br><br>-Theresia<br><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "Lime, Steve D (DNR)" &lt;Steve.Lime@state.mn.us&gt;<br><b><span style="font-weight: bold;">To:</span></b> elisabeth theresia &lt;dbee_kawai@yahoo.com&gt;; mapserv forumlist &lt;mapserver-users@lists.osgeo.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, October 6, 2010 4:07:27 PM<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [mapserver-users] How to display Labels from 1 table?<br></font><br>
Michael's post was right on, study his example closely. You TEXT parameter is in the wrong place. There's no need to use a FEATURE object...<br><br>Steve<br>________________________________________<br>From: <a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of elisabeth theresia [<a ymailto="mailto:dbee_kawai@yahoo.com" href="mailto:dbee_kawai@yahoo.com">dbee_kawai@yahoo.com</a>]<br>Sent: Wednesday, October 06, 2010 10:48 AM<br>To: mapserv forumlist<br>Subject: Re: [mapserver-users] How to display Labels from 1 table?<br><br>Hi Mr. Michael,<br><br>Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's
 no labels appear in my map yet, why?<br><br>then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2])<br><br>here the coding:<br>LAYER<br>&nbsp; &nbsp; NAME "Annotation of Region"<br>&nbsp; &nbsp; TYPE ANNOTATION<br>&nbsp; &nbsp; STATUS DEFAULT<br>&nbsp; &nbsp; FEATURE<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TEXT ([name_region]|[value_1]-[value_2])<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END #FEATURE<br>&nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>&nbsp; &nbsp; &nbsp; &nbsp; LABEL<br>&nbsp; &nbsp; &nbsp; &nbsp; COLOR 0 0 0<br>&nbsp; &nbsp; &nbsp; &nbsp; TYPE Truetype<br>&nbsp; &nbsp; &nbsp; &nbsp; FONT Arial<br>&nbsp; &nbsp; &nbsp; &nbsp; SIZE 11<br>&nbsp; &nbsp; &nbsp; &nbsp; MINSIZE 8<br>&nbsp; &nbsp; &nbsp; &nbsp; ANGLE Auto<br>&nbsp; &nbsp; &nbsp; &nbsp; POSITION UC<br>&nbsp; &nbsp; &nbsp; &nbsp; ANTIALIAS True<br>&nbsp; &nbsp; &nbsp; &nbsp; WRAP
 "|"<br>&nbsp; &nbsp; &nbsp; &nbsp; END #LABEL<br>&nbsp; &nbsp; &nbsp; &nbsp; END #CLASS<br>END #LAYER<br><br><br>Thanks for the attention :)<br>-Theresia<br><br>________________________________<br>rFrom: Michael Schulz &lt;<a ymailto="mailto:xx@xx.x" href="mailto:xx@xx.x">xx@xx.x</a>&gt;<br>To: elisabeth theresia &lt;<a ymailto="mailto:xx@xx.com" href="mailto:xx@xx.com">xx@xx.com</a>&gt;<br>Cc: mapserv forumlist &lt;<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>Sent: Wed, October 6, 2010 6:45:30 AM<br>Subject: Re: [mapserver-users] How to display Labels from 1 table?<br><br>Hi Theresia,<br><br>you can do it via the TEXT keyword in the CLASS section of a layer:<br><span><a target="_blank" href="http://www.mapserver.org/mapfile/class.html">http://www.mapserver.org/mapfile/class.html</a></span><br><br>e.g. like this:<br><br>&nbsp; &nbsp; &nbsp; CLASS<br>&nbsp;
 &nbsp; &nbsp; &nbsp; LABEL<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 0 0 0<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE Truetype<br>&nbsp; &nbsp; &nbsp; &nbsp;  FONT Arial<br>&nbsp; &nbsp; &nbsp; &nbsp;  SIZE 11<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MINSIZE 8<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANGLE Auto<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; POSITION UC<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANTIALIAS True<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WRAP "|"<br>&nbsp; &nbsp; &nbsp; &nbsp; END # LABEL<br>&nbsp; &nbsp; &nbsp; &nbsp; TEXT ([name_region]|[values_1] - [values_2])<br>&nbsp; &nbsp; END #CLASS<br><br>This will label the features with the values of the tree fields in this form:<br><br>name_region<br>values_1 - values_2<br><br>You can request the line break with the WRAP keyword. In recent<br>mapbender versions there are also keywords to control label alignment.<br><br>Cheers, Michael<br><br><br>2010/10/6 elisabeth theresia &lt;<a
 ymailto="mailto:dbee_kawai@yahoo.com" href="mailto:dbee_kawai@yahoo.com">dbee_kawai@yahoo.com</a>&lt;mailto:<a ymailto="mailto:dbee_kawai@yahoo.com" href="mailto:dbee_kawai@yahoo.com">dbee_kawai@yahoo.com</a>&gt;&gt;:<br>&gt; Hello Mapserver experts,<br>&gt;<br>&gt; I have question in my mind, How to display Labels from 1 table in my<br>&gt; database (Postgre + Postgis)?<br>&gt; in this table there are fields of : name_region, values_1, values_2, How to<br>&gt; appear them? Could Mapserver make it?<br>&gt; I ask this question, because I want to show the difference values_1 between<br>&gt; values_2 in my Bar Chart :)<br>&gt;<br>&gt; if i do this (code in the bottom) then just appear values_2 in the map :) ?<br>&gt;<br>&gt; LAYER<br>&gt; STATUS DEFAULT<br>&gt;&nbsp; &nbsp;  TYPE ANNOTATION<br>&gt;&nbsp; &nbsp;  CONNECTIONTYPE POSTGIS<br>&gt;&nbsp; &nbsp;  CONNECTION "user=x password=x dbname=mydb host=host port=5432"<br>&gt;&nbsp; &nbsp;  DATA "the_geom
 FROM tb_region USING UNIQUE code_region"<br>&gt;<br>&gt;&nbsp; &nbsp;  LABELITEM "name_region"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  CLASS<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  LABEL<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  COLOR 0 0 0<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  TYPE Truetype<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  FONT Arial<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  SIZE 11<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  MINSIZE 8<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  ANGLE Auto<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  POSITION UC<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  ANTIALIAS True<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  END # LABEL<br>&gt;&nbsp; &nbsp;  END #CLASS<br>&gt;<br>&gt;&nbsp; &nbsp;  LABELITEM "values_1"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  CLASS<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  LABEL<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  COLOR 255 255 255<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  TYPE Truetype<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  FONT Arial<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  SIZE
 9<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  MINSIZE 8<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  ANGLE Auto<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  POSITION UC<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  ANTIALIAS True<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  END # LABEL<br>&gt;&nbsp; &nbsp;  END #CLASS<br>&gt;<br>&gt; LABELITEM "values_2"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  CLASS<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  LABEL<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  COLOR 255 255 255<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  TYPE Truetype<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  FONT Arial<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  SIZE 9<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  MINSIZE 8<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  ANGLE Auto<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  POSITION UC<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  ANTIALIAS True<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  END # LABEL<br>&gt;&nbsp; &nbsp;  END #CLASS<br>&gt; END #LAYER<br>&gt;<br>&gt; Thanks really appreciate yours,<br>&gt;<br>&gt; -Theresia
 :)<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br><span>&gt; <a target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span><br>&gt;<br>&gt;<br><br><br><br>--<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Treffen Sie uns auf der INTERGEO<br>05.10. - 07.10.2010<br>in Köln Halle: 11.2<br>Stand-Nr: 2C.121<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>-----------------------------------------------------------<br>Michael Schulz<br><a ymailto="mailto:mschulz@webgis.de"
 href="mailto:mschulz@webgis.de">mschulz@webgis.de</a>&lt;mailto:<a ymailto="mailto:mschulz@webgis.de" href="mailto:mschulz@webgis.de">mschulz@webgis.de</a>&gt;<br><br>in medias res<br>Gesellschaft für Informationstechnologie mbH<br><br>Schwimmbadstraße 2<br>D-79100&nbsp; Freiburg i. Br.<br><br>Tel:&nbsp; +49 (0)761 705798-102<br>Tel:&nbsp; +49 (0)761 705798-0<br>Fax: +49 (0)761 705798-09<br><br><span><a target="_blank" href="http://www.webgis.de">http://www.webgis.de</a> / <a target="_blank" href="http://www.zopecms.de">http://www.zopecms.de</a></span><br>--------------------------------------------------------------<br>Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck<br>Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg<br><br><br></div></div>
</div><br>

      </body></html>