<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>I wanted to minimize the number of classes within a layer and found a statement in MapServer/Style documentation that we can have multiple styles within a class but was wondering if they could be used for styling (coloring) different attributes of a type (as in PIG example).</div><div><br></div><div>Mukesh </div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "Fawcett, David (MPCA)" <david.fawcett@state.mn.us><br><b><span style="font-weight: bold;">To:</span></b> Mukesh Subedee <msubedee@yahoo.com>; mapserver mailing list
<mapserver-users@lists.osgeo.org><br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 27, 2011 13:42:58<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [mapserver-users] multiple layers in a class<br></font><br><style><!--
_filtered {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"serif";}
a:link, span.MsoHyperlink
{
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{
color:purple;
text-decoration:underline;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{
margin-right:0in;
margin-left:0in;
font-size:10.0pt;
font-family:"serif";}
span.emailstyle17
{
font-family:"sans-serif";
color:#1F497D;}
span.EmailStyle19
{
font-family:"sans-serif";
color:#1F497D;}
.MsoChpDefault
{
font-size:10.0pt;}
_filtered {
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{}
--></style><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">No. That is what classes are for.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">What is your concern about using multiple classes?</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"sans-serif";">From:</span></b><span style="font-size:10.0pt;font-family:"sans-serif";"> Mukesh Subedee [mailto:msubedee@yahoo.com] <br><b>Sent:</b> Wednesday, April 27, 2011 3:41 PM<br><b>To:</b>
Fawcett, David (MPCA); mapserver mailing list<br><b>Subject:</b> Re: [mapserver-users] multiple layers in a class</span></p></div></div><p class="MsoNormal"> </p><div><div><p class="MsoNormal">Oops, my bad...I meant multiple styles within a class. Does that mean I cannot use different color scheme for symbolizing "SMALL PIG" and "BIG PIG" within a same class? Is there any way to categorize each PIG with different EXPRESSION and give different STYLE for each within a class?</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Mukesh</p></div><div><p class="MsoNormal"> </p><div><div class="MsoNormal" align="center" style="text-align:center;"><span style="font-size:10.0pt;font-family:"sans-serif";"><hr size="1" width="100%" align="center"></span></div><p class="MsoNormal" style="margin-bottom:12.0pt;"><b><span style="font-size:10.0pt;font-family:"sans-serif";">From:</span></b><span
style="font-size:10.0pt;font-family:"sans-serif";"> "Fawcett, David (MPCA)" <david.fawcett@state.mn.us><br><b>To:</b> Mukesh Subedee <msubedee@yahoo.com>; mapserver mailing list <mapserver-users@lists.osgeo.org><br><b>Sent:</b> Wednesday, April 27, 2011 12:35:44<br><b>Subject:</b> RE: [mapserver-users] multiple layers in a class</span></p><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">Mukesh, </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. </span></p><p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">You can have multiple styles within a class, but they would be applied equally to all of the features in that class. One example might be stacking symbols for a feature. </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">The docs don’t say that you can have multiple ‘layers’ within a class, but that you can have multiple ‘styles’ applied within a class. <a rel="nofollow" target="_blank" href="http://mapserver.org/mapfile/style.html">http://mapserver.org/mapfile/style.html</a></span></p><p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">In your description below, you are conceptually talking about having different classes within a layer, but just using different words. Is there a reason that you have an aversion to using multiple classes? </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">You can group classes if there is a need for it. <a rel="nofollow" target="_blank" href="http://mapserver.org/mapfile/class.html">http://mapserver.org/mapfile/class.html</a></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><p
class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">David.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"sans-serif";">From:</span></b><span style="font-size:10.0pt;font-family:"sans-serif";"> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Mukesh Subedee<br><b>Sent:</b> Wednesday, April 27, 2011 2:06 PM<br><b>To:</b> mapserver mailing list<br><b>Subject:</b> [mapserver-users] multiple layers in a class</span></p></div></div><p class="MsoNormal"> </p><div><div><p class="MsoNormal">Hi, </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">In the STYLE
documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in <a rel="nofollow" target="_blank" href="http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html">http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html</a> where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Thanks,</p></div><div><p class="MsoNormal">Mukesh</p></div></div></div></div></div></div></div></div></div><div style="position:fixed"></div>
</div></body></html>