Skip to content

Commit ad4a2f1

Browse files
authored
Merge pull request #80 from mapycz/adaptive-smooth
New test for smooth-algorithm="adaptive"
2 parents d4616b9 + 1bccb46 commit ad4a2f1

9 files changed

Lines changed: 62 additions & 0 deletions
54.9 KB
Loading
54.5 KB
Loading
6.51 KB
Loading
Lines changed: 10 additions & 0 deletions
Loading
56.7 KB
Loading
56.4 KB
Loading
6.34 KB
Loading
Lines changed: 10 additions & 0 deletions
Loading

styles/smooth-adaptive.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE Map>
3+
<Map>
4+
<Parameters>
5+
<Parameter name="sizes">512, 512</Parameter>
6+
</Parameters>
7+
8+
<Layer>
9+
<StyleName>My Style</StyleName>
10+
<Datasource>
11+
<Parameter name="type">csv</Parameter>
12+
<Parameter name="separator">|</Parameter>
13+
<Parameter name="inline">
14+
wkt
15+
LINESTRING(0.8250000000000001 4.0, 1.4533185307179588 5.0, 2.0816370614359174 4.0, 2.709955592153876 3.0, 3.3382741228718347 3.9999999999999996)
16+
LINESTRING(0.6000000000000001 5.0, 1.2283185307179587 5.951056516295154, 1.8566370614359173 5.587785252292473, 2.4849555921538764 4.412214747707527, 3.1132741228718346 4.048943483704846, 3.741592653589793 5.0)
17+
LINESTRING(0.32499999999999996 6.0, 0.9533185307179586 6.866025403784438, 1.5816370614359172 6.866025403784438, 2.209955592153876 6.0, 2.8382741228718347 5.133974596215562, 3.4665926535897933 5.133974596215562, 4.094911184307752 6.0)
18+
LINESTRING(0.0 7.0, 0.6283185307179586 7.7818314824680295, 1.2566370614359172 7.9749279121818235, 1.8849555921538759 7.433883739117558, 2.5132741228718345 6.566116260882442, 3.141592653589793 6.0250720878181765, 3.7699111843077517 6.21816851753197, 4.39822971502571 7.0)
19+
</Parameter>
20+
</Datasource>
21+
</Layer>
22+
23+
<Style name="My Style">
24+
<Rule>
25+
<LineSymbolizer
26+
stroke-width="10"
27+
stroke="lightgray"
28+
/>
29+
<LineSymbolizer
30+
stroke-width="2"
31+
stroke="red"
32+
smooth="1"
33+
/>
34+
<LineSymbolizer
35+
stroke-width="2"
36+
stroke="green"
37+
smooth="1"
38+
smooth-algorithm="adaptive"
39+
/>
40+
</Rule>
41+
</Style>
42+
</Map>

0 commit comments

Comments
 (0)