Visual Tests for issue mapnik/mapnik#1900
Conflicts: tests/visual_tests/test.py
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 4.5 KiB |
23
tests/visual_tests/styles/formatting-5.xml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE Map>
|
||||||
|
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||||
|
<FontSet name="book"><Font face-name="DejaVu Sans Book"/></FontSet>
|
||||||
|
|
||||||
|
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||||
|
<StyleName>My Style</StyleName>
|
||||||
|
<Datasource>
|
||||||
|
<Parameter name="type">osm</Parameter>
|
||||||
|
<Parameter name="file">../data/points.osm</Parameter>
|
||||||
|
</Datasource>
|
||||||
|
</Layer>
|
||||||
|
|
||||||
|
<Style name="My Style">
|
||||||
|
<Rule>
|
||||||
|
<PointSymbolizer/>
|
||||||
|
<!-- Basic test -->
|
||||||
|
<TextSymbolizer fontset-name="book" size="16" placement="point" dx="0" dy="5">
|
||||||
|
[name]+' '<Format face-name="DejaVu Sans Oblique" size="9" opacity="1">'('+[name]+')'</Format></TextSymbolizer>
|
||||||
|
</Rule>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</Map>
|
24
tests/visual_tests/styles/formatting-6.xml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE Map>
|
||||||
|
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||||
|
<FontSet name="book"><Font face-name="DejaVu Sans Book"/></FontSet>
|
||||||
|
<FontSet name="oblique"><Font face-name="DejaVu Sans Oblique"/></FontSet>
|
||||||
|
|
||||||
|
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||||
|
<StyleName>My Style</StyleName>
|
||||||
|
<Datasource>
|
||||||
|
<Parameter name="type">osm</Parameter>
|
||||||
|
<Parameter name="file">../data/points.osm</Parameter>
|
||||||
|
</Datasource>
|
||||||
|
</Layer>
|
||||||
|
|
||||||
|
<Style name="My Style">
|
||||||
|
<Rule>
|
||||||
|
<PointSymbolizer/>
|
||||||
|
<!-- Basic test -->
|
||||||
|
<TextSymbolizer fontset-name="book" size="16" placement="point" dx="0" dy="5">
|
||||||
|
[name]+' '<Format fontset-name="oblique" size="9" opacity="1">'('+[name]+')'</Format></TextSymbolizer>
|
||||||
|
</Rule>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</Map>
|
|
@ -138,6 +138,8 @@ files = {
|
||||||
'formatting-2': {'bbox':default_text_box},
|
'formatting-2': {'bbox':default_text_box},
|
||||||
'formatting-3': {'bbox':default_text_box},
|
'formatting-3': {'bbox':default_text_box},
|
||||||
'formatting-4': {'bbox':default_text_box},
|
'formatting-4': {'bbox':default_text_box},
|
||||||
|
'formatting-5': {'bbox':default_text_box},
|
||||||
|
'formatting-6': {'bbox':default_text_box},
|
||||||
'expressionformat': {'bbox':default_text_box},
|
'expressionformat': {'bbox':default_text_box},
|
||||||
'shieldsymbolizer-1': {'sizes': sizes_many_in_small_range,'bbox':default_text_box},
|
'shieldsymbolizer-1': {'sizes': sizes_many_in_small_range,'bbox':default_text_box},
|
||||||
'shieldsymbolizer-2': {'sizes': sizes_many_in_small_range,'bbox':default_text_box},
|
'shieldsymbolizer-2': {'sizes': sizes_many_in_small_range,'bbox':default_text_box},
|
||||||
|
|