tests for line wrap bug (currently non-ideal) refs #2701

This commit is contained in:
Dane Springmeyer 2015-02-25 18:54:31 -08:00
parent d9d63bb5ca
commit a6df5f9056
7 changed files with 365 additions and 0 deletions

View file

@ -0,0 +1,139 @@
{
"keys": [
"",
"2",
"1",
"3"
],
"data": {},
"grid": [
" !!! ",
" !!! ",
" !!!! ",
" !! !! ",
" ",
" ",
" ",
" !! !! ",
" !!! ",
" !!! ",
" !!! ",
" !! !! ",
" !! !! ",
" ",
" ",
" ",
" !! !! ",
" !!! ",
" !! ",
" !!! ",
" !! !! ",
" !! ! ",
" ",
" ",
" !! ! ",
" !!!! ",
" !!! ",
" !!! ",
" !!!! ",
" !! !! ",
" ",
" ",
" ",
" !! !! ",
" !!! ",
" !!! ",
" !!! ",
" !! !! ",
" !! !! ",
" ",
" ",
" ",
" !! !! ",
" !!! ",
" !! ",
" !!! ",
" !! !! ",
" !! ! ",
" ",
" ",
" !! ! ",
" !!!! ",
" !!! ",
" !!! ## ## ## ## #### ",
" !!!! ### ### #### ",
" !! !! ## ## ## ",
" #### ### #### ",
" ## ## ## ## #### ",
" ## ## ## # ## ## ",
" ",
" ",
" # ## ## ## ## ## ",
" #### ## ## #### ",
" ### ### ## ",
" ## ### ## ",
" #### ### #### ",
" ## ## ## ## ## ## ",
" ",
" ",
" ",
" # ## ## ## ## ## ",
" #### #### #### ",
" ## ### ## $ $$ ",
" ## ### ### $$$$ ",
" #### #### #### $$$ ",
" ## ## ## ## ## # $$ ",
" $$$$ ",
" $$ $$ ",
" ",
" ",
" ",
" $$ $ $$ $$ ",
" $$$$ $$$$ ",
" $$ $$$ ",
" $$$ $$$ ",
" $$$$ $$$$ ",
" $$ $$ $$ $$ ",
" ",
" ",
" ",
" $$$$ $$ $$ ",
" $$$$ $$$ ",
" $$ $$ ",
" $$$$ $$$ ",
" $$$$ $$ $$ ",
" $$ $$ $ $$ ",
" ",
" ",
" $ $$ $ $$ ",
" $$$$ $$$$ ",
" $$$ $$$ ",
" $$ $$ ",
" $$$$ $$$$ ",
" $$ $$ $$ $$ ",
" ",
" ",
" ",
" $$ $ $$ $$ ",
" $$$$ $$$$ ",
" $$ $$$ ",
" $$$ $$$ ",
" $$$$ $$$$ ",
" $$ $$ $$ $$ ",
" ",
" ",
" ",
" $$$$ $$ $$ ",
" $$$$ $$$ ",
" $$ $$ ",
" $$$$ $$$ ",
" $$$$ $$ $$ ",
" $$ $$ $ $$ ",
" ",
" ",
" $ $$ $ $$ ",
" $$$$ $$$$ ",
" $$$ $$$ ",
" $$ $$ "
]
}

View file

@ -0,0 +1,139 @@
{
"keys": [
"",
"2",
"3",
"1"
],
"data": {},
"grid": [
" !!!!! ",
" !!!!! ",
" !!!!!! ",
" !!!!!!! ",
" !!!! !!!! ",
" !!!! !!! ",
" !!! !!!! ",
" ",
" ",
" ",
" ",
" ",
" !!! !!! ",
" !!! !!!! ",
" !!!! !!! ",
" !!!!!!!! ",
" !!!!!! ",
" !!!!! ",
" !!!! ",
" !!!!! ",
" !!!!!!! ",
" !!! !!!! ",
" !!!! !!! ",
" !!!! !!!! ",
" !!! !!! ",
" ",
" ",
" ",
" ",
" ",
" !!! !!!! ",
" !!!! !!! ",
" !!! !!!! ",
" !!!!!!! ",
" !!!!! ",
" !!!! #### ### ",
" !!!!! ### #### ",
" !!!!!! ######## ",
" !!!!!!! ###### ",
" !!!! !!!! ##### ",
" !!! !!!! #### ",
" !!!! !!! $$$ $$$ $$$ $$$ $$$ $$$$ ###### ",
" $$$$ $$$$ $$$$ $$$$ $$$$ $$$ ###### ",
" $$$$$$$$ $$$$$$$$ $$$ $$$$ ######## ",
" $$$$$$ $$$$$$ $$$$$$$ #### #### ",
" $$$$$$ $$$$$$ $$$$$ ### ### ",
" $$$$ $$$$ $$$$ ### ### ",
" !!!! !!! $$$$ $$$$$ $$$$$ ",
" !!! !!! $$$$$$ $$$$$$ $$$$$$$ ",
" !!!! !!!! $$$$$$$$ $$$$$$$$ $$$ $$$ ",
" !!!!!!! $$$ $$$ $$$$ $$$ $$$$ $$$$ ",
" !!!!! $$$$ $$$$ $$$ $$$$ $$$$ $$$$ ",
" !!!!! $$$ $$$ $$$$ $$$ $$$ $$$ ### ### ### #### ",
" !!!!! #### #### #### ### ",
" !!!!!! ### #### ### #### ",
" !!!!!!! ####### ####### ",
" !!!! !!!! ##### ##### ",
" !!!! !!! #### #### ",
" !!! !!!! $$$ $$$ $$$ $$$ $$$ $$$ ##### ##### ",
" $$$$ $$$$ $$$$ $$$$ $$$ $$$$ ###### ####### ",
" $$$$ $$$ $$$ $$$$ $$$$ $$$$ ####### ### ### ",
" $$$$$$$ $$$$$$$ $$$$$$$ #### #### #### #### ",
" $$$$$$ $$$$$$ $$$$$$ ### #### #### #### ",
" $$$$ $$$$ $$$$$ #### ### ### ### ",
" $$$$ $$$$ $$$$$ ",
" !!! !!!! $$$$$$ $$$$$$ $$$$$ ",
" !!!! !!! $$$$$$$$ $$$$$$$ $$$$$$$ ",
" !!!!!!!! $$$ $$$ $$$ $$$$ $$$$ $$$$ ",
" !!!!!! $$$$ $$$$ $$$$ $$$$ $$$ $$$ ",
" !!!!! $$$ $$$ $$$$ $$$ $$$$ $$$$ ### ### ### ### ",
" !!!! #### #### ### #### ",
" !!!!! ### #### #### #### ",
" !!!!!!! ####### ####### ",
" !!! !!!! ###### ##### ",
" !!!! !!! #### ##### ",
" !!!! !!!! #### ##### ",
" !!! !!! $$$ $$$$ $$$ $$$ $$$$ $$$ ###### ##### ",
" $$$$ $$$ $$$$ $$$$ $$$ $$$$ ####### ####### ",
" $$$$$$$$ $$$ $$$ $$$$$$$$ ### #### #### #### ",
" $$$$$$ $$$$$$$ $$$$$$ ### #### ### ### ",
" $$$$$ $$$$$ $$$$$ #### ### #### #### ",
" $$$$ $$$$ $$$$ ",
" !!! !!!! $$$$$ $$$$$ $$$$$ ",
" !!!! !!! $$$$$$$ $$$$$$$ $$$$$$ ",
" !!! !!!! $$$ $$$$ $$$$ $$$ $$$$$$$$ ",
" !!!!!!! $$$$ $$$ $$$ $$$$ $$$ $$$$ ",
" !!!!! $$$$ $$$$ $$$$ $$$$ $$$ $$$ ",
" !!!! $$$ $$$ $$$ $$$ $$$ $$$ #### ### #### ### ",
" !!!!! ### #### ### #### ",
" !!!!!! ######## ######## ",
" !!!!!!! ###### ###### ",
" !!!! !!!! ##### ##### ",
" !!! !!!! #### #### ",
" !!!! !!! ###### ###### ",
" ###### ###### ",
" ######## ######## ",
" #### #### #### #### ",
" ### ### ### ### ",
" ### ### ### ### ",
" ",
" ",
" ",
" ",
" ",
" ### ### ### #### ",
" #### #### #### ### ",
" ### #### ### #### ",
" ####### ####### ",
" ###### ##### ",
" #### #### ",
" ##### ##### ",
" ###### ####### ",
" ####### ### ### ",
" #### #### #### #### ",
" ### #### #### #### ",
" #### ### ### ### ",
" ",
" ",
" ",
" ",
" ",
" ### ### ### ### ",
" #### #### ### #### ",
" ### #### #### #### ",
" ####### ####### ",
" ###### ###### ",
" #### ##### ",
" #### ##### "
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,87 @@
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="0.7.2">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="1">
<Rule>
<TextSymbolizer
size="30"
allow-overlap="true"
face-name="DejaVu Sans Book"
wrap-width="1"
wrap-character="[wrap-character]"
wrap-before="false"
character-spacing="5"
repeat-wrap-character="[repeat-wrap-character]"
halo-radius="1">'XXX XXX XXX'</TextSymbolizer>
<DebugSymbolizer mode="vertex"/>
<DebugSymbolizer mode="collision"/>
</Rule>
</Style>
<Layer name="point" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>1</StyleName>
<Datasource>
<Parameter name="inline">
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature",
"properties": {
"label": "this,that",
"wrap-character":" ",
"repeat-wrap-character":false
},
"geometry" : { "type": "Point", "coordinates": [ 2.5, 2.5 ] }
},
{ "type": "Feature",
"properties": {
"label": "this-that",
"wrap-character":"X",
"repeat-wrap-character":false
},
"geometry" : { "type": "Point", "coordinates": [ 0, 5 ] }
},
{ "type": "Feature",
"properties": {
"label": "this-that",
"wrap-character":"X",
"repeat-wrap-character":true
},
"geometry" : { "type": "Point", "coordinates": [ 5, 0 ] }
}
]
}
</Parameter>
<Parameter name="type">geojson</Parameter>
</Datasource>
</Layer>
<!-- points to frame data view -->
<Style name="frame">
<Rule>
<PointSymbolizer />
</Rule>
</Style>
<Layer name="frame" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>frame</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
-1,-1
6,-1
-1,6
6,6
</Parameter>
</Datasource>
</Layer>
</Map>