
GeoServer Beginner's Guide

Natural Earth does not provide a data set for aqueducts, but you might wonder how you can create an appropriate symbol for representing them. Aqueducts are usually represented in maps with a dashed line alternated with small circle, all colored light blue:
Take the DashedRoads.xml
file, make a copy to DashingAndMarkers.xml
, and then edit the new file in your text editor.
Go to line 9 and replace the text inside the Name
element as:
<Name>DashingAndMarkers</Name>
Go to line 11 and replace the text inside the Title
element as:
<Title>Geoserver Beginners Guide: Aqueducts with dashing and circle</Title>
Go to line 16 and change the setting of the LineSymbolizer
element we will use to represent the dashing line. Set the color to hexadecimal value for light blue, set a width of 2
, and a dasharray
of 10 10
to have regularly-spaced dashing:
<CssParameter name="stroke">#ADD8E6</CssParameter> <CssParameter...
Change the font size
Change margin width
Change background colour