New tests.

This commit is contained in:
Hermann Kraus 2012-03-04 02:04:43 +01:00
parent b4eddaab24
commit 0eece15f62
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">lines.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<LineSymbolizer stroke-width="12" stroke="red"/>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="line" spacing="20">[name]</TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">lines.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<LineSymbolizer stroke-width="1" stroke="blue"/>
<ShieldSymbolizer face-name="DejaVu Sans Book" size="16" placement="line" file="../data/svg/crosshair16x16.svg" spacing="30">'X'</ShieldSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -13,6 +13,8 @@ files = [
("simple", 800, 600, 400, 300, 250, 200, 150, 100),
("lines-1", (800, 800), (600, 600), (400, 400), (200, 200)),
("lines-2", (800, 800), (600, 600), (400, 400), (200, 200)),
("lines-3", (800, 800), (600, 600), (400, 400), (200, 200)),
("lines-shield", (800, 800), (600, 600), (400, 400), (200, 200)),
("simple-E", 500),
("simple-NE", 500),
("simple-NW", 500),