Time for action – creating a simple point style
To familiarize you with SLD files creation, we will compose a simple style for using a small red circle applied to all the point features:
Open your favorite text editor. As mentioned previously, we will consider you have already inserted the XML declaration and the
StyledLayerDescriptor
part of the code. So start inserting aNamedLayer
element. Then add aName
element and inside it write the name you want for your layer:<NamedLayer> <Name>PopulatedPlaces</Name> </NamedLayer>
Now you need to define at least one style for the layer. We use the
Title
element to assign a descriptive name to the style:<NamedLayer> <Name> PopulatedPlaces </Name> <UserStyle> <Title>Geoserver Beginners Guide: Populated Places simple mark</Title> </UserStyle> </NamedLayer>
The data you want to apply the styles to are points, hence its vector data. You need to insert a...