Time for action – adding a border and a centerline
On maps, major roads, such as highways, are often represented with a more complex symbol than a continuous colored line. You are going to use three line symbols to build a representation of highways:
Take the
Rivers.xml
file, make a copy toRoads.xml
, and then edit the new file in your text editor.Go to line 9 and replace the text inside the
Name
element with the following:<Name>Roads</Name>
Go to line 11 and replace the text inside the
Title
element with the following:<Title>Geoserver Beginners Guide: Roads complex symbol</Title>
At line 16, set the color to red:
<CssParameter name="stroke">#FF0000</CssParameter>
At line 17, set the width to
5
:<CssParameter name="stroke-width">5</CssParameter>
After line 13, insert a new
LineSymbolizer
section as in the following code fragment. Use a width of7
and set the color to black. The black line will result as a border on both sides of...