<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body>
All,<br>
<br>
Ok, then.&nbsp; Let's forget a static color value for the time being.&nbsp; What
about a color ramp.&nbsp; Can a color ramp be used somehow (without going a
database route, or using MapScript) to color a set of polygons based on
some value in a column, or even simply divide the number of&nbsp; Polygons
(or entities) into the color ramp and color them based on sorting.&nbsp;
Anything, to get a varied color range for neighboring polygons.<br>
<br>
I'm just trying to color the polygons uniquely is all.&nbsp; I actually
added in the column for coloring thinking it to be a simple operation
for MapServer.&nbsp; I did it as a 7 color Ramp that I applied by sorting
the names alphabetically.&nbsp; I can add in the 7 classes needed to do it
easy enough the long way.&nbsp; It will just look really weird going at it
backwards, especially when I have to explain to some mapserver admin in
the future that installs a new version and asks me why I'm macthing the
RGB values in the Attribute to populate the CLASS with the same
values.&nbsp; Don't you think?<br>
<br>
I guess I'm just getting (too) used to MapServer being able to do
everything I ask of it.&nbsp; I guess I need to watch my step.&nbsp; :c)<br>
<br>
Stephen Woodbridge wrote:<br>
<blockquote cite="midsmtpd.5b18.41bf900f.30dfc.1@mtaout-c.tc.umn.edu"
 type="cite">
  <pre wrap="">Ken or Bob,

This sounds like a reasonable feature request. You should write an
enhancement request bug in bugzilla.
  </pre>
</blockquote>
Done.<br>
<br>
Thanks for the help.&nbsp; I added in the bug enhancement per your
suggestion.&nbsp; I hope I didn't keep it too short and simple though.<br>
<br>
bobb<br>
<br>
<blockquote cite="midsmtpd.5b18.41bf900f.30dfc.1@mtaout-c.tc.umn.edu"
 type="cite">
  <pre wrap="">
-Steve

Ken Lord wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Bob,

Unless things have changed in the last year, you can't do it the way
you want to with shapefiles.  ... I do hope things have changed.


    </pre>
    <blockquote type="cite">
      <pre wrap="">All,

I have a SHP file with a "COLOR" column in it with a RGB value (255 255
255).

How do I use this in the MAPFILE as a COLOR value?

I've been looking on and off all day in the Wiki, I've come to the
conclusion that I'm not using the correct Search term.  Does anyone have
an example of how to use the column attribute value as the color value
in the MAPFILE?

LAYER
NAME 'cities'
DATA '&lt;path to data&gt;'
STATUS DEFAULT
CLASSITEM 'MUNI_NAME'
CLASS
  OUTLINECOLOR 207 50 150
  COLOR '&lt;value of muni_name column above&gt;'
  SIZE 2
  SYMBOL 'circle'
END
END

I think I'm having a brain freeze or something . . . . . mutter, mutter
. . . .

bobb

      </pre>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
<br>
</body>
</html>