New test.
This commit is contained in:
parent
4a3a3fd82c
commit
e564b00370
4 changed files with 22 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
rm -f list-[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 formating-500-agg.png
|
||||
rm -f *-500-agg.png
|
||||
rm -f *-out.xml
|
||||
|
||||
|
|
BIN
tests/visual_tests/shieldsymbolizer-1-500-reference.png
Normal file
BIN
tests/visual_tests/shieldsymbolizer-1-500-reference.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 883 B |
19
tests/visual_tests/shieldsymbolizer-1.xml
Normal file
19
tests/visual_tests/shieldsymbolizer-1.xml
Normal 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>
|
|
@ -12,7 +12,8 @@ widths = [ 800, 600, 400, 300, 250, 200, 150, 100]
|
|||
filenames = ["list", "simple"]
|
||||
filenames_one_width = ["simple-E", "simple-NE", "simple-NW", "simple-N",
|
||||
"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):
|
||||
print "Rendering style \"%s\" with width %d" % (filename, width)
|
||||
|
|
Loading…
Reference in a new issue