<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Hi Michael</DIV>
<DIV>&nbsp;</DIV>
<DIV>Take a look at CLASS and EXPRESSION: <A href="http://mapserver.org/mapfile/class.html">http://mapserver.org/mapfile/class.html</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is an example from one of my map files:</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp; NAME rivers<BR>&nbsp; GROUP "Topos"<BR>&nbsp; TYPE LINE<BR>&nbsp; STATUS ON<BR>&nbsp; DATA ../data/aus/rivers<BR>&nbsp; PROJECTION<BR>&nbsp;&nbsp; "init=epsg:4283"<BR>&nbsp; END<BR>&nbsp; MAXSCALE 10000000<BR>&nbsp; MINSCALE 75000<BR>&nbsp; CLASSITEM "PERENNIAL"<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; EXPRESSION /1/<BR>&nbsp;&nbsp;&nbsp; NAME "Permanent"<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WIDTH 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 115 178 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; EXPRESSION /2/<BR>&nbsp;&nbsp;&nbsp; NAME "Seasonal"<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WIDTH 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 115 178 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END #CLASS</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR><BR>&gt;&gt;&gt; "Michael G." &lt;michael.gajda@tu-dortmund.de&gt; 6/09/2011 11:10 a.m. &gt;&gt;&gt;<BR>Hmm, any hints for what I should search for?<BR><BR><BR>Am 04.09.2011 19:35, schrieb Michael G.:<BR>&gt; Hello,<BR>&gt; <BR>&gt; I am rendering vectordata from a PostGIS database which works like a charm.<BR>&gt; My layer definition looks like this:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; LAYER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "vector"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_include_items" "all"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_title" "dortmund_basic"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE gfi.html<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ## Should be inherited from MAP level, but is good practice to have<BR>&gt; here, too: ##(or not? &lt;.&lt;)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #PROJECTION<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp; "init=epsg:900913"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #END<B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>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt; <BR>&gt; Right now, I have not fully grasped how features/information is saved along<BR>&gt; with the vector data in the PostGIS database, but I am also not maintaining<BR>&gt; it. Supposingly we will have a float-value saved along with every vector.<BR>&gt; Can someone explain or give me hints, how I could map such a value which is<BR>&gt; saved along into a color? Like a brighter shade of red the higher the value is?<BR>&gt; <BR>&gt; Sincerely<BR>&gt; Michael Gajda<BR>&gt; _______________________________________________<BR>&gt; mapserver-users mailing list<BR>&gt; mapserver-users@lists.osgeo.org<BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/mapserver">http://lists.osgeo.org/mailman/listinfo/mapserver</A>-users<BR><BR>_______________________________________________<BR>mapserver-users mailing list<BR>mapserver-users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/mapserver">http://lists.osgeo.org/mailman/listinfo/mapserver</A>-users<BR></DIV><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.</FONT></P>

<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for Malware and Viruses by Websense Hosted Security.  </FONT><A href="http://www.websense.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.websense.com</FONT></A></P>
</body></HTML>