New test.

This commit is contained in:
Hermann Kraus 2012-01-29 05:11:59 +01:00
parent 4a3a3fd82c
commit e564b00370
4 changed files with 22 additions and 3 deletions

View file

@ -1,6 +1,5 @@
rm -f list-[0-9][0-9]0-agg.png rm -f list-[0-9][0-9]0-agg.png
rm -f simple-[0-9][0-9]0-agg.png rm -f simple-[0-9][0-9]0-agg.png
rm -f simple-{E,N,NE,NW,N,SE,SW,S,W}-500-agg.png rm -f *-500-agg.png
rm -f formating-500-agg.png
rm -f *-out.xml rm -f *-out.xml

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 B

View file

@ -0,0 +1,19 @@
<?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">shape</Parameter>
<Parameter name="file">points.shp</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<ShieldSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" file="../data/svg/rect.svg" dx="0" dy="-5">'x'</ShieldSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -12,7 +12,8 @@ widths = [ 800, 600, 400, 300, 250, 200, 150, 100]
filenames = ["list", "simple"] filenames = ["list", "simple"]
filenames_one_width = ["simple-E", "simple-NE", "simple-NW", "simple-N", filenames_one_width = ["simple-E", "simple-NE", "simple-NW", "simple-N",
"simple-SE", "simple-SW", "simple-S", "simple-W", "simple-SE", "simple-SW", "simple-S", "simple-W",
"formating-1", "formating-2", "formating-3", "formating-4"] "formating-1", "formating-2", "formating-3", "formating-4",
"shieldsymbolizer-1"]
def render(filename, width): def render(filename, width):
print "Rendering style \"%s\" with width %d" % (filename, width) print "Rendering style \"%s\" with width %d" % (filename, width)