Classifying roads

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:

  1. 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> 
  1. Replace the text inside the <Title> element with the following lines of code:
 <Title>Geoserver Beginners Guide: Roads thematic map</Title> 
  1. 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. ...

Get GeoServer Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.