The roads dataset provided by Natural Earth has some attributes that can be used to classify roads. You may use the level field for thematic mapping, assigning a different symbol to each class, as in the following example:
- Take the Roads.xml file, make a copy to RoadsThematic.xml, and then edit the new file in your text editor. Replace the text inside the <Name> element with the following line of code:
<Name>RoadsThematic</Name>
- Replace the text inside the <Title> element with the following lines of code:
<Title>Geoserver Beginners Guide: Roads thematic map</Title>
- The level field contains six different values--Interstate, Federal, State, Other, Closed, and U/C. We will reuse the symbol for the first value, Interstate. ...