forked from mapnik/test-data-visual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
angle-anchor-distance-shield.xml
88 lines (83 loc) · 3.05 KB
/
angle-anchor-distance-shield.xml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Parameters>
<Parameter name="sizes">400,400</Parameter>
</Parameters>
<Layer name="points" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>points</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="extent">-1, -1, 1, 1</Parameter>
<Parameter name="inline">
wkt, key
POINT(0 0), "xxx"
</Parameter>
</Datasource>
</Layer>
<Layer name="texts" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>texts</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="extent">-1, -1, 1, 1</Parameter>
<Parameter name="inline">
wkt, key, angle, color
POINT(0 0), "xxx", 0.0, "rgb(200, 200, 200)"
POINT(0 0), "xxx", 30.0, "rgb(188, 188, 188)"
POINT(0 0), "xxx", 60.0, "rgb(175, 175, 175)"
POINT(0 0), "xxx", 90.0, "rgb(162, 162, 162)"
POINT(0 0), "xxx", 120.0, "rgb(150, 150, 150)"
POINT(0 0), "xxx", 150.0, "rgb(138, 138, 138)"
POINT(0 0), "xxx", 180.0, "rgb(125, 125, 125)"
POINT(0 0), "xxx", 210.0, "rgb(112, 112, 112)"
POINT(0 0), "xxx", 240.0, "rgb(100, 100, 100)"
POINT(0 0), "xxx", 270.0, "rgb(88, 88, 88)"
POINT(0 0), "xxx", 300.0, "rgb(75, 75, 75)"
POINT(0 0), "xxx", 330.0, "rgb(62, 62, 62)"
POINT(0 0), "xxx", 360.0, "rgb(50, 50, 50)"
</Parameter>
</Datasource>
</Layer>
<Style name="points">
<Rule>
<MarkersSymbolizer
key="[key]"
transform="scale(4)"
svg-fill="red"
/>
<DebugSymbolizer />
</Rule>
</Style>
<Style name="texts">
<Rule>
<ShieldSymbolizer
face-name="DejaVu Sans Book"
file="shape://ellipse"
size="22"
halo-fill="white"
halo-radius="1"
placement="point"
placement-type="angle"
angle="[angle]"
anchor-key="[key]"
fill="[color]"
allow-overlap="true"
dx="60"
dy="40"
transform="scale(5)"
>
<!--
Minor irregularity of placements is caused
by handling of dispacement when
horizontal-alignment or
vertical-alignment is set to "auto".
Can be fixed by:
horizontal-alignment="middle"
vertical-alignment="middle"
-->
[angle]
</ShieldSymbolizer>
<DebugSymbolizer />
</Rule>
</Style>
</Map>