<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Bob<SPAN
class=800185121-23092004>,</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004></SPAN><SPAN class=800185121-23092004>Below is an
example layer definition showing how to draw the same layer at different
scales by defining the MINSCALE/MAXSCALE for each class. In you case, you
migh need some thing like this:</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004></SPAN></SPAN> </DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004></SPAN><SPAN class=800185121-23092004>LAYER<BR>
CLASS</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004> EXPRESSION /^1/</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004> MINSCALE ??</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004> MAXSCALE ??</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004> COLOR 100 100
100<BR> SIZE 7<BR> SYMBOL
"circle"<BR></SPAN></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004> END </SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=800185121-23092004><FONT size=3> CLASS</FONT>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=3><SPAN
class=800185121-23092004> EXPRESSION
/^2/</SPAN></FONT></SPAN></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MINSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MAXSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN
class=800185121-23092004> COLOR 10 10
10<BR> SIZE 7<BR> SYMBOL
"circle"<BR></SPAN></FONT></FONT></SPAN></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=+0><FONT size=+0><SPAN
class=800185121-23092004> END
</SPAN></FONT></FONT></SPAN></DIV> CLASS
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004>
EXPRESSION /^3/</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MINSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MAXSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN
class=800185121-23092004> COLOR 100 100
100<BR> SIZE 7<BR> SYMBOL
"circle"<BR></SPAN></FONT></FONT></SPAN></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=+0><FONT size=+0><SPAN
class=800185121-23092004> END
</SPAN></FONT></FONT></SPAN></DIV> CLASS
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004>
EXPRESSION /^4/</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MINSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MAXSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN
class=800185121-23092004> COLOR 10 10
10<BR> SIZE 7<BR> SYMBOL
"circle"<BR></SPAN></FONT></FONT></SPAN></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=+0><FONT size=+0><SPAN
class=800185121-23092004> END
</SPAN></FONT></FONT></SPAN></DIV> CLASS
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004>
EXPRESSION /^5/</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MINSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MAXSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN
class=800185121-23092004> COLOR 10 10
10<BR> SIZE 7<BR> SYMBOL
"circle"<BR></SPAN></FONT></FONT></SPAN></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=+0><FONT size=+0><SPAN
class=800185121-23092004> END
</SPAN></FONT></FONT></SPAN></DIV> CLASS
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004>
EXPRESSION /^6/</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MINSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN class=800185121-23092004> MAXSCALE
??</SPAN></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
size=+0><FONT size=+0><SPAN
class=800185121-23092004> COLOR 100 100
100<BR> SIZE 7<BR> SYMBOL
"circle"<BR></SPAN></FONT></FONT></SPAN></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=+0><FONT size=+0><SPAN
class=800185121-23092004>
END </SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT size=+0><FONT
size=+0><SPAN class=800185121-23092004> <FONT size=2> CLASSITEM
"<FIELD_NAME>"</FONT></SPAN></FONT></FONT></SPAN></DIV>END</SPAN> </SPAN><FONT
face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=800185121-23092004>-------------------------------------------By example
---------------------------------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2>LAYER<BR> NAME
"roads"<BR> GROUP "roads"<BR> TYPE
LINE<BR> TOLERANCEUNITS pixels<BR> DUMP
true<BR> TOLERANCE 5<BR>
CLASS<BR> MAXSCALE
20000<BR> COLOR 100 100
100<BR> SIZE 7<BR>
SYMBOL "circle"<BR> OVERLAYCOLOR 255 255
2255<BR> OVERLAYSIZE
2<BR> OVERLAYSYMBOL "dash1"<BR>
END<BR> CLASS<BR> MINSCALE
20001<BR> MAXSCALE
40000<BR> COLOR 100 100
100<BR> SIZE 5<BR>
SYMBOL "circle"<BR> OVERLAYCOLOR 200 200
200<BR> OVERLAYSIZE
3<BR> OVERLAYSYMBOL "circle"<BR>
END<BR> CLASS<BR> MINSCALE
40001<BR> COLOR 100 100
100<BR> SIZE 1<BR>
SYMBOL "circle"<BR> END<BR> STATUS
on<BR> PROJECTION<BR>
"init=epsg:4326"<BR> END<BR> DATA
"/ms4w/chameleon/data/cities/tema/roads.shp"<BR>
METADATA<BR> WMS_TITLE
"roads"<BR> WFS_TITLE
"roads"<BR> END<BR> END<BR> </FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU]<B>On Behalf Of
</B>WEST.BOB<BR><B>Sent:</B> Thursday, September 23, 2004 11:38
AM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B>
[UMN_MAPSERVER-USERS] SET THE SCALE OF WHERE CLASSES OF FEATURES
DISPLAY<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am new to mapserv. I am trying
to set-up a map file for roads. I have a field in my road shape file that has
a number from 1 to 6. 6 is the interstate, 5 are the major roads and it goes
down to 1 that are private sub division roads. I want to set-up one layer with
6 classes, one for each class of roads. Then at different scales I want to set
different classes of roads to display and to show its name. Seams to me there
should be a way to set the color, the maximum and minimum scale that each
class of roads line shows and a separate setting to set the scale of its
label. Can anyone give me an example MAP file for doing this?
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The object of this is so that when
I look at the full map all I see are the interstates and as I zoom in I see
more roads and more labels till I get down to the point I see all roads and
labels.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Bob
West</SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>