[mapserver-users] creating a dynamic thematic map based on attribs
in a Pg table
Mr. Puneet Kishor
punk.kish at gmail.com
Wed Aug 24 12:14:25 EDT 2011
I need a tute (or a pointer to one online) on how to color polys in a thematic map based on values retrieved from a separate table. I have
color_rgb (values such as "242 242 33" and "255 255 0")
I would like to have MS color the polys and name the layers, ideally without having to create the CLASS definitions for each of the 80+ attribs, something akin to
NAME "my layer"
DATA "the_geom FROM (SELECT gid, the_geom, attrib_name, color_rgb FROM a JOIN b ON a.attrib_id = b.attrib_id) view USING UNIQUE gid"
OUTLINECOLOR 0 0 0
How do I accomplish something like above?
More information about the mapserver-users