[mapserver-users] .img raster color expression
Fuchs Juan Carlos
jfuch at indec.mecon.gov.ar
Fri Jan 20 10:01:25 PST 2012
Hi Derek
Try with this for each class you want (just change the expression value and
the color. Be carefull with upper/lower case ;)
CLASSITEM 'FORESTYPE '
CLASS #attribute name, without # gives the label name for the reference
EXPRESSION > 0
COLOR 214 252 252
OUTLINECOLOR 0 0 0
END
Cheers
JC
-----Mensaje original-----
De: jdmorgan [mailto:jdmorgan at unca.edu]
Enviado el: viernes, 20 de enero de 2012 01:49 p.m.
Para: mapserver-users at lists.osgeo.org
Asunto: [mapserver-users] .img raster color expression
Hello,
I originally posted this is dev, but I think it might be more inline with
the user forum.
I am working with a .img raster file. It has It has attribute called
FORESTYPE as I can see it when I open it in a desktop GIS. I would like
to key off of this value to define specific colors in a .map file.
However, I cannot seem to get this working. Here is what I have:
CLASS
NAME "test"
EXPRESSION ([FORESTYPE]> 0)
STYLE
COLOR 255 255 255
END
END
Any help would be greatly appreciated.
Thanks,
--
Derek @ NEMAC
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list