Added visual test for multi-line label alignment.

Calculation of label alignment in multi-line labels seems to be
off. This test reproduces it by laying out a series of multi-line
labels along an S-shaped curve. In all these cases, the vertical
bar character should, to within a few pixels, line up. The
orientation at sharper corners is still a little off, but likely
due to discontinuities.
This commit is contained in:
Matt Amos 2014-01-28 19:10:04 +00:00
parent 6ccaf8beb2
commit 17626d5501
22 changed files with 572 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{
"keys": [
"",
"1"
],
"data": {},
"grid": [
" ",
" !! ",
" ! !!! ",
" ! ",
" ! !!! ! ",
" ! ! ! !! ",
" ! !! ! ! ",
" ! ! !! ",
" ! ! !!!! !! !!!! !!",
" !! ! !! !! ! !!!",
" ! !! !!! ! !!!! !! ! !!!",
" ! !! !!!! !! ! !! !! ! ",
" ! ! !! ! !! !! ! !! ! ",
" ! ! ! !! ! ! !! ! ",
" !! !! !! !! ! ! !!!",
" ! !! ! ! !",
" ! ! ! ! ! ! !",
" ! !! ! ! ! !! !! ! ",
" ! ! ! ! ! ! !! ! !!! ",
" !! !! ! ! !! !! !! !! ! ",
" !!!! !! ! !! !! !! !! ",
" !! ! ! ! ! !! ! ",
" !! !! !!!! !! ",
" ! !! !!! ! !! ! ! ! ! ",
" ! ! ! !! ! ! ! ",
" ! ! ! ! ! !! !! ! ! ! ",
" !! !! ! ! !! ! ",
" ! ! !! ",
" ! ! !! ! !! ! ! ",
" ! !! ! ! ! ! ! ! !! ",
" ! !! ! ! !! !! !! ! ",
" ! !! !! !! !! ! ! !! ! ",
" !!! ! ! ! !! ! ",
" ! ! !! ! ",
" ! ! ! ! ! ! ! ",
" ! ! !! !! ! ",
" !!!!! ! ! !! ! !!! ! ! ",
" ! !! ! ! !! ! ! !! ! ! ! ",
" !! !! ! !! !! !! !! ",
" !! !! ! !! !!!! !!! !!! ",
" !!! !! !! ! ! ",
" ! ! ! ! !! ! !!! ! ! ",
" !! !! ! ! ! ! ! ! ",
" ! ! ! !! ",
" ! ! ! !! ! !! ! ",
" ! ! ! !!! ! ! ! ",
" ! ! ! ",
" ! ! ! ",
" ! !!! ! ",
" !! "
]
}

View file

@ -0,0 +1,109 @@
{
"keys": [
"",
"1"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ! ",
" ! ! ",
" !! ! ",
" ! !!!! ! ",
" !! ! ! ! ",
" !! ! !! !!! ! ",
" ! ! !! ! !!! !! ! ! ! ",
" !! ! !!!!! !! ! !! !! !! ",
" !! ! ! !!!! ! ! ! ! !! !! ",
" !! !! ! !!! ! !! ! !! !! ! ",
" !!!!! ! ! ! ! !! ! !! ! ",
" ! !! ! ! !! ! ",
" !! !! ! !!! ! !!!!! ! ",
" ! ! !! !! ! !!! ",
" ! ! !! ! ! ! ! ! ! ! ! ",
" ! ! !! ! ! ! ! ! ",
" ! ! ! !! ! ! !! ! ",
" ! !! ! !! !! ! ! !! ! ",
" ! ! ! !! ! ! !! !! ",
" !! ! !! ! !! ",
" ! !! !! ! ! ! ",
" ! !! !! ! ! ! ",
" !! !! ! ! ",
" !! ! ! !! !! !! ! !! ! ",
" !!!!! ! ! ! ! ! !! ! ",
" ! !! !! !!!! !! !! !! !! ",
" ! ! ! !!!! ! ",
" !! ! ! ! ! !! ! ",
" ! ! !! ! ! ! !! !! ! ",
" !! !! ! !! ! ",
" ! ! ! !! !!!!! ! ! ",
" ! !! ! ! ! !! ! ",
" ! ! ! !! !! !! !! ! ",
" ! ! ! ! ! !! ! !! !! ! ",
" ! ! ! !! !! !!! ",
" ! ! ! ! !! !! ",
" ! !! ! ! ! ! !!! ",
" !! ! !!! ! ! ! !! ! ",
" !! ! !! ! ! ! ! ! ",
" !! !! ! ! !! !! ! ! ! ",
" ! ! !! !! !! ! ",
" !! ! ! !! ! !! ",
" !!! ! !!!! !! ! !! ",
" ! ! ! ! ! !! ! !! !! !! ",
" !! !! ! !! ! !! !! ",
" !!! !! ! ! ! !! !! !! !! ! ",
" !! !! !! !! ! ! !! ! ",
" !! !! ! ! ! ! ",
" ! !!! ! ! !! ! !!! ! ",
" ! ! ! ! ! ! ! ! ! ! ",
" ! ! ! ! !! !! !! ! ",
" ! ! ! !! !! ! !!! !! ! ",
" ! ! ! !! !! ",
" ! ! !! ! !! ",
" ! ! !! ! ! ! ! ! !!! ",
" !! ! !!! ! ! ! ! ! ! ",
" ! ! !!! !!! ! ! ! ",
" !! !! ! !! !! !! ! ",
" !! !! ! !! !! ",
" !! ! !! ! ! !! ",
" !!! ! !! !! !! !! ! ",
" ! ! ! !! !! !! !! ",
" ! ! ! ! ! !! ! ! ! ! ",
" !! !! ! ! ! !! ! ",
" !! !! !!! ! ! ! ! ! ",
" !! !! ! ! ! !! !! !! ! ",
" ! ! ! ! ! ! !! ! ",
" ! ! ! ! ",
" !! !! ! ! ! ! ! ",
" ! !! !! ! ",
" ! ! ! ! ! ! ! !! ",
" !! !! ! ! ! ! ! !! ",
" !! !! ! ! ! ! !! !!! ",
" !! ! !! ! !! ! ! ! ! ",
" ! !! ! ! !! ! ",
" ! ! !! !!!! !! ! ! ",
" ! !!! ! !! !! ! ",
" !! ! ! !! ! ! !! !! ",
" ! ! !!!! ! ! ! ! ! !! ! ",
" ! !! ! ! !! ! ! !! !! ",
" !! !! ! ! ! ! ! ! !! ! !! ",
" !! !! ! ! ! !! !!!! ! ! ! ",
" !! !! ! ! ! !! !!! ! ",
" !! ! ! ! !! ! ! ! ! ! ! ",
" ! ! ! ! !!! ! ",
" !! ! ! ! !! ",
" ! ! !!!!!! ! ! ",
" ! ! !! ! ",
" ! !!!! ",
" !! !!! ",
" ",
" ",
" ",
" ",
" "
]
}

View file

@ -0,0 +1,159 @@
{
"keys": [
"",
"1"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" !! !!! ",
" !! !! !! ",
" ! ! ",
" ! !!! ! ! ! ",
" ! ! ! !! !! ! ! !! ! ",
" ! ! ! !!! ! ! !! ! ",
" ! ! ! !! ! ! !! !! !! ",
" ! !! ! !! ! ! !! ! ",
" ! !! ! ! ! ! ! ! ! ",
" !!! !! !! !! !! ! ! ",
" ! ! !! ! !! !!! ! ",
" ! ! !! !! ! ! !!!!! ! ",
" !! ! ! !! ! ! ! ! ! ! ",
" ! ! ! ! !!! ! !! ! ! !! ! ",
" ! !! ! ! !! !! !! ! ",
" ! !!!! ! !!!! ! !! ! ",
" ! ! ! ! ! ! ! !! ! ",
" !!! !! ! ! ! ! !!!! !! ! ",
" ! !!! ! ! ! ! !! !! ",
" ! !!! ! ! ! !! !! ",
" ! !! !! ! !! ! ! ! ",
" ! !! ! !! ! ! ! ! ",
" ! !! ! ! !! ! ",
" ! ! ! ! ! ! !! ! ",
" ! ! ! ! !! !! !! ",
" !! ! ! ! !! ",
" ! !! ! ! !! ! ! ! ! ",
" !!! !!! !! !! ! ! ",
" !! ! ! !! ! ! ",
" ! ! ! !! !! ! ! !!!!! ",
" ! !! !! ! !! ! !! ! ",
" !! ! ! ! ! !!!!! !! !! ! ",
" !!! ! ! ! !!! !! ! ",
" ! ! ! ! ! ! !! !! ",
" !!! !! ! ! ! !! ! ! !! !! ",
" ! !!! ! ! !! ! !! ",
" !! !! ! ! !! !! ! ! ! ",
" ! !! !! !! !! ! ! ! ",
" ! ! !! ! !! ! ! ! ! ",
" ! ! ! ! ! ! !! ! ",
" ! !! ! ! ",
" ! ! ! !! !! !! ",
" !! !! ! ! !! ! !!! !! ",
" !! !! ! ! ! ! ! ! ",
" !!! ! !! !! !! ! ! ! ! ! ",
" ! !!!!! ! ! !! ! ",
" ! ! ! !!!!! ! ",
" ! !! ! ! ! ! !! ! !! !! ",
" !!! !! ! ! !!!! ! ",
" ! !!! !! ! ! ",
" ! ! ! ! !! !!!! ! ",
" ! ! ! ! !! !! ! !! ! ",
" ! !!! ! ! !! !! ! !! !! ",
" ! !! !!! !!! !! ! ! !! ! ",
" !! !! !! ! ",
" ! !! ! ! ! ",
" ! ! ! ",
" ! ! ! ! ! ! !! ",
" ! ! ! ! ! ! !! ! ",
" ! !! ! ! !! !! !! !! !! ",
" ! !! !! !! !! !! ! !! ",
" ! !! ! ! !! ! ! ",
" ! ! ! ! !!!! !! ! ",
" ! !! ! ! !! ! !! ! ",
" !! !! ! !! ! !!!! ! ",
" ! ! !! ! ! ! !! !! !! !! ! ",
" !! !! !! ! ! !! ! ",
" ! !!!! ",
" ! ! ! ! ! !! ! !! !!! ",
" !! !! ! ! ! ! ! !! !! ",
" !! ! !! ! !! ! !! !!! ",
" !! ! ! !! !! ! ! ! ! ",
" ! ! ! ! ",
" ! ! ",
" ! ! ! ! ",
" ! ! ! ! !! ! ! ! ! ",
" ! ! ! ! !! ! !! !! ",
" !! !! ! !! !! ! !!!! !!! ",
" !! !! !! !!! ! ! ",
" !!!! !! !! ! ! ",
" !! ! ! !! !! ! ! ! ! ",
" ! ! ! ! !! !! !!!!! ! ",
" ! !! ! ! ! ! ! !! !! !! ",
" !!! !! ! !!! !! !! ! ",
" !! !!!!! ! ! ! ! ! ! ",
" ! ! ! ! !! !! !! ! ",
" ! ! !! !! !! !! !! !! ",
" !!!! ! !! ! ! !! !! ",
" ! !! !! ! ! ! !! ",
" ! !! !! ! ! ",
" ! !! !! ! ! ! ! ",
" ! ! ! ! ! ! ! ! ",
" ! ! !! ! !! ! ",
" !!!!!! !! ! ",
" !! !! ! ! ! !! !!! ",
" ! ! !! ! ! !! ! !! ",
" ! !! !! ! ! ! !! ! ",
" ! !! !! ! ! !! !!! ! ",
" !! !! ! ! !! !!!! ! ",
" !! !! ! ! !! ! !! !! ! !! ",
" ! ! ! !! ! ! !! ! ",
" !!! ! ! ! ! ",
" ! ! ! !!! ! !! !! ! ! ",
" ! !! ! !! !! !! !! ",
" ! ! ! ! !! !! ! !! !! ",
" !! !! !! !! ! ! !! ! ",
" ! !! ! ! ! ! ! ! ",
" ! !! !! ! ! ! ",
" ! ! ! ! ! ",
" ! !! ! ! ! !! ! ",
" ! ! !! ! ! ! ! ",
" !! ! !! ! ! ! !! ",
" ! !! ! !!!! ! !! ! !!! ",
" ! !! !! !! !!! ! !! ",
" !! ! !!! ! ! ! ! !! ! ! ",
" !! ! !!! ! !! ! !!!! ! ! ",
" ! ! ! ! ! !! ! ! ",
" ! ! ! !! !!! ! ! !! ! ! ",
" !! ! ! !! !! !! ! ",
" !!!! ! !! ! ! ! !! ! ! ",
" ! ! ! !!! !! ! ! ! ! ! ",
" ! ! ! ! !! ! !! !!! !! !!! ",
" !! !! ! ! ! !! ! ! !! ",
" !! !! !! !! ! ! ! ! ",
" !! !! !! ! ! ! !!! !! ! ",
" ! ! ! !! ! ! !!!! ! ",
" ! ! ! ! ",
" !! ! !! !! ! ",
" !! !! !! ! ",
" !! ! !!! ",
" !! !!!! ",
" ",
" !!! ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
]
}

View file

@ -0,0 +1,209 @@
{
"keys": [
"",
"1"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" !!! !! ! ",
" !! !!! ",
" !!! !! !! ",
" ! ! !! !!!!!! ! ! ! ! ",
" ! ! !!! !! ! ! !! ! ",
" ! ! ! ! ! ! ! ! !! !! !! ! ",
" !! !! !!!!! ! !! ! !! !! ! ",
" ! !!! !!! ! !!! ! !!!!! ! ",
" !! ! !! ! ! ! ! ! ! !! ! ",
" !!! ! ! ! ! ! !! !! ! ",
" !! ! ! ! ! ! ! !!! ! ",
" !! !! ! ! !!!! ! ! ",
" ! !! !! ! !! ! ! ! !! ! ",
" ! ! ! !! ! !! !! ! ",
" ! ! ! ! ! ! !! !! ! ",
" ! ! !! ! ! !!!!! ! ",
" !! !! ! ! ! ! !! ! ",
" !! !! ! !! ! ! ! !! ! ",
" ! !! ! !! ! !! ! ! ",
" !!!! !!! !! ! ! ! ! ",
" !! !!!! ! ! ! ",
" ! ! ! ! ! ! ! ! ! ",
" ! !! ! !! ! !! ! !! !! ! ",
" ! ! ! ! !! ! !! ! ",
" !! !! !!! ! ! !! !!! ! !! ",
" ! ! !! ! ! !! ! ! ",
" !! ! ! ! !! ! ! ",
" !! !! !! ! !! ! ! ",
" ! !! ! ! !! ! ! ! ",
" ! ! ! ! ! ! ! !!! ",
" ! ! ! !! ! !! !! ! ",
" ! ! ! !! ! ! !! !! ! ",
" !! !!!!! !!!! ! ",
" !! !! ! ! !! !! ! !! ",
" !! !! ! ! ! !! !! ",
" !!!!! !! ! ! !! !! ",
" ! ! !! ! ! !!!! ! ! ! ",
" !! !! ! ! ! ! ! ",
" ! ! ! !!! !! !! ! ! ! ",
" !! ! ! ! !! ! !! ! ",
" ! !!!! ! ! !! ! ! !! ",
" !! !! ! ! !! !! ! !! ! ",
" ! ! ! !! !! ! !!! ! ",
" !! ! !! ! ! ! ! ",
" ! !! !!!! ! ! ! ! ! ! ",
" ! !! ! ! !! !! ! ",
" ! !! ! !! !! !!!!! ! ",
" ! ! !! !! !! ! ",
" ! ! ! !! ! ! ! ",
" ! ! ! !! !!! ! ",
" ! ! ! !! ! !! ! ! ",
" !! ! ! ! !! ! !!!! !! ",
" !! ! !!! ! !! !! ! !! !!! ",
" !! ! !! ! ! ! ! ! ",
" ! !! ! !!! !! !! ! ! ! ",
" ! ! ! ! ! ! ",
" !!! ! ! !! !! ",
" ! !!!! ! ! !! !! !! !! ",
" !! !! ! !! ! !! !! ",
" ! !! ! ! ! ! ! !! !!! ",
" !!! ! ! ! ! !! !! !! ",
" ! ! !!! ! !! !! ! ",
" ! !! !! ! ! ! ! ! ",
" ! !! !!! ! !! ! !!! ! ",
" ! ! ! !!! !! ",
" !! !! ! ! ! ",
" !!! ! ! ! !! ! ! ",
" !! !! ! ! ! !!! ! ",
" ! !! ! ! ! ! !!! ! !! ! ",
" !! !! ! ! !!! !! ! ",
" ! ! ! ! !! ",
" ! ! !! ",
" ! ! ! ! ! !! ! !! ! ! ! ",
" !!! !! ! !! ! ! ! ! ",
" !! !!!! ! !! !! ! !! !! ! ",
" ! ! !! !! ! !! ! ",
" ! ! !! ! !!! ! ! ",
" !! ! ! ! ! !! ",
" !! ! !! ! ! ! ! ! ",
" !! !! ! ! ! ! ! ! ! ",
" ! !! !! ! !! !! !!! !! ! ",
" !! !! !! !! !!!! ",
" ! !! ! ! ! ",
" ! ! !!!! !! ! ",
" ! !! ! ! !! ! !!! ! ",
" ! !! ! !! ! ! !!!! ",
" ! !! !! ! ! !! !! !! !! !! ",
" !!! ! !! !! ! ! !! !! ",
" ! ",
" ! ! ! ! ! ! !! ! ",
" !! !! ! ! ! ! ! ! ",
" !!!!! ! ! !! ! !! ! ",
" ! ! ! !! !! ! ! !! ! ",
" ! ! ! ! !! !! !! ",
" ! ! ! !! ",
" ! !! ! ! ! ! ! ",
" ! !! ! ! !! !! ! ! ! ! ",
" ! !! !!! !! ! !!! !! ! ",
" ! ! ! !! ! ! !!!!! ! ",
" !! ! ! ! ! ! ",
" ! ! ! ",
" ! ! !! !! ! !! ! ",
" ! !! ! ! !! ! !! ! !! ! ",
" !! !! !! ! ! !! !! ! ",
" !! !! !!! ! ! !! !! ! !! ",
" ! !! ! ! !! ! !! ! ",
" ! ! !! ! ",
" ! ! !! !! !! ! ! ! ",
" !!!! ! !! !! ! !! ! ",
" ! ! !!! ! ! ! ! !! ! ",
" !! !! ! ! ! ! ! ! !! ",
" !! !! ! ! !! !! ",
" !!! ! !! !! ! ! !! ",
" ! !! ! !! !! !! !! ! ",
" !! ! ! !! ! ! !! ! ",
" ! !! !! !! ! !!! ! ",
" ! ! ! !!!!! ! !! ",
" ! ! ! ! ! ! ! ! ",
" ! ! ! ! ! ! !!! !! ! ",
" !! ! ! !!!! ! !! ! ",
" ! !! ! !! ! !! ! ",
" !! !! !! ! ! !! !! ! !! !!! ",
" !! ! ! ! ! ! ! ",
" ! ! ! ! ! !! ! ! ! ",
" ! !! ! !!! !! ! ",
" !!! !! ! !! ! ! ! ",
" !! !!!! ! ! ! ! !! ! ",
" ! ! ! ! ! !! ! ",
" ! ! ! !!! !! ",
" !! ! ! !! ! ! ! !! ",
" !! !! ! !! ! ! !! !! ! ! ",
" !! !! !! ! ! ! ! ! !! ! ",
" ! !! !!! !! ! !! !!! ",
" ! ! ! ! ! ! !!! ",
" ! ! ! ! ! !!! !! !! ! ! ",
" ! !!!! !! ! ! ! ",
" !! ! !! !! ! ",
" !! ! !!! !! ! !! !! !! ",
" ! !! ! ! ! ! !!! ",
" ! !! !! ! !! ! ! ",
" !! !! ! !! ! ! ! ! ",
" !! !! ! ! !! ! ! ! ! ",
" !! !! ! !! ! ! ! ! ",
" !!!! ! !!!!! ",
" ! ! ! ! !! ! ",
" ! ! !! !! !!! !!! ",
" ! ! !! !!! ! ! ",
" ! !! !! ! !! !! ! !! !! ! ",
" ! !! ! !! ! !! ! ! ! ",
" ! !! !!! !!! ! ! !! ! ",
" ! !! ! !! !! ! !! !!! ",
" ! ! ! ! !! ",
" ! !!! ! !! !! ! ",
" !! ! !! !! !! !! ",
" ! ! !! ! ! ! !! ",
" !!!! !! ! !!! !! !! !!! ",
" !! ! !!! ! !! !! ! ! ! ",
" !! ! !! !!! !! ! ! ! ",
" !! !! ! !! ! !! !! ! ",
" ! !! ! ! ! ! !! ! ",
" !!! ! !! ! ! ! ! ! ",
" !!! ! !! ! ! ! ! ",
" ! ! ! ! !! ! ! !! ",
" ! ! !! ! ! !! !! ! ! ",
" !! !! ! ! !! ! !!! ! !! ! ! ! ",
" !! !! !! ! ! !! ! ! !! ! !! ",
" !! !! !! ! !!! ! !!!!!! ! ! ! ",
" ! !! ! ! ! !!!! ! ! ",
" ! ! !!!!!! !! ! ! ",
" ! ! !!!!!! !! ",
" ! !! !! ",
" !!!! ! ! ",
" !!!! ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<!-- dy and multi lines test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>lines</StyleName>
<StyleName>text</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
wkt,nr
"LINESTRING(-1.000 -1.000, -0.958 -0.646, -0.917 -0.331, -0.875 -0.055, -0.833 0.185, -0.792 0.390, -0.750 0.562, -0.708 0.703, -0.667 0.815, -0.625 0.898, -0.583 0.956, -0.542 0.989, -0.500 1.000, -0.458 0.990, -0.417 0.961, -0.375 0.914, -0.333 0.852, -0.292 0.776, -0.250 0.688, -0.208 0.589, -0.167 0.481, -0.125 0.367, -0.083 0.248, -0.042 0.125, 0.000 0.000, 0.042 -0.125, 0.083 -0.248, 0.125 -0.367, 0.167 -0.481, 0.208 -0.589, 0.250 -0.688, 0.292 -0.776, 0.333 -0.852, 0.375 -0.914, 0.417 -0.961, 0.458 -0.990, 0.500 -1.000, 0.542 -0.989, 0.583 -0.956, 0.625 -0.898, 0.667 -0.815, 0.708 -0.703, 0.750 -0.562, 0.792 -0.390, 0.833 -0.185, 0.875 0.055, 0.917 0.331, 0.958 0.646, 1.000 1.000)",1
</Parameter>
</Datasource>
</Layer>
<Style name="lines">
<Rule>
<LineSymbolizer stroke-width="1" stroke="green"/>
<LineSymbolizer stroke-width="1" stroke="lightblue" offset="12"/>
<LineSymbolizer stroke-width="1" stroke="lightblue" offset="-12"/>
</Rule>
</Style>
<Style name="text">
<Rule>
<!-- note: &#10; is an encoded \n -->
<TextSymbolizer face-name="DejaVu Sans Book" size="12" placement="line" spacing="10" max-char-angle-delta="180" dy="0" justify-alignment="center" allow-overlap="true">
"u!__|__!u&#10;m!__|__!m&#10;b!__|__!b"
</TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -95,6 +95,7 @@ files = {
'lines-4': {'sizes': sizes_few_square,'bbox':default_text_box},
'lines-5': {'sizes': sizes_few_square,'bbox':default_text_box},
'lines-6': {'sizes': sizes_few_square,'bbox':default_text_box},
'lines-7': {'sizes': sizes_few_square,'bbox':mapnik.Box2d(-1.2, -1.2, 1.2, 1.2)},
'lines-shield': {'sizes': sizes_few_square,'bbox':default_text_box},
'collision': {'sizes':[(600,400)]},
'shield-on-polygon': {'sizes':[(600,400)]},