Time for action – mixing dashing lines and markers
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 toDashingAndMarkers.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 of2
, and adasharray
of10 10
to have regularly-spaced dashing:<CssParameter name="stroke">#ADD8E6</CssParameter> <CssParameter...