[Mapserver-users] WMS style elements and SLD
Rene Teniere
TENIERER at gov.ns.ca
Thu Apr 15 09:16:43 PDT 2004
Hi all,
I am curious about the proper usage of wms_stylelist and the NamedStyle
in SLD. Is this the proper reference? The docs are a little unclear.
Rene
basewms_sld.xml file:
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>Roads</Name>
<NamedStyle>
<Name>HighwayStyle</Name>
</NamedStyle>
</NamedLayer>
</StyledLayerDescriptor>
Map file:
LAYER
NAME "Roads"
STATUS OFF
TYPE LINE
TILEINDEX "coindex/coindex"
TILEITEM "lonetlin"
GROUP "Base Data"
CLASSITEM "fcode"
METADATA
"wms_title" "Roads"
"wms_srs" "EPSG:2038"
"wms_group_title" "Base Data"
"wms_stylelist"
"HighwayStyle,TrunkStyle,SecondaryStyle,TracksStyle,RailroadStyle"
"wms_HighwayStyle_sld" "http://10.2.185.9/wms/basewms_sld.xml"
END
CLASS
NAME "100 Series Highway"
EXPRESSION "210"
STYLE
NAME "HighwayStyle"
COLOR 255 00 00
SYMBOL 2
SIZE 2
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Trunk Roads"
EXPRESSION "211"
STYLE
NAME "TrunkStyle"
SYMBOL 2
COLOR 145 85 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Secondary Roads"
EXPRESSION "212"
STYLE
NAME "SecondaryStyle"
SYMBOL 2
COLOR 0 0 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Tracks and Trails"
EXPRESSION "213"
STYLE
NAME "TracksStyle"
SYMBOL 5
COLOR 0 0 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Railroad"
EXPRESSION "220"
STYLE
NAME "RailroadStyle"
COLOR 180 0 0
SYMBOL 4
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
More information about the MapServer-users
mailing list