Color by attributes - postgis connection
Steven De Vriendt
gisaalter at GMAIL.COM
Sat Apr 21 01:38:25 PDT 2007
I have some trouble colouring by an attribute value i/c with a postgis
connection.
I want to colour the column cabuty by 3 unique values.
For now I'm trying to make a layer like this:
LAYER
NAME "b_cabu_postgis"
CONNECTIONTYPE postgis
CONNECTION "host=localhost port=5432 dbname=globaalter
user=postgres_db password=autodesk6.5"
DATA "the_geom from b_cabu"
STATUS ON
TYPE POLYGON
DUMP TRUE
TEMPLATE "ttt"
CLASSITEM "cabuty"
CLASS
EXPRESSION "CL"
STYLE OUTLINECOLOR 0 0 255
END
EXPRESSION "OO"
STYLE OUTLINECOLOR 255 0 255
END
END
METADATA
"wms_title" "gebouwen"
"gml_include_items" "all"
END
PROJECTION
"init=epsg:31300"
END
END
Only the expression 'OO' is coloured, the objects corresponding with
'CL' in the cabuty are not showing up...what am I doing wrong ?
Thanks for helping out !
Steven
More information about the MapServer-users
mailing list