[mapserver-users] Defining Classes/Labels for contours
Michael Soracco
Michael.Soracco@noaa.gov
Wed, 30 Oct 2002 15:17:16 -0500
--------------5B4DBA647187386CBF95D7AA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I've checked the archives and didn't see anything on what I need to do.
It's probably straightforward, but I haven't been able to figure it
out...
I have a Polyline shapefile where each polyline has a classified value
(i.e. Contour 1,2,3,4,5,6,7,8,9,10). I've tried the following to draw
the contours in different colors but have only succeeded in creating a
Legend Class for each level. Is it possible to have graduated colors
for the lines within the same Layer Object?
LAYER
NAME BATHY
TYPE LINE
STATUS OFF
DATA bathy
CLASSITEM "Contour"
MAXSCALE 500000
CLASS
NAME "0 - 5"
EXPRESSION "(Contour >= 0 AND Contour <=5)"
COLOR 200 0 0
END
CLASS
NAME "5 - 10"
EXPRESSION "(Contour > 5 AND Contour <=10)"
COLOR 0 200 0
END
END
Thanks in advance for the help.
--
////
Michael Soracco
SES, Inc. for NOAA/NESDIS
at NOAA Science Center (WWB)
5200 Auth Road, Room 607
Camp Springs, MD 20746
Voice: 301.763.8142 x117
FAX: 301.763.8131
Michael.Soracco@noaa.gov
--------------5B4DBA647187386CBF95D7AA
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I've checked the archives and didn't see anything on what I need to do.
It's probably straightforward, but I haven't been able to figure it out...
<p>I have a Polyline shapefile where each polyline has a classified value
(i.e. Contour 1,2,3,4,5,6,7,8,9,10). I've tried the following to
draw the contours in different colors but have only succeeded in creating
a Legend Class for each level. Is it possible to have graduated colors
for the lines within the same Layer Object?<tt></tt>
<p><tt><font color="#000099">LAYER</font></tt>
<br><tt><font color="#000099"> NAME BATHY</font></tt>
<br><tt><font color="#000099"> TYPE LINE</font></tt>
<br><tt><font color="#000099"> STATUS OFF</font></tt>
<br><tt><font color="#000099"> DATA bathy</font></tt>
<br><tt><font color="#000099"> CLASSITEM "Contour"</font></tt>
<br><tt><font color="#000099"> MAXSCALE 500000</font></tt>
<br><tt><font color="#000099"> CLASS</font></tt>
<br><tt><font color="#000099">
NAME "0 - 5"</font></tt>
<br><tt><font color="#000099">
EXPRESSION "(Contour >= 0 AND Contour <=5)"</font></tt>
<br><tt><font color="#000099">
COLOR 200 0 0</font></tt>
<br><tt><font color="#000099"> END</font></tt>
<br><tt><font color="#000099"> CLASS</font></tt>
<br><tt><font color="#000099">
NAME "5 - 10"</font></tt>
<br><tt><font color="#000099">
EXPRESSION "(Contour > 5 AND Contour <=10)"</font></tt>
<br><tt><font color="#000099">
COLOR 0 200 0</font></tt>
<br><tt><font color="#000099"> END</font></tt>
<br><tt><font color="#000099">END</font></tt>
<br>
<p>Thanks in advance for the help.
<br>--
<br>////
<br>Michael Soracco
<br>SES, Inc. for NOAA/NESDIS
<br>at NOAA Science Center (WWB)
<br>5200 Auth Road, Room 607
<br>Camp Springs, MD 20746
<br>Voice: 301.763.8142 x117
<br>FAX: 301.763.8131
<br>Michael.Soracco@noaa.gov
<br> </html>
--------------5B4DBA647187386CBF95D7AA--