Project

General

Profile

1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<StyledLayerDescriptor version="1.0.0" 
3
		xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
4
		xmlns="http://www.opengis.net/sld" 
5
		xmlns:ogc="http://www.opengis.net/ogc" 
6
		xmlns:xlink="http://www.w3.org/1999/xlink" 
7
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
8
		<!-- a named layer is the basic building block of an sld document -->
9

    
10
	<NamedLayer>
11
		<Name>world_borders</Name>
12
		<UserStyle>
13
		    <!-- they have names, titles and abstracts -->
14
		  
15
			<Title>A boring default style</Title>
16
			<Abstract>A sample style that just prints out a transparent red interior with a red outline</Abstract>
17
			<!-- FeatureTypeStyles describe how to render different features -->
18
			<!-- a feature type for polygons -->
19

    
20
			<FeatureTypeStyle>
21
				<FeatureTypeName>world_borders</FeatureTypeName>
22
				<Rule>
23
					<Name>Rule 1</Name>
24
					<Title>RedFill RedOutline</Title>
25
					<Abstract>50% transparent red fill with a red outline 1 pixel in width</Abstract>
26

    
27
					<!-- like a linesymbolizer but with a fill too -->
28
					<PolygonSymbolizer>
29
						<Fill>
30
							<CssParameter name="fill">#A4C3A3</CssParameter>
31
							<CssParameter name="fill-opacity">1</CssParameter>
32
						</Fill>
33
						<Stroke>
34
							<CssParameter name="stroke">#555555</CssParameter>
35
							<CssParameter name="stroke-width">1</CssParameter>
36
						</Stroke>
37
					</PolygonSymbolizer>
38
				</Rule>
39

    
40
		    </FeatureTypeStyle>
41
		</UserStyle>
42
	</NamedLayer>
43
</StyledLayerDescriptor>
44

    
(9-9/18)