[mapserver-users] make a color lookup table?

easyl thlin.box at gmail.com
Wed Jul 7 10:45:11 EDT 2010


try to render S-57 with MapServer.

Since the COLOR attributes in S-57 are encoded with integer.
1 white
2 black	 	 
3 red	
4 red ....etc

How can I smartly set the corresponding color in mapfile

LAYER
    NAME LIGHTS
    TYPE POINT
    STATUS ON
    CONNECTIONTYPE OGR
    CONNECTION "./data/S-57/XXXXX.000"
    DATA "LIGHTS"
    PROJECTION
      "init=epsg:4326"
    END
    CLASS
        STYLE
          COLOR ??set corresponding color according to [COLOR]??
        END
    END
END

thanks!!
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-a-color-lookup-table-tp5265616p5265616.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list