1 |
3032
|
perry
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2 |
|
|
<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3 |
|
|
<!-- a named layer is the basic building block of an sld document -->
|
4 |
|
|
<NamedLayer>
|
5 |
|
|
<Name>A Test Layer</Name>
|
6 |
|
|
|
7 |
|
|
<!-- with in a layer you have Named Styles -->
|
8 |
|
|
<UserStyle>
|
9 |
|
|
<!-- again they have names, titles and abstracts -->
|
10 |
|
|
<Name>population</Name>
|
11 |
|
|
<Title>Population in the United States</Title>
|
12 |
|
|
<Abstract>A sample filter that filters the United States into three
|
13 |
|
|
categories of population, drawn in different colors</Abstract>
|
14 |
|
|
<FeatureTypeStyle>
|
15 |
|
|
<Rule>
|
16 |
|
|
<!-- like a linesymbolizer but with a fill too -->
|
17 |
|
|
<ogc:Filter xmlns:gml="http://www.opengis.net/gml">
|
18 |
|
|
<ogc:PropertyIsBetween>
|
19 |
|
|
<ogc:PropertyName>PERSONS</ogc:PropertyName>
|
20 |
|
|
<ogc:LowerBoundary>
|
21 |
|
|
<ogc:Literal>2000000</ogc:Literal>
|
22 |
|
|
</ogc:LowerBoundary>
|
23 |
|
|
<ogc:UpperBoundary>
|
24 |
|
|
<ogc:Literal>4000000</ogc:Literal>
|
25 |
|
|
</ogc:UpperBoundary>
|
26 |
|
|
</ogc:PropertyIsBetween>
|
27 |
|
|
</ogc:Filter>
|
28 |
|
|
<PolygonSymbolizer>
|
29 |
|
|
<Fill>
|
30 |
|
|
<!-- CssParameters allowed are fill (the color) and fill-opacity -->
|
31 |
|
|
<CssParameter name="fill">#FF0000</CssParameter>
|
32 |
3112
|
perry
|
<CssParameter name="fill-opacity">0.7</CssParameter>
|
33 |
3032
|
perry
|
</Fill>
|
34 |
|
|
</PolygonSymbolizer>
|
35 |
3112
|
perry
|
<TextSymbolizer>
|
36 |
|
|
<Label>
|
37 |
|
|
<ogc:PropertyName>STATE_ABBR</ogc:PropertyName>
|
38 |
|
|
</Label>
|
39 |
|
|
|
40 |
|
|
<Font>
|
41 |
|
|
<CssParameter name="font-family">Times New Roman</CssParameter>
|
42 |
|
|
<CssParameter name="font-style">Normal</CssParameter>
|
43 |
|
|
<CssParameter name="font-size">14</CssParameter>
|
44 |
|
|
</Font>
|
45 |
|
|
<Fill>
|
46 |
|
|
<CssParameter name="fill">#000000</CssParameter>
|
47 |
|
|
</Fill>
|
48 |
|
|
</TextSymbolizer>
|
49 |
3032
|
perry
|
</Rule>
|
50 |
|
|
<Rule>
|
51 |
|
|
<!-- like a linesymbolizer but with a fill too -->
|
52 |
|
|
<ogc:Filter xmlns:gml="http://www.opengis.net/gml">
|
53 |
|
|
<ogc:PropertyIsLessThan>
|
54 |
|
|
<ogc:PropertyName>PERSONS</ogc:PropertyName>
|
55 |
|
|
<ogc:Literal>2000000</ogc:Literal>
|
56 |
|
|
</ogc:PropertyIsLessThan>
|
57 |
|
|
</ogc:Filter>
|
58 |
|
|
<PolygonSymbolizer>
|
59 |
|
|
<Fill>
|
60 |
|
|
<!-- CssParameters allowed are fill (the color) and fill-opacity -->
|
61 |
|
|
<CssParameter name="fill">#00FF00</CssParameter>
|
62 |
3112
|
perry
|
<CssParameter name="fill-opacity">0.7</CssParameter>
|
63 |
3032
|
perry
|
</Fill>
|
64 |
|
|
</PolygonSymbolizer>
|
65 |
3112
|
perry
|
<TextSymbolizer>
|
66 |
|
|
<Label>
|
67 |
|
|
<ogc:PropertyName>STATE_ABBR</ogc:PropertyName>
|
68 |
|
|
</Label>
|
69 |
|
|
|
70 |
|
|
<Font>
|
71 |
|
|
<CssParameter name="font-family">Times New Roman</CssParameter>
|
72 |
|
|
<CssParameter name="font-style">Normal</CssParameter>
|
73 |
|
|
<CssParameter name="font-size">14</CssParameter>
|
74 |
|
|
</Font>
|
75 |
|
|
<Fill>
|
76 |
|
|
<CssParameter name="fill">#000000</CssParameter>
|
77 |
|
|
</Fill>
|
78 |
|
|
</TextSymbolizer>
|
79 |
3032
|
perry
|
</Rule>
|
80 |
|
|
<Rule>
|
81 |
|
|
<!-- like a linesymbolizer but with a fill too -->
|
82 |
|
|
<ogc:Filter xmlns:gml="http://www.opengis.net/gml">
|
83 |
|
|
<ogc:PropertyIsGreaterThan>
|
84 |
|
|
<ogc:PropertyName>PERSONS</ogc:PropertyName>
|
85 |
|
|
<ogc:Literal>4000000</ogc:Literal>
|
86 |
|
|
</ogc:PropertyIsGreaterThan>
|
87 |
|
|
</ogc:Filter>
|
88 |
|
|
<PolygonSymbolizer>
|
89 |
|
|
<Fill>
|
90 |
|
|
<!-- CssParameters allowed are fill (the color) and fill-opacity -->
|
91 |
|
|
<CssParameter name="fill">#0000FF</CssParameter>
|
92 |
3112
|
perry
|
<CssParameter name="fill-opacity">0.7</CssParameter>
|
93 |
3032
|
perry
|
</Fill>
|
94 |
|
|
</PolygonSymbolizer>
|
95 |
3112
|
perry
|
<TextSymbolizer>
|
96 |
|
|
<Label>
|
97 |
|
|
<ogc:PropertyName>STATE_ABBR</ogc:PropertyName>
|
98 |
|
|
</Label>
|
99 |
|
|
|
100 |
|
|
<Font>
|
101 |
|
|
<CssParameter name="font-family">Times New Roman</CssParameter>
|
102 |
|
|
<CssParameter name="font-style">Normal</CssParameter>
|
103 |
|
|
<CssParameter name="font-size">14</CssParameter>
|
104 |
|
|
</Font>
|
105 |
|
|
<Fill>
|
106 |
|
|
<CssParameter name="fill">#000000</CssParameter>
|
107 |
|
|
</Fill>
|
108 |
|
|
</TextSymbolizer>
|
109 |
3032
|
perry
|
</Rule>
|
110 |
|
|
<Rule>
|
111 |
|
|
<LineSymbolizer>
|
112 |
|
|
<Stroke/>
|
113 |
|
|
</LineSymbolizer>
|
114 |
|
|
</Rule>
|
115 |
|
|
</FeatureTypeStyle>
|
116 |
|
|
</UserStyle>
|
117 |
|
|
</NamedLayer>
|
118 |
|
|
</StyledLayerDescriptor>
|