Visual Tests for issue mapnik/mapnik#1900

Conflicts:
	tests/visual_tests/test.py
This commit is contained in:
Stephan Bösch-Plepelits 2013-06-04 09:06:26 +02:00
parent e525ca28b5
commit 8a5f03b923
11 changed files with 49 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View 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]+'&#10;'<Format face-name="DejaVu Sans Oblique" size="9" opacity="1">'('+[name]+')'</Format></TextSymbolizer>
</Rule>
</Style>
</Map>

View 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]+'&#10;'<Format fontset-name="oblique" size="9" opacity="1">'('+[name]+')'</Format></TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -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},