forked from mapnik/test-data-visual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
angle-anchor-tolerance.xml
58 lines (54 loc) · 1.79 KB
/
angle-anchor-tolerance.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
<?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), "x"
POINT(0 0.2), "y"
POINT(0 -0.2), "y"
</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, tolerance, step
POINT(0 0), "x", 180, 90, 90
</Parameter>
</Datasource>
</Layer>
<Style name="points">
<Rule>
<MarkersSymbolizer key="[key]" allow-overlap="true" transform="scale(4)" />
<DebugSymbolizer />
</Rule>
</Style>
<Style name="texts">
<Rule>
<TextSymbolizer
face-name="DejaVu Sans Book"
size="26"
placement="point"
placement-type="angle"
angle="[angle]"
tolerance="[tolerance]"
anchor-key="[key]"
step="[step]"
>
[angle]
</TextSymbolizer>
<DebugSymbolizer />
</Rule>
</Style>
</Map>