-
Notifications
You must be signed in to change notification settings - Fork 1
/
GeneratorPattern_SLD.txt
49 lines (41 loc) · 1.21 KB
/
GeneratorPattern_SLD.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$layer.name
file.se:
foreach layer:file.csv
{
<foreach a:../tables/Geology.csv>
$layer.name
$a.codevalue
<foreach b:../tables/Geology_2.csv>
$a.polycolor
$b.codevalue
</foreach>
</foreach>
<se:Rule>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:Function name="IsSurface">
<ogc:PropertyName>am:geometry</ogc:PropertyName>
</ogc:Function>
<ogc:Literal>true</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>am:zoneType/@xlink:href</ogc:PropertyName>
<ogc:Literal>$layer.codevalue</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
<se:PolygonSymbolizer>
<se:Geometry>
<ogc:PropertyName>am:geometry</ogc:PropertyName>
</se:Geometry>
<se:Fill>
<se:SvgParameter name="fill">$layer.color</se:SvgParameter>
<se:SvgParameter name="fill-opacity">0.5</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#FFD37F</se:SvgParameter>
<se:SvgParameter name="stroke-width">2</se:SvgParameter>
</se:Stroke>
</se:PolygonSymbolizer>
</se:Rule>